spec-gathering
БесплатноЗапускает вложенные скриптыНе проверенRequirements gathering workflow for specification creation. Use when starting a new feature, task, or project that needs structured requirements.
от 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:
- Read project structure files if they exist
- Identify services, tech stack, and ports
- 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:
- E: Examine - Analyze ambiguities in the task description
- C: Categorize - Prioritize by CRITICAL, HIGH, MEDIUM, LOW
- L: Limit - Apply 3-5 clarification cap
- A: Assume - Apply smart defaults from project patterns
- I: Infer - Use existing code patterns and tech stack
- 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:
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?"
Ask HIGH priority questions if budget remains (UX, architecture, scalability)
- Example: "What's the expected user load?"
- Example: "Should this support offline mode?"
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):
- ✅ [Question] → [Answer]
- ✅ [Question] → [Answer]
- ✅ [Question] → [Answer]
Smart Defaults Applied (not asked due to budget or clarity):
[ASSUMES: X] [ASSUMES: Y] [ASSUMES: Z]
Success Criteria:
- [criterion 1]
- [criterion 2]
Is this correct?"
Установить spec-gathering в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteEditBashAskUserQuestionВложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic