🎯 Use Cases
/docs/use-cases--workflows/use-cases
👨💻 Development & Code Quality
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Code Review | Get thorough reviews with security, performance, and style checks | npx ruflo@latest agent spawn -t reviewer --name pr-review |
| Test Generation | Auto-generate unit, integration, and e2e tests for existing code | npx ruflo@latest agent spawn -t tester --name test-gen |
| Refactoring | Safely restructure code while maintaining behavior | npx ruflo@latest hive-mind spawn "Refactor user service to repository pattern" |
| Bug Fixing | Diagnose and fix bugs with full context analysis | npx ruflo@latest hive-mind spawn "Fix race condition in checkout flow" |
🔒 Security & Compliance
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Security Audit | Find vulnerabilities before attackers do | npx ruflo@latest security scan --depth full |
| Dependency Scan | Identify vulnerable packages and suggest upgrades | npx ruflo@latest security cve --check |
| Compliance Check | Ensure code meets security standards | npx ruflo@latest security audit |
🐝 Multi-Agent Swarms
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Feature Development | Coordinate multiple agents on complex features | npx ruflo@latest swarm init --topology hierarchical && npx ruflo@latest task orchestrate "Build user dashboard" |
| Large Refactors | Parallel refactoring across many files without conflicts | npx ruflo@latest swarm init --topology mesh --max-agents 8 |
| Codebase Migration | Migrate frameworks, languages, or patterns systematically | npx ruflo@latest task orchestrate "Migrate from Express to Fastify" --strategy adaptive |
📊 Performance & Optimization
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Performance Profiling | Find and fix bottlenecks in your application | npx ruflo@latest performance profile --target src/ |
| Query Optimization | Speed up slow database queries | npx ruflo@latest performance benchmark --suite all |
| Memory Analysis | Reduce memory usage and fix leaks | npx ruflo@latest performance metrics |
🔄 GitHub & DevOps
| Scenario | What It Solves | How To Do It |
|---|---|---|
| PR Management | Review, approve, and merge PRs efficiently | npx ruflo@latest hive-mind spawn "Review open PRs" |
| Issue Triage | Categorize, prioritize, and assign issues automatically | npx ruflo@latest hive-mind spawn "Triage new issues" |
| Release Management | Coordinate releases with changelogs and versioning | npx ruflo@latest hive-mind spawn "Prepare v2.0 release" |
| CI/CD Optimization | Speed up pipelines and reduce flaky tests | npx ruflo@latest hive-mind spawn "Optimize GitHub Actions workflow" |
📋 Spec-Driven Development
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Generate Specs | Create complete specifications before coding | npx ruflo@latest hive-mind spawn "Create ADR for authentication system" |
| Validate Implementation | Ensure code matches specifications | npx ruflo@latest hooks progress --detailed |
| Track Compliance | Monitor spec adherence across the team | npx ruflo@latest progress sync |
🧠 Learning & Intelligence
| Scenario | What It Solves | How To Do It |
|---|---|---|
| Bootstrap Intelligence | Train the system on your codebase patterns | npx ruflo@latest hooks pretrain --depth deep |
| Optimize Routing | Improve task-to-agent matching over time | npx ruflo@latest hooks route "<task>" --include-explanation |
| Transfer Learning | Apply patterns learned from other projects | npx ruflo@latest hooks transfer <sourceProject> |