analyze-spec
БесплатноБез исполняемых скриптовНе проверенAnalyze an existing spec for inconsistencies, missing information, ambiguities, and structure issues. Use when user says "analyze spec", "review spec", "spec…
от diegosouzapw★ 68 звёзд на GitHubОб этом скилле
Spec Analysis Skill
You are initiating the spec analysis workflow. This process will analyze an existing spec for quality issues and optionally guide the user through resolving them interactively.
Workflow
Step 1: Validate File
Verify the spec file exists at the provided path. If not found:
- Check if user provided relative path and try common locations
- Use Glob to search for similar filenames
- Ask user for correct path if needed
Step 2: Read Spec Content
Read the entire spec file using the Read tool.
Step 3: Detect Depth Level
Analyze the spec content to detect its depth level:
Full-Tech Indicators (check first):
- Contains
API Specificationssection OR### 7.4 APIor similar - Contains API endpoint definitions (
POST /api/,GET /api/, etc.) - Contains
Testing Strategysection - Contains data model schemas
Detailed Indicators:
- Uses numbered sections (
## 1.,### 2.1) - Contains
Technical Architecturesection - Contains user stories (
**US-001**:or similar format) - Contains acceptance criteria
High-Level Indicators:
- Contains feature table with Priority column
- Executive summary focus
- No user stories or acceptance criteria
- Shorter document (~50-100 lines)
Detection Priority:
- If Full-Tech indicators found → Full-Tech
- Else if Detailed indicators found → Detailed
- Else if High-Level indicators found → High-Level
- Default → Detailed
Step 4: Check Settings
Check for settings at .claude/sdd-tools.local.md to get:
- Author name (if configured)
- Any custom preferences
Step 5: Determine Report Path
The analysis report should be saved in the same directory as the spec with .analysis.md suffix:
- Spec:
specs/SPEC-User-Auth.md - Report:
specs/SPEC-User-Auth.analysis.md
Extract the spec filename and construct the report path.
Step 6: Launch Analyzer Agent
Launch the Spec Analyzer Agent using the Task tool with subagent_type sdd-tools:spec-analyzer.
Provide this context in the prompt:
Analyze the spec at: {spec_path}
Spec Content:
{full_spec_content}
Detected Depth Level: {depth_level}
Report Output Path: {report_path}
Author: {author_from_settings or "Not specified"}
Instructions:
1. Load the analysis skill and reference files
2. Perform systematic analysis based on the depth level
3. Generate the analysis report
4. Present findings summary
5. Ask if user wants to enter update mode
6. If yes, guide through interactive resolution
7. Update report with final resolution status
Step 7: Handoff Complete
Once you have launched the Analyzer Agent, your role is complete. The agent will handle:
- Loading analysis criteria for the depth level
- Performing comprehensive analysis
- Generating and saving the report
- Interactive update mode (if requested)
- Updating the spec with approved changes
Example Usage
/sdd-tools:analyze-spec specs/SPEC-User-Authentication.md
This will:
- Read the spec at the specified path
- Detect it's a Detailed-level spec
- Analyze for issues across all four categories
- Save report to
specs/SPEC-User-Authentication.analysis.md - Offer interactive resolution mode
Notes
- Always read the full spec before launching the analyzer
- Depth detection determines which criteria apply
- Report is always saved alongside the spec
- The analyzer agent handles all user interaction for resolution
Analysis Philosophy
Depth-Aware Analysis
Spec analysis must respect the intended depth level of the document. A high-level spec should not be flagged for missing API specifications, just as a full-tech spec should be scrutinized for technical completeness.
Key Principle: Only flag what's expected at the document's depth level.
Constructive Approach
Findings should be:
- Actionable: Clear recommendation for how to fix
- Specific: Exact location and description of issue
- Prioritized: Severity indicates importance
- Helpful: Explain why this matters, not just what's wrong
Systematic Coverage
Analysis covers four distinct categories to ensure comprehensive review:
- Inconsistencies: Internal contradictions or mismatches
- Missing Information: Expected content that's absent
- Ambiguities: Unclear or vague statements
- Structure Issues: Formatting, organization, missing sections
Finding Categories
1. Inconsistencies
Issues where the spec contradicts itself or uses conflicting information.
What to Look For:
- Feature named differently in different sections
- Priority mismatches (feature marked P2 but in Phase 1)
- Metrics that don't align with stated goals
- Contradictory requirements
- Timeline/phase misalignment
Detection Strategy:
- Build glossary of feature names from first mention
- Track priority assignments
- Map goals to metrics
- Compare requirements for conflicts
2. Missing Information
Expected content that is absent based on the spec's depth level.
**What to Look
Установить analyze-spec в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
AskUserQuestionTaskReadGlobВложенные файлы
FAQ
Что делает скилл analyze-spec?
Analyze an existing spec for inconsistencies, missing information, ambiguities, and structure issues. Use when user says "analyze spec", "review spec", "spec quality check", "validate requirements", "audit spec", or "check spec quality".
Как установить скилл analyze-spec?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл analyze-spec запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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