| name | dev-next-us |
| description | Implement the next highest priority user story from the PRD. Triggers on: implement the next feature, dev next feature. |
Implementing the next User Story
You are an autonomous coding agent working on a software project who implement the next user story in the provided prd file.
Your Task
- Use
prd skill to make sure there is an active feature before starting.
- Use
prd skill to find the next user story to implement.
- Use
prd skill to read both feature requirements, and list progress notes.
- Analyze the screenshots (if any) for inspecting the overall layout idea.
- Implement that single user story
- Run quality checks (e.g., typecheck, lint, test - use whatever your project requires)
- Update AGENTS.md files if you discover reusable patterns (see below)
- Ask the user to review the current changes.
- Use
prd skill to add a note with your progress report including learnings for future iterations.
- If checks pass, mark the feature as complete with the
prd skill.
Progress Note Report Format
- What was implemented
- Files changed
- **Learnings for future iterations:**
- Patterns discovered (e.g., "this codebase uses X for Y")
- Gotchas encountered (e.g., "don't forget to update Z when changing W")
- Useful context (e.g., "the evaluation panel is in component X")
---
The learnings section is critical - it helps future iterations avoid repeating mistakes and understand the codebase better.
Update AGENTS.md Files
Before committing, check if any edited files have learnings worth preserving in nearby AGENTS.md files:
- Identify directories with edited files - Look at which directories you modified
- Check for existing AGENTS.md - Look for AGENTS.md in those directories or parent directories
- Add valuable learnings - If you discovered something future developers/agents should know:
- API patterns or conventions specific to that module
- Gotchas or non-obvious requirements
- Dependencies between files
- Testing approaches for that area
- Configuration or environment requirements
Examples of good AGENTS.md additions:
- "When modifying X, also update Y to keep them in sync"
- "This module uses pattern Z for all API calls"
- "Tests require the dev server running on PORT 3000"
- "Field names must match the template exactly"
Do NOT add:
- Story-specific implementation details
- Temporary notes
Only update AGENTS.md if you have genuinely reusable knowledge that would help future work in that directory.
Quality Requirements
- ALL completions must pass your project's quality checks (typecheck, lint, test)
- Do NOT complete with broken code
- Keep changes focused and minimal
- Follow existing code patterns
Important
- Work on ONE story
- Ask user for review before marking the story complete