Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

spec-gathering

БесплатноЗапускает вложенные скриптыНе проверен

Requirements gathering workflow for specification creation. Use when starting a new feature, task, or project that needs structured requirements.

oimiragieoот oimiragieo★ 48 звёзд на GitHub

Об этом скилле

Requirements Gathering Skill

Overview

Gather user requirements through structured questioning and produce a validated requirements document. This skill transforms vague task descriptions into actionable, structured requirements.

Core principle: Ask smart questions, produce valid structured output. Nothing else.

When to Use

Always:

  • Starting a new feature or project
  • Clarifying ambiguous task descriptions
  • When user provides high-level goals without specifics
  • Before spec writing begins

Exceptions:

  • Simple bug fixes with clear reproduction steps
  • Single-file changes with obvious scope
  • User explicitly provides complete requirements

The Iron Law

NO SPEC WRITING WITHOUT VALIDATED REQUIREMENTS FIRST

Requirements must be confirmed by the user before proceeding to spec creation.

Workflow

Phase 1: Load Project Context

Understand the project structure before engaging the user.

Steps:

  1. Read project structure files if they exist
  2. Identify services, tech stack, and ports
  3. Understand existing patterns and conventions
# Read project structure
cat .claude/context/product.md 2>/dev/null || echo "No product context"
cat .claude/context/tech-stack.md 2>/dev/null || echo "No tech stack"

Phase 2: Understand the Task

If a task description was provided, confirm it:

"I understand you want to: [task description]. Is that correct? Any clarifications?"

If no task was provided, ask:

"What would you like to build or fix? Please describe the feature, bug, or change you need."

Wait for user response.

Phase 3: Determine Workflow Type

Based on the task, determine the workflow type:

If task sounds like... Workflow Type
"Add feature X", "Build Y" feature
"Migrate from X to Y", "Refactor Z" refactor
"Fix bug where X", "Debug Y" investigation
"Migrate data from X" migration
Single service, small change simple

Ask to confirm:

"This sounds like a [workflow_type] task. Does that seem right?"

Phase 4: Identify Services and Scope

Based on the project context and task, suggest affected areas:

"Based on your task and project structure, I think this involves:

  • [service1] (primary) - [why]
  • [service2] (integration) - [why]

Any other services or areas involved?"

Wait for confirmation or correction.

Phase 4.5: Invoke Context-Compressor (Progressive Disclosure Mode / ECLAIR Pattern)

Before gathering requirements manually, use the context-compressor skill (progressive disclosure mode) to optimize the clarification process:

Skill({
  skill: 'context-compressor',
  context: {
    taskDescription: taskDescription,
    projectContext: projectContext,
    services: identifiedServices,
    mode: 'progressive-disclosure',
  },
});

Context-Compressor (progressive disclosure mode) performs:

  1. E: Examine - Analyze ambiguities in the task description
  2. C: Categorize - Prioritize by CRITICAL, HIGH, MEDIUM, LOW
  3. L: Limit - Apply 3-5 clarification cap
  4. A: Assume - Apply smart defaults from project patterns
  5. I: Infer - Use existing code patterns and tech stack
  6. R: Record - Document all assumptions with [ASSUMES: X]

Returns:

  • Prioritized clarification questions (max 5)
  • Smart defaults with [ASSUMES:] notation
  • Updated understanding of requirements

Phase 5: Gather Detailed Requirements (with Context-Compressor)

Ask only the critical clarification questions identified by context-compressor:

Budget: 3-5 clarification questions maximum

Process:

  1. Ask CRITICAL priority questions first (security, data loss, breaking changes)

    • Example: "Does the system need role-based access control?"
    • Example: "Should users be able to delete data? Is this reversible?"
  2. Ask HIGH priority questions if budget remains (UX, architecture, scalability)

    • Example: "What's the expected user load?"
    • Example: "Should this support offline mode?"
  3. For MEDIUM/LOW priorities, use [ASSUMES:] notation with defaults

    • Example: "[ASSUMES: JWT tokens with 1-hour expiry]"
    • Example: "[ASSUMES: REST API following existing /api/v1/ pattern]"

Collect answers and document all assumptions.

Phase 6: Confirm and Output (with Assumptions)

Summarize what you understood, including clarified requirements and assumptions:

"Let me confirm I understand:

Task: [summary] Type: [workflow_type] Scope: [list of affected areas]

Clarified Requirements (questions asked):

  1. ✅ [Question] → [Answer]
  2. ✅ [Question] → [Answer]
  3. ✅ [Question] → [Answer]

Smart Defaults Applied (not asked due to budget or clarity):

[ASSUMES: X] [ASSUMES: Y] [ASSUMES: Z]

Success Criteria:

  1. [criterion 1]
  2. [criterion 2]

Is this correct?"

Полный SKILL.md на GitHub

Установить spec-gathering в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Edit
Bash
AskUserQuestion

Вложенные файлы

commands/spec-gathering.mdhooks/post-execute.cjshooks/pre-execute.cjsreferences/research-requirements.mdrules/spec-gathering.mdschemas/input.schema.jsonschemas/output.schema.jsonscripts/main.cjstemplates/implementation-template.md

FAQ

Что делает скилл spec-gathering?

Requirements gathering workflow for specification creation. Use when starting a new feature, task, or project that needs structured requirements.

Как установить скилл spec-gathering?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл spec-gathering запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить spec-gathering с