/pipeline:3_fix [review-file]from pipeline
Fixes issues from a review report in .claude/reviews/. Reads the report, applies minimal fixes per issue severity, runs verify commands, and re-checks spec contracts.
Ships in pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Fix issues found in a review report.
Steps:
Read CLAUDE.md — note the project's test command, lint command, build command, and typecheck command if listed
If $ARGUMENTS is provided, read .claude/reviews/<name>-review.md. Otherwise read the most recently modified file in .claude/reviews/
If a corresponding spec exists in .claude/specs/, read it too — fixes must stay within the spec's stated requirements
a. Phase awareness: if .claude/specs/<name>-phases.md exists, read it. Fixes must stay within the current phase's scope. If a review issue references a requirement that belongs to a later (pending) phase, skip it with "out of scope for current phase" — do not implement it.
Parse the Issues section — work through them in order of severity: critical first, then major, then minor
Circuit breaker: for each issue, check whether it appeared in a previous review of the same spec. If the same issue has recurred across two or more review cycles, flag it as a recurring failure, stop fixing, and escalate to the user with a description of the root cause — do not attempt a third fix for the same problem without user guidance.
Scope gate: only touch files that are explicitly mentioned in the Issues section of the review report. For each issue: read the affected file, understand the problem, then apply a minimal fix — do not refactor, clean up, or improve any code outside those files. Unrelated issues belong in the next review cycle, not this fix cycle.
After fixing all issues, run the project's verify commands in this order (read them from CLAUDE.md, skip any not listed): a. Typecheck b. Lint c. Tests d. Build (if listed)
If any verify step fails, fix those failures too. If a verify step still fails after two fix attempts, stop and escalate to the user — do not loop.
Contract re-check: read the spec's ## Contract section and re-run every item's verify command (from its cwd if set, otherwise the repo root) — the fixes may have broken a criterion that was previously green. For type: e2e items, run against the environment the item's env field names; before any env: local run, probe that the local stack is up — an unreachable stack is a blocker to escalate, not a failed criterion. For manual items, re-confirm the criterion by reading the code. List each item and its status. A non-zero exit is a new critical issue that must be fixed before continuing. (In phased mode, only check the contract ids assigned to the current phase.)
Do this here rather than leaving it to /pipeline:ship Step 5: catching a regressed criterion inside the fix cycle costs one re-run, while letting Step 5 catch it costs a whole review/fix cycle.
If the spec has no ## Contract section (legacy spec), fall back to the previous behaviour: if the spec has a "Validation criteria" section, confirm each criterion is still met after the fixes and list each criterion with its status.
Self-check against review items: before declaring done, re-read the review file and verify each issue one by one:
a. For each issue marked in the review, re-read the affected file at the specific line
b. Confirm the fix actually addresses the issue described — not just a nearby change
c. Check that the fix didn't introduce a new problem in the same area (e.g. breaking an import, changing a signature without updating callers)
d. If any issue is NOT actually resolved, fix it now before proceeding
This step prevents the common pattern where /pipeline:3_fix reports "all fixed" but the next /pipeline:2_review finds the same issues still present.
Spec-anchored check: review whether any fixes diverged from the spec's stated requirements. If they did, do not update the spec — the spec is ground truth. Instead, document the divergence in the report (step 13) and flag it for user decision. Only the user may approve spec changes.
This applies to the ## Contract with no exceptions. Making a failing verify pass by widening its filter, repointing it at a broader suite, relaxing the criterion, or flipping the item to manual is a spec change disguised as a fix — it is the one edit that silently disables the gate the contract exists to provide. Fix the code so the command passes as written, or escalate the item to the user.
Self-improvement gate: for each fixed issue, ask whether a rule would prevent recurrence. If yes, write it to .claude/context/lessons.md immediately using this format:
## YYYY-MM-DD — <topic>
**scope:** framework | project
**class:** <error-class id from .claude/context/lesson-cycle.md>
**What went wrong**: ...
**Rule**: ...
Scope guidelines:
scope: framework — the lesson applies to any project using this framework (e.g., "never skip typecheck", "circular import prevention"). These can graduate to CLAUDE.md rules via /pipeline:ship Step 4b.scope: project — the lesson is specific to the current codebase (e.g., "HelpSection goes below panel header", "Likert zero-value bug"). These stay in lessons.md and are stripped by /deploy.When in doubt, use scope: project — it's safer to under-promote than to pollute the framework with project-specific rules. Also flag it in the report so the team can consider promoting it to CLAUDE.md.
Class guidelines:
**class:** is mandatory. The value must be one of the error-class ids from the closed taxonomy in .claude/context/lesson-cycle.md (if the project has none: ${CLAUDE_PLUGIN_ROOT}/docs/lesson-cycle.md) — unclassified is not a value. node "${CLAUDE_PLUGIN_ROOT}/scripts/lesson-cycle.mjs" --mode validate enforces this deterministically.scope and class are different fields: scope routes graduation (framework vs. project), class names the error mechanism (the unit the improvement cycle works on).Report:
C1 ✓ · C2 ✗ · C3 manual), or the legacy validation-criteria status for specs without a ## ContractACTION REQUIRED — do not end your response without doing this:
If running as a subagent (no direct user interaction), skip the question and return the structured summary instead.
After all fixes are applied and verify commands pass, ask: "Fixes applied to [N] files. Ready for re-review — shall I run /pipeline:2_review <spec-name>? (Recommended: /clear first for an unbiased review)"
The fix cycle is not complete until review passes clean. Repeat the fix → review loop until /pipeline:2_review returns "pass".
What SKILL.md sets; muted values are Claude Code's defaults
claude-opus-5highThree short reads, in order
npx claudepluginhub dixus/claudeframework --plugin pipeline25 skills in this plugin
/0_specWrite a feature spec from requirements in .claude/input/. Use when starting a new feature, before implementation begins./1_implementImplement a feature from a spec file in .claude/specs/. Use after a spec is written and approved./2_reviewReview implementation changes and write a report to .claude/reviews/. Use after implementation is complete, before merging or committing./apply-proposalsReview and apply accepted proposals from learn-proposals.md to skill and rule files. Closes the scout→learn→apply loop. Use after reviewing proposals and marking them as accepted./auditAudit dependencies for vulnerabilities and scan for committed secrets. Use periodically or when security alerts flag a dependency./changelogWrite or refresh the per-ticket changelog file (changelog/<branch>.md) for the current ticket branch. Use before committing or pushing work on a ticket branch when NOT running the full /pipeline:ship pipeline — the changelog is what feeds the work item's manual-steps flag and the release notes.Other plugins' skills for the same job