I want to add a new feature/requirement. Please guide me through the complete development workflow:
- If you need clarification or project conventions, query
memory.searchKnowledgewith a brief task description, tags, and scope. - If I ask to save reusable guidance, run
/remember(or callmemory.storeKnowledge). - If MCP tools are unavailable, use
ai-devkit memory searchorai-devkit memory store.
First, ask me:
- What is the feature name? (e.g., "user-authentication", "payment-integration")
- What problem does it solve?
- Who will use it?
- What are the key user stories?
Once I provide the requirement, create the following files (copy the existing template content so sections/frontmatter match exactly):
- Start from
docs/ai/requirements/README.md→ save asdocs/ai/requirements/feature-{name}.md - Start from
docs/ai/design/README.md→ save asdocs/ai/design/feature-{name}.md - Start from
docs/ai/planning/README.md→ save asdocs/ai/planning/feature-{name}.md - Start from
docs/ai/implementation/README.md→ save asdocs/ai/implementation/feature-{name}.md - Start from
docs/ai/testing/README.md→ save asdocs/ai/testing/feature-{name}.md
Ensure the YAML frontmatter and section headings remain identical to the templates before filling in feature-specific content.
Help me fill out docs/ai/requirements/feature-{name}.md:
- Clarify the problem statement
- Define goals and non-goals
- Write detailed user stories
- Establish success criteria
- Identify constraints and assumptions
- List open questions
Guide me through docs/ai/design/feature-{name}.md:
- Propose system architecture changes needed
- Define data models/schema changes
- Design API endpoints or interfaces
- Identify components to create/modify
- Document key design decisions
- Note security and performance considerations
Help me break down work in docs/ai/planning/feature-{name}.md:
- Create task breakdown with subtasks
- Identify dependencies (on other features, APIs, etc.)
- Estimate effort for each task
- Suggest implementation order
- Identify risks and mitigation strategies
Once the docs above are drafted, run the following commands to tighten them up:
/review-requirementsto validate the requirements doc for completeness and clarity/review-designto ensure the design doc aligns with requirements and highlights key decisions
(If you are using Claude Code, reference the review-requirements and review-design commands instead.)
This command focuses on documentation only. Actual implementation happens later via /execute-plan.
For each task in the plan:
- Review the task requirements and design
- Ask me to confirm I'm starting this task
- Guide implementation with reference to design docs
- Suggest code structure and patterns
- Help with error handling and edge cases
- Update
docs/ai/implementation/feature-{name}.mdwith notes
Guide testing in docs/ai/testing/feature-{name}.md:
- Draft unit test cases with
/writing-test - Draft integration test scenarios with
/writing-test - Recommend manual testing steps
- Help write test code
- Verify all success criteria are testable
Guide me through:
- Running all tests locally
- Manual testing checklist
- Reviewing against requirements
- Checking design compliance
- Preparing for code review (diff summary, list of files, design references)
Before pushing, ask me to run /code-review with the modified file list and relevant docs.
When ready to implement, run /execute-plan to work through the planning doc tasks interactively. That command will orchestrate implementation, testing, and follow-up documentation.
Provide the MR/PR description:
## Feature: [Feature Name]
### Summary
[Brief description of what this feature does]
### Requirements
- Documented in: `docs/ai/requirements/feature-{name}.md`
- Related to: [issue/ticket number if applicable]
### Changes
- [List key changes]
- [List new files/components]
- [List modified files]
### Design
- Architecture: [Link to design doc section]
- Key decisions: [Brief summary]
### Testing
- Unit tests: [coverage/status]
- Integration tests: [status]
- Manual testing: Completed
- Test documentation: `docs/ai/testing/feature-{name}.md`
### Checklist
- [ ] Code follows project standards
- [ ] All tests pass
- [ ] Documentation updated
- [ ] No breaking changes (or documented if any)
- [ ] Ready for reviewThen provide the appropriate command:
- GitHub:
gh pr create --title "feat: [feature-name]" --body-file pr-description.md - GitLab:
glab mr create --title "feat: [feature-name]" --description "$(cat mr-description.md)"
Let's start! Tell me about the feature you want to build.