Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Diagnose a bug, update its behavioral spec, create reviewable fix plan and task files, then hand off for explicit implementation with TDD.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-10 | ✗→✓ | ▲ Improved | 8% | 0% |
| case-08 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-09 | ✗→✓ | ▲ Improved | -33% | 0% |
| case-13 | ✗→✓ | ▲ Improved | 73% | 0% |
| case-14 | ✗→✓ | ▲ Improved | -31% | 0% |
Use the same durable, reviewable workflow as feature work. Diagnose first, then produce the spec amendment, fix plan, and task files before changing production code. The user reviews those artifacts, switches the main session if desired, and sends a later explicit implementation request. Native subagents still require explicit authorization.
textEvidence -> Root cause -> Spec amendment -> Fix plan + tasks -> Design-package handoff -> Explicit implementation request -> TDD implementation -> PR AI review
Do not patch production code before the planning checkpoint unless the user explicitly opts out of the workflow.
When a bug originates from an issue tracker, read the canonical issue and every image attachment before hypothesizing. Reproduce with existing tests, a read-only trace, or a minimal throwaway repro. Do not add production code during this phase.
State the root cause before planning:
If the problem cannot be reproduced or the cause remains unclear, stop and ask the user rather than guessing at a fix.
Before implementation, find the affected durable spec under docs/specs/<slug>/spec.md and amend its behavior or GIVEN/WHEN/THEN scenario to cover the regression. If no relevant spec exists, create a concise repair spec at docs/specs/<fix-slug>/spec.md that states the broken behavior, desired behavior, regression scenario, out-of-scope work, and any relevant contract or persistence constraint.
This spec is the reviewable expected behavior; it is not an incident report.
Create docs/plans/<fix-slug>/plan.md and sibling docs/plans/<fix-slug>/task-<NN>-<short-slug>.md files before implementation. Follow the /plan structure, with these fix-specific requirements:
afterward.
parallel-safe only for disjoint tasks with noshared schema, migration, generated contract, lockfile, or package config.
parallelism: sequential by default in each task; waves are a humandecision aid, not authorization to delegate.
Before changing production or permanent test code, present:
End the turn after this handoff. Do not call ask_user_question_kandev (or an equivalent approval prompt) to ask the user to approve the package or switch models. The user reviews the files, switches the main session if desired, and sends a later explicit implementation request. The files may remain draft/pending; do not wait for a separate approval marker. Do not infer subagent authorization from the plan.
After the user explicitly asks to implement, execute the tasks sequentially by default:
in_progress.done and update plan.md status in the primary session.For persisted defaults or coupled settings, audit every write/reset path for explicit empty or null values. Add the smallest invalid-pair regression, including fixture coverage, and verify normalized read-back plus existing validation.
When the user explicitly authorizes subagents, follow /planner-orchestration: native delegation only, current user-selected model, fork_turns: "none", compact task-file handoffs, no recursive spawning, and runtime usage-metadata confirmation. Only launch tasks marked parallel-safe.
After all task checks pass, commit, push, and open the PR. Do not run automatic local simplify, QA, code/security review, or broad verification. The two configured PR AI reviewers are the semantic-review gate. Use /pr-fixup only for CI failures or actionable reviewer findings, rerunning only the affected task check after remediation.
Stop and ask the user when the root cause is uncertain, the repair changes an architecture/public-contract/persistence/security boundary, the spec and code disagree, or the same targeted check fails three times.
Report the root cause, spec/plan/task paths, design-package handoff, subagents explicitly authorized (if any), changed files, tests run, and current PR-review status.
Other measured skills in the registry, with their headline benchmark lift.