mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-23 21:59:14 +09:00
3.2 KiB
3.2 KiB
CLAUDE.md - Optimized for Api Development
🎯 Configuration Overview
- Use Case: Api Development
- Optimization Target: balanced
- Team Size: N/A
- Complexity: medium
⚡ Performance Configuration
- Execution Mode: Parallel-first (Aggressive)
- Agent Count: 8 (backend-dev, api-docs, tester, reviewer)
- Topology: Mesh
- Batch Operations: MANDATORY
- Parallel Execution: AGGRESSIVE
- Optimizations:
- Batch Endpoints
- Parallel Testing
- Cache Responses
- Aggressive Concurrency
🎯 Primary Objectives
- REST endpoints
- GraphQL schemas
- OpenAPI docs
- Achieve <100ms response time for all endpoints
- Maintain 95% test coverage
- Generate 100% OpenAPI documentation coverage
🚀 Execution Rules
CRITICAL: Concurrency Requirements
// ALWAYS execute in single message:
[
Task("Backend Dev", "...", "backend-dev"),
Task("Api Docs", "...", "api-docs"),
Task("Tester", "...", "tester"),
Task("Reviewer", "...", "reviewer"),
TodoWrite({ todos: [ALL_TASKS] }),
// ... all related operations
]```
### Critical Rules
- Always validate input parameters
- Implement proper error handling
- Follow RESTful conventions
- Generate OpenAPI documentation
- ALWAYS batch operations in single message
- Use MultiEdit for endpoint creation
- Parallel test execution mandatory
- ALWAYS batch operations in single message
- Use Task tool for parallel agent execution
- Enable memory caching for repeated operations
- Prefer MultiEdit over multiple Edit calls
- Minimize file reads with targeted searches
- Use Glob before Grep for file discovery
- Execute all related operations concurrently
- Avoid explanatory text in responses
- Cache computation results aggressively
- Prioritize parallel over sequential execution
- Implement comprehensive logging
- Use distributed tracing
- Enable advanced monitoring
### Tool Priority Order
1. MultiEdit → Edit → Bash → Read
### Api Development Workflow
**Design Phase**: Create OpenAPI spec first
**Implementation**: Use MultiEdit for endpoint creation
**Testing**: Parallel test execution
**Documentation**: Auto-generate from OpenAPI
**Optimization**: Profile and optimize slow endpoints
## 🤖 Agent Configuration
- **Swarm Topology**: Mesh
- **Maximum Agents**: 8
- **Preferred Agent Types**: backend-dev, api-docs, tester, reviewer
### Coordination Features
- Pre Task Hooks: Enabled
- Post Edit Memory: Enabled
- Session Restore: Enabled
- Performance Analysis: Enabled
## 📊 Success Metrics
- Response Time: <100ms (p95)
- Test Coverage: >95%
- Documentation: 100% coverage
- Error Rate: <0.1%
## 🔄 Agent Coordination Protocol
### Pre-Task Initialization
```bash
npx claude-flow@alpha hooks pre-task --description "[task]"
npx claude-flow@alpha hooks session-restore --session-id "swarm-[id]"
Post-Edit Memory Sync
npx claude-flow@alpha hooks post-edit --file "[file]" --memory-key "swarm/[agent]/[step]"
npx claude-flow@alpha hooks notify --message "[decision]"
Performance Analysis
npx claude-flow@alpha hooks post-task --task-id "[task]" --analyze-performance true
npx claude-flow@alpha hooks session-end --export-metrics true