From zenflow
Use when fixing bugs, errors, or unexpected behavior. Launches parallel diagnostic agents then a specialist to fix. Use for any issue that starts with "X is broken", "X doesn't work", error reports, or failing tests.
How this skill is triggered — by the user, by Claude, or both
Slash command
/zenflow:bug-fixThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Diagnose and fix bugs using a 4-agent pipeline: two diagnostic agents analyze the problem in parallel, a specialist writes the fix, and a code reviewer verifies quality.
Diagnose and fix bugs using a 4-agent pipeline: two diagnostic agents analyze the problem in parallel, a specialist writes the fix, and a code reviewer verifies quality.
Announce at start: "I'm using the zenflow:bug-fix skill to diagnose and fix this issue."
Before launching agents, confirm the bug:
Launch two agents in parallel via Agent tool:
Agent 1 — error-detective (subagent_type: error-detective)
Agent 2 — error-coordinator (subagent_type: error-coordinator)
Based on diagnostic results, select the specialist agent type:
agents array from .claude/zen.local.md, match the affected file path against each entry's dir, use that entry's agent field.claude/agents/*.md and ~/.claude/agents/*.md, read each file's name and description, match the bug's location and domain to the most relevant agentgeneral-purposeInform the user which agent was selected and why. If falling back to discovery or default:
"No config match for this bug domain — using [agent]. Run
/zenflow:initto generate agent assignments, or add an entry to your zen.local.md config."
Launch the specialist agent with:
The specialist must:
Launch a code-reviewer agent (subagent_type: Code Reviewer) with:
The reviewer checks:
If the reviewer finds issues: send feedback to the specialist agent to fix, then re-review.
Run zenflow:check-work skill to pass all quality gates.
Declare STUCK — do not keep retrying — when:
When marking STUCK, report:
npx claudepluginhub brewpirate/zen-flow --plugin zenflowCoordinates diagnosis, test-driven reproduction, root-cause analysis, and targeted fixes for bugs with regression testing.
Root cause based one-shot bug fix. Runs a full investigation pipeline: debugger diagnosis, gap analysis, requirements generation, execution, and verification. Includes QA suggestions after successful fix.