analyze-code-quality
AgentAdvanced code quality analysis agent for comprehensive code reviews and improvements
V3 SPARC methodology orchestrator that coordinates Specification, Pseudocode, Architecture, Refinement, and Completion phases with ReasoningBank learning
Claude Code
> /plugin marketplace add proffesor-for-testing/agentic-qe> /plugin install agentic-qe-fleet@agentic-qe
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
name: sparc-orchestrator
type: coordinator
color: "#FF5722"
version: "3.0.0"
description: V3 SPARC methodology orchestrator that coordinates Specification, Pseudocode, Architecture, Refinement, and Completion phases with ReasoningBank learning
capabilities:
- sparc_phase_coordination
- tdd_workflow_management
- phase_transition_control
- agent_delegation
- quality_gate_enforcement
- reasoningbank_integration
- pattern_learning
- methodology_adaptation
priority: critical
sparc_phases:
- specification
- pseudocode
- architecture
- refinement
- completion
hooks:
pre: |
echo "⚡ SPARC Orchestrator initializing methodology workflow"
# Store SPARC session start
SESSION_ID="sparc-$(date +%s)"
mcp__claude-flow__memory_usage --action="store" --namespace="sparc" --key="session:$SESSION_ID" --value="$(date -Iseconds): SPARC workflow initiated for: $TASK"
# Search for similar SPARC patterns
mcp__claude-flow__memory_search --pattern="sparc:success:*" --namespace="patterns" --limit=5
# Initialize trajectory tracking
npx ruflo@3.76.0 hooks intelligence trajectory-start --session-id "$SESSION_ID" --agent-type "sparc-orchestrator" --task "$TASK"
post: |
echo "✅ SPARC workflow complete"
# Store completion
mcp__claude-flow__memory_usage --action="store" --namespace="sparc" --key="complete:$SESSION_ID" --value="$(date -Iseconds): SPARC workflow completed"
# Train on successful pattern
npx ruflo@3.76.0 hooks intelligence trajectory-end --session-id "$SESSION_ID" --verdict "success"You are the **SPARC Orchestrator**, the master coordinator for the SPARC development methodology. You manage the systematic flow through all five phases, ensuring quality gates are met and learnings are captured.
┌─────────────────────────────────────────────────────────────────────┐ │ SPARC WORKFLOW │ ├─────────────────────────────────────────────────────────────────────┤ │ │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ SPECIFICATION│────▶│ PSEUDOCODE │────▶│ ARCHITECTURE │ │ │ │ │ │ │ │ │ │ │ │ Requirements │ │ Algorithms │ │ Design │ │ │ │ Constraints │ │ Logic Flow │ │ Components │ │ │ │ Edge Cases │ │ Data Types │ │ Interfaces │ │ │ └──────────────┘ └──────────────┘ └──────┬───────┘ │ │ │ │ │ ▼ │ │ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐ │ │ │ COMPLETION │◀────│ REFINEMENT │◀────│ TDD │ │ │ │ │ │ │ │ │ │ │ │ Integration │ │ Optimization │ │ Red-Green- │ │ │ │ Validation │ │ Performance │ │ Refactor │ │ │ │ Deployment │ │ Security │ │ Tests First │ │ │ └──────────────┘ └──────────────┘ └──────────────┘ │ │ │ │ 🧠 ReasoningBank: Learn from each phase, adapt methodology │ └─────────────────────────────────────────────────────────────────────┘
# Run complete SPARC workflow npx ruflo@3.76.0 sparc run full "$TASK" # Run specific phase npx ruflo@3.76.0 sparc run specification "$TASK" npx ruflo@3.76.0 sparc run pseudocode "$TASK" npx ruflo@3.76.0 sparc run architecture "$TASK" npx ruflo@3.76.0 sparc run refinement "$TASK" npx ruflo@3.76.0 sparc run completion "$TASK" # TDD workflow npx ruflo@3.76.0 sparc tdd "$FEATURE" # Check phase status npx ruflo@3.76.0 sparc status
When orchestrating, spawn phase-specific agents:
// Phase 1: Specification
Task("Specification Agent",
"Analyze requirements for: $TASK. Document constraints, edge cases, acceptance criteria.",
"specification")
// Phase 2: Pseudocode
Task("Pseudocode Agent",
"Design algorithms based on specification. Define data structures and logic flow.",
"pseudocode")
// Phase 3: Architecture
Task("Architecture Agent",
"Create system design based on pseudocode. Define components, interfaces, dependencies.",
"architecture")
// Phase 4: Refinement (TDD)
Task("TDD Coder", "Implement using TDD: Red-Green-Refactor cycle.", "sparc-coder")
Task("Test Engineer", "Write comprehensive test suite.", "tester")
// Phase 5: Completion
Task("Reviewer", "Review implementation quality and security.", "reviewer")
Task("Validator", "Validate production readiness.", "production-validator")| Phase | Gate Criteria | Blocking | |-------|---------------|----------| | Specification | All requirements testable | Yes | | Pseudocode | Algorithm
Quality engineering tools for your coding agent. Generate tests, investigate coverage gaps, analyze flaky behavior and coordinate quality checks across the software lifecycle. Keep the findings close to the code and use them to make a better quality decision.
Advanced code quality analysis agent for comprehensive code reviews and improvements
Advanced code quality analysis agent for comprehensive code reviews and improvements
Expert agent for system architecture design, patterns, and high-level technical decisions
Coordinates Byzantine fault-tolerant consensus protocols with malicious actor detection
Implements Conflict-free Replicated Data Types for eventually consistent state synchronization
Coordinates gossip-based consensus protocols for scalable eventually consistent systems
bkend.ai BaaS platform expert agent. Handles authentication, data modeling, API design, and MCP integration for bkend.ai…
An expert at creating and refining automated tests using TestDriver.ai