Workflows
Primary Workflow
Workflow definition
Primary Workflow
Claude CodeFactory
Primary Workflow
IMPORTANT: Analyze the skills catalog and activate the skills that are needed for the task during the process. IMPORTANT: Ensure token efficiency while maintaining high quality.
Ultrathink Detection (Enhanced Reasoning Mode)
Trigger: If user message contains "ultrathink" (case-insensitive), activate enhanced mode.
When ultrathink is detected:
- Follow
workflows/ultrathink-mode.mdprotocol - Use
ultrathink-coordinatoragent for orchestration - Generate 3+ approaches before selecting
- Validate rigorously before delivery
See ultrathink-mode.md for full protocol.
1. Code Implementation
- Before you start, delegate to
planneragent to create a implementation plan with TODO tasks in./plansdirectory. - When in planning phase, use multiple
researcheragents in parallel to conduct research on different relevant technical topics and report back toplanneragent to create implementation plan. - Write clean, readable, and maintainable code
- Follow established architectural patterns
- Implement features according to specifications
- Handle edge cases and error scenarios
- DO NOT create new enhanced files, update to the existing files directly.
- [IMPORTANT] After creating or modifying code file, run compile command/script to check for any compile errors.
2. Testing
- Delegate to
testeragent to run tests and analyze the summary report.- Write comprehensive unit tests
- Ensure high code coverage
- Test error scenarios
- Validate performance requirements
- Tests are critical for ensuring code quality and reliability, DO NOT ignore failing tests just to pass the build.
- IMPORTANT: make sure you don't use fake data, mocks, cheats, tricks, temporary solutions, just to pass the build or github actions.
- IMPORTANT: Always fix failing tests follow the recommendations and delegate to
testeragent to run tests again, only finish your session when all tests pass.
3. Code Quality
- After finish implementation, delegate to
code-revieweragent to review code. - Follow coding standards and conventions
- Write self-documenting code
- Add meaningful comments for complex logic
- Optimize for performance and maintainability
4. Security Scan (NEW - Phase 02)
- Before deployment, delegate to
security-auditoragent for security validation. - Run
/security:scanfor quick vulnerability check. - For production deployments, run
/security:auditfor comprehensive review. - Address any Critical/High severity findings before proceeding.
- Use
/compliance:checkto validate SOC2/GDPR requirements if applicable.
5. Deployment (NEW - Phase 01/03)
- Delegate to
devops-engineeragent for deployment orchestration. - Use
release-manageragent for changelogs and versioning. - Deployment sequence:
/deploy:preview- Deploy to preview environment for testing/deploy:staging- Deploy to staging for QA validation/security:scan- Final security check before production/deploy:production- Deploy to production/deploy:status- Monitor deployment health
- For incidents, delegate to
ops-analystagent:/ops:logs- Analyze application logs/ops:health- Check system health/incident:respond- Initiate incident response workflow/ops:postmortem- Generate blameless post-mortem
6. Integration
- Always follow the plan given by
planneragent - Ensure seamless integration with existing code
- Follow API contracts precisely
- Maintain backward compatibility
- Document breaking changes
- Delegate to
docs-manageragent to update docs in./docsdirectory if any.
7. Debugging
- When a user report bugs or issues on the server or a CI/CD pipeline, delegate to
debuggeragent to run tests and analyze the summary report. - Read the summary report from
debuggeragent and implement the fix. - Delegate to
testeragent to run tests and analyze the summary report. - If the
testeragent reports failed tests, fix them follow the recommendations and repeat from the Step 2.
Agent Summary
| Agent | Purpose | Key Commands |
|---|---|---|
| planner | Create implementation plans | /plan |
| researcher | Technical research | - |
| fullstack-developer | Code implementation | /code |
| tester | Test execution | /test |
| code-reviewer | Quality review | /review |
| security-auditor | Security validation | /security:scan, /security:audit |
| devops-engineer | Deployment orchestration | /deploy:, /cicd: |
| release-manager | Versioning & releases | /release |
| ops-analyst | Operations & incidents | /ops:*, /incident:respond |
| docs-manager | Documentation | /docs |
| debugger | Issue diagnosis | /debug |
| ultrathink-coordinator | Enhanced reasoning for complex tasks | ultrathink keyword |