From vibe-test
Fix — diagnose broken tests and harnesses, route repairs by confidence. High → auto-repair with rationale; medium → stage in `.vibe-test/pending/fixes/`; low / complex → defer to `superpowers:systematic-debugging`. Detects harness-level breaks (broken runner, missing binary, cherry-picked denominator) distinctly from test-logic breaks. Rolls back auto-written generated tests to pending when they are the source of CI breakage.
How this command is triggered — by the user, by Claude, or both
Slash command
/vibe-test:fix [--path <glob>]The summary Claude sees in its command listing — used to decide when to auto-load this command
Use the **fix** skill to handle `/vibe-test:fix`. Read `skills/fix/SKILL.md` and follow it end to end. The fix command: 1. Checks the blocking prereq — a failure signal must be available (cached last-run output, ability to run tests live, or builder-provided output). If not, offer paths and wait. 2. Pattern #13: announces `superpowers:systematic-debugging` for complex-diagnosis deferrals and `superpowers:verification-before-completion` for post-repair verification co-invoke. 3. Collects failure signals from builder-paste, `.vibe-test/state/last-run.json`, or a live `runCoverage()` run (wi...
Use the fix skill to handle /vibe-test:fix.
Read skills/fix/SKILL.md and follow it end to end. The fix command:
superpowers:systematic-debugging for complex-diagnosis deferrals and superpowers:verification-before-completion for post-repair verification co-invoke..vibe-test/state/last-run.json, or a live runCoverage() run (with opt-in). Parses into structured Failure records..vibe-test/pending/fixes/<mirror>.fix.md; <0.70 defer to systematic-debugging (when present) or ask builder.Generated by Vibe Test ... Confidence: HIGH. header) AND it's in accepted.json, revert it to .vibe-test/pending/tests/<mirror> instead of auto-repairing in place. Removes the accepted.json entry; logs artifact_rewritten friction at confidence high.--path <glob> respects prior scoped audit state for diagnosis context.superpowers:verification-before-completion (when present) after repairs land to verify the fix held.docs/vibe-test/fix-<date>.md), terminal banner, JSON sidecar (.vibe-test/state/fix.json — skipValidation: true since no fix-state schema in v0.2).docs/test-plan.md in the terminal phase.Every user-facing string respects src/reporter/tier-adaptive-language.ts verbosity knobs. JSON output is level-invariant.
Handoff line format is "Re-run tests; /vibe-test:gate when ready." (persona-adapted). Do not prescribe /clear between commands — Claude Code auto-compacts.
npx claudepluginhub estevanhernandez-stack-ed/vibe-test --plugin vibe-test/fixIteratively repairs code errors until zero remain via autonomous loop, applying one atomic fix per iteration with auto-revert on failure. Supports --target, --scope, --category, --iterations flags.
/fixFixes issues automatically by locating root cause, applying minimal changes, and running tests. Also supports systematic debug mode (/fix debug) for analysis without code changes.
/fixApplies auto-fixable code review findings: dispatches fix-group agents, post-reviews working tree, commits survivors, reverts regressions, updates artifact.
/fixDetects and fixes bugs by analyzing error messages, stack traces, logs, or file paths. Proposes solutions, implements minimal fixes, validates, and suggests tests.