English | 简体中文
File-based spec workflow for systematic feature development. Creates structured documentation in .specs/ directory with hooks for workflow enforcement.
A Claude Code plugin that enforces a three-phase workflow for feature development:
- Requirements → Define WHAT to build (EARS format)
- Design → Define HOW to build it (architecture, APIs, data models)
- Tasks → Break down into actionable steps
Problem it solves: AI coding often jumps straight to implementation without proper planning, leading to unclear requirements, poor architecture, and maintenance nightmares.
Solution: Persistent files + hooks that guide you through proper planning phases.
- jq - Required for workflow status checking and hooks
- Windows: Download from jqlang.github.io/jq
- macOS:
brew install jq - Linux:
apt-get install jqoryum install jq
# In Claude Code
/plugin marketplace add chenmudu/spec-workflow-files
/plugin install spec-workflow-files@spec-workflow-files# Initialize in your project
/spec-workflow
# This creates .specs/ directory with:
# - requirements.md
# - design.md
# - tasks.md
# - .workflow-confirmations.jsonyour-project/
├── .specs/ # Spec files in dedicated directory
│ ├── requirements.md # Phase 1: What to build
│ ├── design.md # Phase 2: How to build
│ ├── tasks.md # Phase 3: Task breakdown
│ └── .workflow-confirmations.json # Phase status tracking
├── src/
└── ...
Three phases with enforced sequencing:
Phase 1: Requirements → Edit .specs/requirements.md with EARS format
WHEN user submits valid login credentials THEN system SHALL authenticate userPhase 2: Design → Edit .specs/design.md with architecture and APIs
Phase 3: Tasks → Edit .specs/tasks.md with numbered implementation tasks
Mark each phase as confirmed before proceeding to the next.
The plugin uses hooks to guide your workflow:
- PreToolUse: Warns if you skip phases (e.g., editing design before confirming requirements)
- PostToolUse: Reminds you to confirm after editing
- Stop: Shows workflow status before Claude stops
Works standalone or combined with planning-with-files:
- Spec Workflow → Planning (requirements → design → tasks in
.specs/) - Planning-with-Files → Execution (task_plan.md, findings.md, progress.md in root)
After completing all phases, the plugin suggests using planning-with-files if detected.
| Feature | Spec Workflow Files | Planning-with-Files | Kiro |
|---|---|---|---|
| Purpose | Planning & Documentation | Execution Tracking | Methodology Guide |
| Files | 3 (in .specs/) |
3 (in root) | Documentation only |
| Hooks | ✅ Yes | ✅ Yes | ❌ No |
| Phase Enforcement | ✅ Yes | ❌ No | ❌ No |
| EARS Format | ✅ Yes | ❌ No | ✅ Yes (guide) |
| Task Tracking | ✅ Yes | ✅ Yes | ❌ No |
| Clean Directory | ✅ .specs/ |
N/A | |
| Best For | Planning phase | Execution phase | Learning methodology |
- Complete each phase - Don't skip ahead, each builds on the previous
- Use EARS format -
WHEN [trigger] THEN system SHALL [response] - Document decisions - Record why you chose an approach in design.md
- Keep specs updated - Update when requirements or design evolves
- Combine with planning-with-files - For complex projects needing execution tracking
✅ Use for:
- New feature development
- Complex system changes
- Projects requiring documentation
- Team collaboration
- AI-assisted development
❌ Skip for:
- Simple bug fixes
- Trivial changes
- Experimental prototypes
- Time-critical hotfixes
- Plugin Documentation - Installation and usage
- SKILL.md - Complete reference
- Templates - Document templates
See PLUGIN.md for complete examples of requirements.md, design.md, and tasks.md.
Core principles:
- Files over memory - Persistent documentation beats volatile context
- Structure over chaos - Enforced phases prevent premature implementation
- Guidance over freedom - Hooks nudge toward best practices
Inspired by: Manus (planning-with-files), Kiro (spec-driven development), EARS (requirements syntax)
MIT License - see LICENSE file
chenmudu - @chenmudu
- OthmanAdi/planning-with-files
- jasonkneen/kiro
- Meta's Manus
Issues & Contributions: https://github.com/chenmudu/spec-workflow-files/issues