Refines specification files with AI-assisted improvements for clarity, completeness, testability per INVEST criteria. Generates categorized suggestions, impact reports, and applies interactive or auto changes.
npx claudepluginhub melodic-software/claude-code-plugins --plugin spec-driven-developmentThis skill is limited to using the following tools:
Apply AI-assisted refinement to improve specification quality.
Reviews PRDs and specs for completeness, ambiguities, edge cases, acceptance criteria quality. Structures findings by severity and offers direct fixes.
Assesses requirements quality against INVEST criteria, improves clarity, detects ambiguity, ensures completeness, and guides MoSCoW prioritization with checklists and refinement patterns.
Analyzes spec files for inconsistencies, missing information, ambiguities, and structure issues. Detects depth level (full-tech, detailed, high-level) and generates markdown/HTML reports.
Share bugs, ideas, or general feedback.
Apply AI-assisted refinement to improve specification quality.
Load Specification
Analyze Quality
spec-processor refine agentGenerate Suggestions
Present Improvements
Apply Changes
$ARGUMENTS - Path to specification file--auto - Apply all improvements without confirmation--focus - Focus area: clarity, completeness, testability, or all# Interactive refinement
/spec-driven-development:refine .specs/user-auth/spec.md
# Auto-apply all improvements
/spec-driven-development:refine .specs/user-auth/spec.md --auto
# Focus on clarity
/spec-driven-development:refine .specs/user-auth/spec.md --focus clarity
# Refinement Report: user-auth
## Summary
- **Improvements Found:** 8
- **High Impact:** 3
- **Medium Impact:** 4
- **Low Impact:** 1
## Improvements
### HIGH: FR-2 - Ambiguous Threshold
**Before:**
> The system SHALL respond quickly to login requests.
**After:**
> The system SHALL respond to login requests within 500ms (p95).
**Rationale:** "quickly" is ambiguous; specific SLA is testable.
---
### MEDIUM: FR-1 - Missing Error Case
**Added AC:**
> Given the email format is invalid, when submitted, then display "Invalid email format" error.
**Rationale:** Original ACs only covered happy path.
/spec-driven-development:validate - Validate specification/spec-driven-development:audit - Full quality audit/spec-driven-development:specify - Generate new specification