Command Palette

Search for a command to run...

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

analyze-spec

БесплатноБез исполняемых скриптовНе проверен

Analyze an existing spec for inconsistencies, missing information, ambiguities, and structure issues. Use when user says "analyze spec", "review spec", "spec…

diegosouzapwот 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 Specifications section OR ### 7.4 API or similar
  • Contains API endpoint definitions (POST /api/, GET /api/, etc.)
  • Contains Testing Strategy section
  • Contains data model schemas

Detailed Indicators:

  • Uses numbered sections (## 1., ### 2.1)
  • Contains Technical Architecture section
  • 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:

  1. If Full-Tech indicators found → Full-Tech
  2. Else if Detailed indicators found → Detailed
  3. Else if High-Level indicators found → High-Level
  4. 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:

  1. Read the spec at the specified path
  2. Detect it's a Detailed-level spec
  3. Analyze for issues across all four categories
  4. Save report to specs/SPEC-User-Authentication.analysis.md
  5. 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:

  1. Inconsistencies: Internal contradictions or mismatches
  2. Missing Information: Expected content that's absent
  3. Ambiguities: Unclear or vague statements
  4. 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:

  1. Build glossary of feature names from first mention
  2. Track priority assignments
  3. Map goals to metrics
  4. Compare requirements for conflicts

2. Missing Information

Expected content that is absent based on the spec's depth level.

**What to Look

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

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

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

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

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

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

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

AskUserQuestion
Task
Read
Glob

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

metadata.json

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), без исполняемых скриптов.

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

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