Loading...
Loading...
Use when ready to implement designed features - breaks design into TDD tasks (Red-Green-Refactor), tracks progress with checkboxes in tasks.md, enforces strict testing discipline. Activates when user says "implement this", "let's code", "start execution", mentions "tasks", "TDD", or uses /dev-workflow:spec commands (tasks, execute).
npx skill4agent add xbklairith/kisune spec-driven-implementation/dev-workflow:specspec-driven-planningdocx/features/[NN-feature-name]/requirements.mddesign.md"Implementation requires completed planning. Runand complete options 1-3 first (Feature Creation, Requirements, Design)."/dev-workflow:spec
[ ] Task N: [Description]
[ ] RED: Write failing test for [functionality]
[ ] GREEN: Implement minimal code to pass test
[ ] REFACTOR: Clean up and optimize
Acceptance Criteria:
[ ] [Specific criterion 1]
[ ] [Specific criterion 2]
Linked Requirements: REQ-###, REQ-###🗣 Say: "Let me ultrathink the implementation strategy before breaking this into tasks."
docx/features/[NN-feature-name]/tasks.md"Tasks defined with TDD cycle. Ready to begin implementation?"
docx/features/[NN-feature-name]/tasks.md[ ] Task N: [description][→] Task N: [description][→]Edit tool:
file: docx/features/01-user-auth/tasks.md
old_string: "[ ] Task 3: Implement JWT validation"
new_string: "[→] Task 3: Implement JWT validation"[ ] RED: ...[x] RED: ...test: Add test for [functionality][ ] GREEN: ...[x] GREEN: ...feat: Implement [functionality][ ] REFACTOR: ...[x] REFACTOR: ...refactor: Optimize [component]docx/features/[NN-feature-name]/tasks.md[→] Task N: ...[x] Task N: ...[x]Start Phase 5
↓
Edit: Status "Not Started" → "In Progress"
↓
For each task:
↓
Edit: [ ] Task N → [→] Task N
Edit: [ ] RED → [→] RED
↓
Write failing test
↓
Edit: [→] RED → [x] RED
Edit: [ ] GREEN → [→] GREEN
↓
Implement code
↓
Edit: [→] GREEN → [x] GREEN
Edit: [ ] REFACTOR → [→] REFACTOR
↓
Refactor code
↓
Edit: [→] REFACTOR → [x] REFACTOR
Edit: [→] Task N → [x] Task N
Edit: Update Progress Summary
↓
Next task or finish
↓
Edit: Status "In Progress" → "Complete"Use Edit tool to change [ ] → [→] in tasks.mdUse Edit tool to change [→] → [x] for that phase
Use Edit tool to change [ ] → [→] for next phaseUse Edit tool to change [→] → [x] for task header
Use Edit tool to update Progress Summary counts✅ Task 1 complete
Moving to Task 2...[Using Edit tool to mark Task 1 complete: [→] → [x]]
[Using Edit tool to update Progress Summary: Completed 1/10]
✅ Task 1 complete
[Using Edit tool to mark Task 2 in progress: [ ] → [→]]
Starting Task 2: JWT token generation...- Total Tasks: 10
- Completed: 0/10
- In Progress: None- Total Tasks: 10
- Completed: 0/10
- In Progress: Task 1 - User model with password hashing- Total Tasks: 10
- Completed: 1/10
- In Progress: Task 2 - JWT token generation🔄 Checkpoint Update:
- ✅ Tests: [N/N] passing
- ✅ Type check: No errors
- ✅ Lint: Clean
- 📝 Completed tasks: [X/Y]
- 🎯 Next: [Next task description]
[Confidence: X.X]grep -c "^\- \[x\] Task" tasks.mdnpm run test:coveragedev-workflow:code-qualityUse Skill tool: Skill(skill: "dev-workflow:code-quality")dev-workflow:test-driven-developmentdev-workflow:git-workflowdev-workflow:code-quality# For TDD enforcement
Use Skill tool: Skill(skill: "dev-workflow:test-driven-development")
# For git operations
Use Skill tool: Skill(skill: "dev-workflow:git-workflow")
# For code review
Use Skill tool: Skill(skill: "dev-workflow:code-quality")✅ Feature Complete: [Feature Name]
Summary:
- Total tasks: [N]
- Tests added: [N]
- Test coverage: [X%]
- Commits: [N]
- Files changed: [N]
Ready to create PR or merge to main?Write a test that describes what the code should do.
The test MUST fail because the code doesn't exist yet.
This proves the test is actually testing something.Write the MINIMUM code needed to make the test pass.
Don't worry about elegance or optimization.
Just make it work.Now that tests pass, improve the code:
- Remove duplication
- Improve naming
- Simplify logic
- Optimize performance
Run tests after each change to ensure they still pass.Activating spec-driven-implementation skill at Phase 4: Task Breakdown
Found feature: docx/features/01-user-authentication/
✅ requirements.md exists
✅ design.md exists
Reading design to create TDD tasks...
Breaking down into testable tasks:
[ ] Task 1: User model with password hashing
[ ] RED: Test password hashing on save
[ ] GREEN: Implement bcrypt hashing
[ ] REFACTOR: Extract hashing to utility
Acceptance Criteria:
[ ] Passwords are hashed before storage
[ ] Original password is not stored
[ ] Hash is verifiable
[ ] Task 2: JWT token generation
[ ] RED: Test token generation with user ID
[ ] GREEN: Implement JWT signing
[ ] REFACTOR: Extract to auth service
Acceptance Criteria:
[ ] Token contains user ID
[ ] Token expires in 24 hours
[ ] Token is properly signed
[...8 more tasks...]
Tasks defined. Ready to begin implementation?Activating Phase 5: Execution
[Using Edit tool on docx/features/01-user-authentication/tasks.md]
[Changing "**Status:** Not Started" to "**Status:** In Progress"]
[Using Edit tool to mark Task 1 in progress]
[Changing "[ ] Task 1: User model with password hashing" to "[→] Task 1: User model with password hashing"]
[Using Edit tool to mark RED phase in progress]
[Changing " [ ] RED: Test password hashing on save" to " [→] RED: Test password hashing on save"]
Starting Task 1: User model with password hashing
RED Phase: Writing failing test...
[Creates test file tests/models/user.test.js with failing test]
Running tests... ❌ 1 failing (expected)
[Using Edit tool to check off RED phase]
[Changing " [→] RED: Test password hashing on save" to " [x] RED: Test password hashing on save"]
Commit: test: Add test for user password hashing
[Using Edit tool to mark GREEN phase in progress]
[Changing " [ ] GREEN: Implement bcrypt hashing" to " [→] GREEN: Implement bcrypt hashing"]
GREEN Phase: Implementing minimal code...
[Implements password hashing in src/models/user.js]
Running tests... ✅ All passing
[Using Edit tool to check off GREEN phase]
[Changing " [→] GREEN: Implement bcrypt hashing" to " [x] GREEN: Implement bcrypt hashing"]
Commit: feat: Implement user password hashing with bcrypt
[Using Edit tool to mark REFACTOR phase in progress]
[Changing " [ ] REFACTOR: Extract hashing to utility" to " [→] REFACTOR: Extract hashing to utility"]
REFACTOR Phase: Extracting to utility...
[Refactors code to src/utils/crypto.js]
Running tests... ✅ All passing
[Using Edit tool to check off REFACTOR phase]
[Changing " [→] REFACTOR: Extract hashing to utility" to " [x] REFACTOR: Extract hashing to utility"]
Commit: refactor: Extract password hashing to utility module
[Using Edit tool to mark Task 1 complete]
[Changing "[→] Task 1: User model with password hashing" to "[x] Task 1: User model with password hashing"]
[Using Edit tool to update Progress Summary]
[Changing "- Completed: 0/10" to "- Completed: 1/10"]
[Changing "- In Progress: Task 1 - User model with password hashing" to "- In Progress: Task 2 - JWT token generation"]
✅ Task 1 complete
🔄 Checkpoint Update:
- ✅ Tests: 3/3 passing
- ✅ Type check: No errors
- ✅ Lint: Clean
- 📝 Completed tasks: 1/10
- 🎯 Next: Task 2 - JWT token generation
[Confidence: 0.9]
Continue to Task 2?"Implementation blocked: [issue]. Need to revisit [requirements/design]. Useto update planning documents."/dev-workflow:spec [requirements/design]
dev-workflow:spec-driven-planningUse Skill tool: Skill(skill: "dev-workflow:spec-driven-planning")[ ][→][→][x]dev-workflow:code-qualitydev-workflow:git-workflow✅ Task 1 complete
Moving to Task 2...[Using Edit tool to mark Task 1 complete: [→] → [x]]
[Using Edit tool to update Progress Summary]
✅ Task 1 complete