Implement a story following its plan (future: bug, chore)
Implements planned stories by executing the plan, writing code and tests, validating with lint/build/test, and updating status to coded.
/plugin marketplace add eLafo/hefesto/plugin install elafo-hefesto-2@eLafo/hefesto<path> | story <path>dev/Router command for implementing planned work.
| Input | Strategy |
|---|---|
story <path> | Story Implementation |
<path> (auto-detect) | Detect entity type |
| (future) | bug, chore strategies |
Currently supports: story
Trigger: dev:code story <path> or auto-detected story path
planned{story_path}/plan.mdcoded{story_path}/plan.mdExecute plan systematically:
Follow the plan exactly:
For each phase:
Code quality:
Tests alongside code:
Run validations:
# Detect and run tests
npm test / pytest / go test
# Run linter
npm run lint / flake8 / golint
# Run build
npm run build / go build
Check acceptance criteria verifiable at this stage.
Update user-story.md status → coded
Create {story_path}/implementation-notes.md:
# Implementation Notes: {Story Title}
## Summary
{Brief description of what was implemented}
## Files Changed
| File | Action | Description |
|------|--------|-------------|
| src/auth.ts | Created | Auth service |
| src/Login.tsx | Created | Login component |
## Tests Added
| Test File | Coverage |
|-----------|----------|
| auth.test.ts | Login, logout, session |
## Deviations from Plan
{Any necessary changes, with reasoning}
## Known Issues
{Issues discovered during implementation}
## Validation Status
- [x] Tests passing
- [x] Linter passing
- [x] Build successful
- [ ] Manual verification needed for AC-3
## Notes
{Additional context}
Update feature.json progress.
Recommend dev:test story {story_path}
✅ Implementation Complete
Story: {title}
Path: {story_path}
Work Summary:
- Files created: 3
- Files modified: 2
- Tests added: 5
Validation:
✅ Tests passing (12/12)
✅ Linter: no issues
✅ Build: successful
Feature Progress: ████████░░░░ 60% (3/5 coded)
→ Next (DEV): dev:test story {story_path}
⚠️ Implementation Complete with Issues
Story: {title}
Validation:
⚠️ Tests: 10/12 passing
✅ Linter: no issues
Failing Tests:
- auth.test.ts:45 - Token validation
- auth.test.ts:67 - Session timeout
Action Required:
Fix failing tests before proceeding.