Skip to content

build

This workflow guides the implementation of features using best practices.

  • User provides a specific feature to build (e.g., “Implement user login”).
  1. 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.
  2. Implementation

    • Use key: typescript-expert (or python-patterns based on language)
    • Goal: Implement the feature to pass the tests.
    • Instruction: Follow SOLID principles and language-specific idioms.
  3. 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.
  4. Refactoring

    • Use key: secure-refactoring
    • Goal: Refactor the code for better readability and security after getting tests to pass (Green phase).
  1. 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.

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.