Spec-driven development framework for ecommerce features. Orchestrates from intent to implementation via structured specs and task breakdown. Triggers on ”/spec.plan”, ”/spec.refine”, ”/spec.clarify”, ”/spec.tasks”, ”/spec.run”, ”I want to build”, ”I want to add”, ”create spec”, ”feature spec”, ”new
npx playbooks add skill lorenzogirardi/ai-ecom-demo --skill spec-driven-dev
Iterative feature development ensuring zero ambiguity before execution.
| Command | Purpose |
|---------|---------|
| /spec.plan <intent> | Create spec from feature description |
| /spec.refine [section] | Improve spec with research |
| /spec.clarify <response> | Answer clarification questions |
| /spec.tasks | Break spec into executable tasks |
| /spec.run [task#] | Execute tasks with TDD |
---
Iterate until clarity: No task execution begins until ALL questions are resolved. Claude must be able to execute without interruptions.
---
/spec.plan - Create SpecificationTrigger: /spec.plan <description> or "I want to build/add X"
specs/ folder - create if missingspecs/{feature-slug}.mdCreated: specs/feature-name.md (DRAFT)
Questions requiring clarification:
1. [Question about scope]
2. [Question about behavior]
Use /spec.clarify to answer.
---
/spec.refine - Research & ImproveTrigger: /spec.refine [section]
---
/spec.clarify - Answer QuestionsTrigger: /spec.clarify <response>
User: /spec.clarify Q1: OAuth2 with Google only. Q2: Admin can also delete.
Updated specs/auth-system.md:
- Added OAuth2/Google to Technical Strategy
- Updated permissions
Remaining questions: None
Spec ready. Use /spec.tasks
---
/spec.tasks - Task BreakdownTrigger: /spec.tasks
Tasks should be high-level logical units:
TDD cycle happens WITHIN each task during /spec.run.
---
/spec.run - Execute TasksTrigger: /spec.run [task#]
specs/{feature}.tasks.md/typescript for .ts files---
specs/
├── README.md # Project config
├── user-wishlist.md # Spec (APPROVED)
├── user-wishlist.tasks.md # Task breakdown
├── payment-stripe.md # Spec (DRAFT)
└── ...
---
DRAFT -> APPROVED -> IN_PROGRESS -> COMPLETED
| |
v v
(questions?) (blocked?)
| |
v v
DRAFT IN_PROGRESS
---
When creating specs, consider these modules:
| Module | Files | Considerations |
|--------|-------|----------------|
| Auth | apps/backend/src/modules/auth/ | JWT, sessions, rate limits |
| Catalog | apps/backend/src/modules/catalog/ | Redis caching |
| Cart | Frontend hooks + Backend | Session persistence |
| Orders | apps/backend/src/modules/orders/ | Transactions |
| Checkout | apps/frontend/src/app/checkout/ | Payment flow |
---
See references/templates.md for:
---
On context compaction:
specs/ for files with status IN_PROGRESS.tasks.md files for unchecked itemsWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.