Code Quality Evaluation
Orchestrate 8 specialized teammate agents for comprehensive code quality evaluation. Each agent is a plugin subagent —
spawn them as teammates and aggregate their findings.
Agents
All agents are read-only — they analyze code and report findings via SendMessage.
the-crucible:namer — Naming: misleading, vague, type-encoded, scope-mismatched identifiers
the-crucible:complexity-reviewer — Complexity: nesting, flag arguments, duplication, premature abstraction
the-crucible:comment-reviewer — Comments: noise, staleness, refactoring signals, commented-out code
the-crucible:test-reviewer — Tests: false confidence, implementation coupling, flakiness, coverage gaps
the-crucible:error-handling-reviewer — Errors: silent swallowing, context loss, resource leaks, async error loss
the-crucible:security-reviewer — Security: injection, access control, secrets, crypto, data exposure
the-crucible:observability-reviewer — Observability: logging, metrics, tracing, cardinality, context propagation
the-crucible:docs-auditor — Documentation: missing API docs, stale docs, contract gaps
Workflow
Phase 0: Create Team
Create a review team and 8 tasks — one per agent:
TeamCreate(name="code-review")
For each agent in the table above:
TaskCreate(team_name="code-review", title="{agent_name}", description="Review {target}")
Phase 1: Spawn Reviewers
Spawn all 8 agents in parallel as teammates using their subagent_type. The agent files define each reviewer's
expertise, patterns, and constraints — the prompt parameter only needs to specify the target and team context:
For each agent:
Agent(
subagent_type="{subagent_type}",
prompt="Review all code in {target}. Send your findings to the leader via SendMessage.",
team_name="code-review",
task_id="{task_id}"
)
Phase 2: Aggregate and Present Findings
As teammates send messages, aggregate findings:
- Collect all messages from the 8 reviewers
- Deduplicate overlapping findings across agents
- Present to user organized by severity (Critical > Issues > Recommendations)
- Ask user which issues to address
Phase 3: Apply Fixes
Address findings based on user direction:
- Fix critical issues first, then issues, then recommendations
- User may skip categories or individual findings
- Continue until user says to stop or all addressed
Usage
Run code quality evaluation on src/auth/
Example interaction flow:
- User: "Run code quality evaluation on src/auth/"
- Create team "code-review" with 8 tasks
- Spawn 8 teammate agents by subagent_type
- Teammates send findings via messages
- Aggregate and present: "Found 2 critical, 5 issues, 3 recommendations. Which to address?"
- User picks categories or specific findings to fix
- Apply fixes iteratively
Constraints
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: xobotyi-cc-foundry-code-quality-evaluation3description: Code Quality Evaluation4---56# Code Quality Evaluation78Orchestrate 8 specialized teammate agents for comprehensive code quality evaluation. Each agent is a plugin subagent —9spawn them as teammates and aggregate their findings.1011## Agents1213All agents are **read-only** — they analyze code and report findings via SendMessage.1415- `the-crucible:namer` — Naming: misleading, vague, type-encoded, scope-mismatched identifiers16- `the-crucible:complexity-reviewer` — Complexity: nesting, flag arguments, duplication, premature abstraction17- `the-crucible:comment-reviewer` — Comments: noise, staleness, refactoring signals, commented-out code18- `the-crucible:test-reviewer` — Tests: false confidence, implementation coupling, flakiness, coverage gaps19- `the-crucible:error-handling-reviewer` — Errors: silent swallowing, context loss, resource leaks, async error loss20- `the-crucible:security-reviewer` — Security: injection, access control, secrets, crypto, data exposure21- `the-crucible:observability-reviewer` — Observability: logging, metrics, tracing, cardinality, context propagation22- `the-crucible:docs-auditor` — Documentation: missing API docs, stale docs, contract gaps2324## Workflow2526### Phase 0: Create Team2728Create a review team and 8 tasks — one per agent:2930```31TeamCreate(name="code-review")3233For each agent in the table above:34 TaskCreate(team_name="code-review", title="{agent_name}", description="Review {target}")35```3637### Phase 1: Spawn Reviewers3839Spawn all 8 agents in parallel as teammates using their `subagent_type`. The agent files define each reviewer's40expertise, patterns, and constraints — the `prompt` parameter only needs to specify the target and team context:4142```43For each agent:44 Agent(45 subagent_type="{subagent_type}",46 prompt="Review all code in {target}. Send your findings to the leader via SendMessage.",47 team_name="code-review",48 task_id="{task_id}"49 )50```5152### Phase 2: Aggregate and Present Findings5354As teammates send messages, aggregate findings:55561. Collect all messages from the 8 reviewers572. Deduplicate overlapping findings across agents583. Present to user organized by severity (Critical > Issues > Recommendations)594. Ask user which issues to address6061### Phase 3: Apply Fixes6263Address findings based on user direction:64651. Fix critical issues first, then issues, then recommendations662. User may skip categories or individual findings673. Continue until user says to stop or all addressed6869## Usage7071```72Run code quality evaluation on src/auth/73```7475**Example interaction flow:**76771. User: "Run code quality evaluation on src/auth/"782. Create team "code-review" with 8 tasks793. Spawn 8 teammate agents by subagent_type804. Teammates send findings via messages815. Aggregate and present: "Found 2 critical, 5 issues, 3 recommendations. Which to address?"826. User picks categories or specific findings to fix837. Apply fixes iteratively8485## Constraints8687<constraints>88- Create the team and all tasks BEFORE spawning any agents89- Use `subagent_type` to spawn agents — their `.md` files define review behavior90- The `prompt` parameter provides only the target path and team instructions91- All agents are READ-ONLY — they report, the leader fixes92- Agents communicate via SendMessage — no file-based reports93- Deduplicate findings that overlap across agents before presenting94- Present findings organized by severity, not by agent95</constraints>9697---98> Converted and distributed by [TomeVault](https://tomevault.io/claim/xobotyi) — claim your Tome and manage your conversions.99<!-- tomevault:4.0:skill_md:2026-04-13 -->