2.7 KiB
2.7 KiB
description, argument-hint, model
| description | argument-hint | model |
|---|---|---|
| Start intelligent coding workflow with automated testing and code review | <your coding requirement> | inherit |
Droids Coding Workflow
User Requirement
$ARGUMENTS
Workflow Overview
You will coordinate specialized agents to complete this coding task with quality assurance. After implementing the core functionality yourself, you MUST use the following agents:
- test-engineer agent - For comprehensive testing
- code-reviewer agent - For quality and security review
- doc-writer agent (optional) - For documentation
Step-by-Step Process
Step 1: Analyze & Plan (You do this)
- Read CLAUDE.md if it exists to understand project standards
- Analyze the codebase structure relevant to the requirement
- Create a clear implementation plan
- Use TodoWrite to track your plan
Step 2: Implement Core Functionality (You do this)
- Implement the required functionality directly
- Make necessary file changes
- Follow coding standards from CLAUDE.md
- Handle edge cases and errors properly
Step 3: Use test-engineer Agent (REQUIRED)
After implementation, use the test-engineer agent to write and run comprehensive tests.
Provide the agent with:
- The implemented code/feature
- Test requirements: backend tests (unit, integration, API), frontend tests (component, E2E), contract tests
The agent should:
- Write tests following project patterns
- Run all tests
- Report coverage and results
Step 4: Use code-reviewer Agent (REQUIRED)
After tests pass, use the code-reviewer agent to assess code quality.
Provide the agent with:
- The implemented code
- Test results from step 3
The agent should check:
- Security vulnerabilities
- Code quality and maintainability
- Performance issues
- Standards compliance with CLAUDE.md
Step 5: Iterate if Needed
- If tests fail: Fix the code and re-run test-engineer agent
- If review finds critical issues: Address them, then re-test and re-review
- Maximum 3 iterations
Step 6: Use doc-writer Agent (Optional)
If documentation is needed, use the doc-writer agent.
The agent should:
- Add inline comments (JSDoc/docstring) for key functions
- Create/update API documentation
- Update README if needed
Step 7: Report Completion
Provide a summary to the user including:
- What was implemented
- Test results (all passing)
- Code review results (approved)
- Any documentation created
Important Notes
- You must use the agents - Don't skip the test-engineer and code-reviewer steps
- Detect user's language and respond in the same language (Chinese/中文 or English)
- Keep the user informed with clear progress updates
- Follow CLAUDE.md standards throughout
Start now by analyzing the requirement and creating your implementation plan!