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.
How this skill is triggered — by the user, by Claude, or both
Slash command
/spec-driven-development:refineThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Apply AI-assisted refinement to improve specification quality.
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 specificationnpx claudepluginhub melodic-software/claude-code-plugins --plugin spec-driven-developmentReviews 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.
Reviews spec.md files for completeness, clarity, implementability, testability, and structure. Identifies ambiguities, gaps, and missing sections before implementation.