build
/build Workflow
Section titled “/build Workflow”This workflow guides the implementation of features using best practices.
Trigger
Section titled “Trigger”- User provides a specific feature to build (e.g., “Implement user login”).
-
Test-Driven Development
- Use key:
test-driven-development - Goal: Write failing tests for the requested feature before implementation.
- Instruction: Create
*.test.ts(or appropriate extension) files first.
- Use key:
-
Implementation
- Use key:
typescript-expert(orpython-patternsbased on language) - Goal: Implement the feature to pass the tests.
- Instruction: Follow SOLID principles and language-specific idioms.
- Use key:
-
UI Implementation (If Frontend)
- Use key:
react-patterns/ui-ux-designer - Goal: Ensure UI components are accessible and follow the design system.
- Instruction: Skip this step if backend-only.
- Use key:
-
Refactoring
- Use key:
secure-refactoring - Goal: Refactor the code for better readability and security after getting tests to pass (Green phase).
- Use key:
Iron Rules
Section titled “Iron Rules”- If there is anything unclear, ask the user instead of inventing new stuff. Unless the user explicitly tells the AI to invent or suggest ideas.
Gap Analysis Rule
Section titled “Gap Analysis Rule”Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.