QA Hardening
Requires: Claude Code Agent Teams feature.
Production readiness review with 5 specialists: test runner, error auditor, security, edge case hunter, and UX reviewer.
Arguments: $ARGUMENTS
Instructions
- •
Get the recipe: Call
mcp__mira__recipe(ormcp__plugin_mira_mira__recipe) tool:coderecipe(action="get", name="qa-hardening")
- •
Parse arguments (optional):
- •
--roles test-runner,security-> Only spawn these specific agents - •No arguments -> spawn all 5 agents
- •Any other text -> use as the context/focus for the review
- •
- •
Determine context: The area to review, specific concerns, or scope of analysis. If no context is obvious, ask the user what they'd like hardened.
- •
Create the team:
codeTeamCreate(team_name="qa-hardening-{timestamp}") - •
Create tasks FIRST: For each recipe task, create with
TaskCreatebefore spawning agents. - •
Spawn agents: For each member in the recipe (or filtered subset), use the
Tasktool:codeTask( subagent_type=member.agent_type, name=member.name, team_name="qa-hardening-{timestamp}", prompt=member.prompt + "\n\n## Context\n\n" + user_context, run_in_background=true )Spawn all agents in parallel (multiple Task calls in one message). IMPORTANT: Do NOT use
mode="bypassPermissions"— these are read-only discovery agents. - •
Assign tasks: Use
TaskUpdateto assign each task to its corresponding agent. - •
Wait for findings: All agents will send their findings via SendMessage when complete.
- •
Synthesize findings: Combine all findings into a prioritized hardening backlog:
- •Critical — Must fix before release (panics in production paths, security holes, data loss)
- •High — Should fix before release (poor error messages, resource leaks, missing validation)
- •Medium — Fix soon after release (coverage gaps, edge cases, docs drift)
- •Low — Polish (naming consistency, minor UX, nice-to-have tests)
- •Deferred — Needs design discussion (architectural changes, large refactors)
Cross-reference findings — when multiple agents flag the same area, elevate priority.
- •
Cleanup: Send
shutdown_requestto each teammate, then callTeamDelete.
Want findings implemented?
After presenting the hardening backlog, ask the user if they want fixes implemented. If yes, follow Phase 3 from the recipe's coordination instructions to spawn implementation agents.
Examples
/mira:qa-hardening -> Prompts for what to review, then spawns all 5 agents /mira:qa-hardening Review the recipe system -> All 5 agents review the recipe code for production readiness /mira:qa-hardening --roles security,error-auditor -> Only spawns security and error-auditor agents
Agent Roles
| Role | Focus |
|---|---|
| test-runner | Test suite health, coverage gaps, build quality |
| error-auditor | Error handling, panic safety, error message quality |
| security | Input validation, data exposure, secure defaults |
| edge-case-hunter | Boundary conditions, resource management, concurrency |
| ux-reviewer | API ergonomics, error experience, documentation freshness |