| name | develop-feature |
| description | Full development workflow from planning through deployment for AI Agent features. Use when developing new features, making significant architecture changes, or starting work on any non-trivial implementation. |
| <!-- disable-model-invocation | true --> |
Develop Feature Workflow
Follow this 5-phase workflow when developing new features or making significant changes.
Phase 1: Planning & Design
- Define agent goals: Clarify what the feature should accomplish, scope, and constraints
- Choose architecture pattern:
- ReAct: Single-agent tool-use loops
- Plan-and-Execute: Tasks requiring upfront planning
- Multi-Agent: Complex workflows with specialized agents
- Design tool integration: Identify APIs needed, define typed schemas
- Define evaluation criteria: Success metrics before coding
- Externalize prompts: Draft prompts as separate files
- Analyze requirements: Check for SOLID violations
- Create decision record: Create a file in
history/ following naming convention {MAJOR}_{MINOR}_{PATCH}_{SHORT_DESCRIPTION}.md
Phase 2: Core Development
- Start simple: Begin with minimal working implementation
- Build modularly: Develop each layer in isolation:
- Prompt templates → LLM client → Tools → Orchestration → Memory
- Write tests: TDD or alongside implementation
- Version prompts: Treat prompt changes as code changes
- Commit frequently: Use Conventional Commits (
feat(scope): description)
- Refactor immediately: Address code smells right away
Phase 3: Testing & Evaluation
- Unit tests: Test individual components in isolation
- Integration tests: Verify tool calls, error handling
- Agent evaluation: Run end-to-end scenarios
- LLM-as-judge for subjective quality
- Deterministic checks for structured outputs
- Prompt regression: Re-run evaluation after prompt changes
- Edge case testing: Adversarial inputs, API failures
- Cost profiling: Measure token usage and latency
Phase 4: Debugging & Observability
- Enable tracing: Instrument with session → trace → span
- Inspect tool calls: Verify correct tools and arguments
- Identify bottlenecks: Find latency hotspots
- Log structured data: Model, tokens, latency, version
- Iterate on prompts: Use evidence to refine
Phase 5: Deployment & CI
- Self-review: Run
/code-review skill
- Run tests:
pytest (pyproject.toml configures coverage automatically)
- Run linting:
ruff check . && ruff format --check .
- Run type check:
pyright
- Update docs: README, API docs if needed
- Create PR: With clear description referencing the history record
- Monitor: Track quality and cost metrics