From speckit-helper
Analyze specifications for consistency, gaps, and quality issues (read-only)
npx claudepluginhub datamaker-kr/synapse-claude-marketplace --plugin speckit-helper[feature-slug]# /speckit-helper:analyze Perform a comprehensive read-only consistency analysis across all specification documents for a given feature. --- ## IMPORTANT: Read-Only Constraint This command MUST NEVER modify any files. Only the Read, Glob, and Grep tools are permitted. All findings are reported for human review. If changes are needed, suggest the appropriate command (`/speckit-helper:refine`, `/speckit-helper:tasks`, etc.). --- ## Workflow ### Step 1: Resolve Feature Slug Determine the feature-slug from `$ARGUMENTS`. - If `$ARGUMENTS` is non-empty, use the first positional argument ...
/analyzeAnalyzes project code across quality, security, performance, and architecture domains, producing severity-rated findings, actionable recommendations, metrics, and reports.
/analyzeAnalyzes repository code health via complexity metrics, git churn, and test coverage. Generates report with overview, critical issues, warnings, recommendations.
/analyzeInteractively analyzes marketing campaign performance: configures scope, period, type, metrics focus via questions; provides insights, optimizations, and ROI attribution.
/analyzeAnalyzes stock ticker fundamentals, news, price action, institutional holders, and delivers valuation, risks, catalysts, and investment recommendation.
/analyzeScans codebase for features, components, APIs, and models; interviews user for business context; generates and saves product inventory and architecture reports to .pm/.
/analyzeAnalyzes Rails codebase or directory for layered architecture adherence, mapping layers, assessing services, detecting model violations, god objects, and abstraction opportunities.
Perform a comprehensive read-only consistency analysis across all specification documents for a given feature.
This command MUST NEVER modify any files. Only the Read, Glob, and Grep tools are
permitted. All findings are reported for human review. If changes are needed, suggest
the appropriate command (/speckit-helper:refine, /speckit-helper:tasks, etc.).
Determine the feature-slug from $ARGUMENTS.
$ARGUMENTS is non-empty, use the first positional argument as the feature-slug.$ARGUMENTS is empty, use Glob to list directories under .speckit/:
"Multiple features found. Please specify a feature slug: [list]"
"No specifications found. Run
/speckit-helper:specifyfirst to create one."
Read every document in the feature's specification directory. Use Glob to discover files and Read to load their contents.
Required documents:
.speckit/<feature-slug>/spec.md -- core specification (required; abort if missing).speckit/<feature-slug>/plan.md -- implementation plan (optional).speckit/<feature-slug>/tasks.md -- task list (optional).speckit/<feature-slug>/data-model.md -- entity definitions (optional)Optional documents:
.speckit/<feature-slug>/contracts/*.md -- API contracts (zero or more).speckit/<feature-slug>/checklists/*.md -- quality checklists (zero or more)Project-level documents:
.speckit/constitution.md -- project-level principles (optional)For each document, note whether it was found or missing. Missing optional documents are not errors but limit the scope of analysis. Record which documents were analyzed for the report header.
Execute all eight analysis checks against the gathered documents. Reference the skill at
skills/consistency-analysis/ for detailed rule definitions.
For each FR-XXX and NFR-XXX identifier found in spec.md:
tasks.md for any reference to that requirement ID or its parent
section [Spec §X.Y].tasks.md does not exist, record a single CRITICAL finding:
"No tasks.md found -- requirement coverage cannot be verified."For each task line in tasks.md that contains a [Spec §X.Y] reference:
§3.1 maps to section 3, subsection 1).spec.md.If plan.md exists, compare its architectural decisions against tasks.md:
plan.md (e.g., src/repositories/).tasks.md for tasks that create or modify files
in the expected locations.plan.md does not exist, skip this check silently.If data-model.md exists:
data-model.md.tasks.md for a task that creates the corresponding model file.data-model.md are consistent with those
referenced in spec.md and contracts/*.md.data-model.md does not exist, skip this check silently.If any contracts/*.md files exist:
tasks.md for a task that implements that endpoint.data-model.md.If .speckit/constitution.md exists:
plan.md and tasks.md comply:
Scan spec.md for semantically overlapping requirements:
Scan all requirement text in spec.md for vague or unmeasurable language:
After all checks complete:
Output the analysis report directly to the terminal (do NOT write it to a file).
## Consistency Analysis Report
**Feature:** <feature-slug>
**Date:** <current date>
**Documents Analyzed:** <comma-separated list of files found and read>
---
### Summary
| Severity | Count |
|----------|-------|
| CRITICAL | X |
| HIGH | Y |
| MEDIUM | Z |
| LOW | W |
| **Total**| **N** |
---
### Findings
#### CRITICAL
- **[RC-001]** FR-003 "rate limiting on login" has no corresponding task in tasks.md
*Category: Requirement Coverage | Location: spec.md §3.3*
#### HIGH
- **[PA-001]** plan.md specifies "src/repositories/" pattern but no task creates files
in that directory
*Category: Plan Alignment | Location: plan.md §Architecture*
#### MEDIUM
...
#### LOW
...
---
### Recommendations
1. <Actionable recommendation for each CRITICAL finding>
2. <Actionable recommendation for each HIGH finding>
3. <General recommendation for MEDIUM/LOW findings>
Based on the findings, suggest the most appropriate next command:
If CRITICAL or HIGH findings exist:
"Run
/speckit-helper:refine <feature-slug>to address critical and high-severity findings before proceeding to implementation."
If only MEDIUM or LOW findings exist:
"Specification is in good shape. Consider running
/speckit-helper:implement <feature-slug>to begin implementation, or address medium/low findings with/speckit-helper:refine."
If zero findings:
"Specification is fully consistent across all documents. Ready for implementation with
/speckit-helper:implement <feature-slug>."
If .speckit/<feature-slug>/spec.md does not exist:
.speckit/<feature-slug>/spec.md.
Run /speckit-helper:specify first."If .speckit/<feature-slug>/ does not exist:
.speckit/<feature-slug>/ not found. Available features: [list]"/speckit-helper:specify first."If a document exists but is empty or contains only whitespace:
/speckit-helper:tasks has generated a task list,
so that requirement coverage and task traceability checks can execute fully./speckit-helper:refine to verify that findings were resolved.