/ts-react-linter-driven-development:tsr-ldd-quickfix [file_pattern | --all]from ts-react-linter-driven-development
Runs the quality-gates loop (tests, lint, review, fix, repeat) over a resolved scope of files until all gates pass green. Skips design and TDD phases.
Ships in ts-react-linter-driven-development. Installing the plugin adds it to Claude Code.
Run the quality-gates loop over code that already exists and needs to pass: the files of the PR you are working on, a set of review findings, a package you name. Design (Phase 1) and TDD implementation (Phase 2) are skipped; Phases 3, 4 and 5 run over the resolved scope until green.
⏱️ Estimated Duration: 2-5 minutes for a PR's worth of files. --all on a
repository that has never run tsr-ldd is a different job: expect the loop to run
long, and prefer /tsr-ldd-analyze --all first to see the size of it.
!git status --porcelain
!git diff --stat HEAD
!git log --oneline "$(git merge-base HEAD origin/main 2>/dev/null || git merge-base HEAD main 2>/dev/null || git merge-base HEAD master 2>/dev/null || echo HEAD)"..HEAD
Resolve the scope first — the first rung that applies, and only that rung:
$ARGUMENTS). A file pattern or a directory fixes those
files — validate they exist. --all, or an explicit request to clean up the whole
repository, fixes every *.ts* file. The whole repository is never touched
without being asked.HEAD: staged, unstaged and untracked.origin/main, main or master, as the preamble above
shows). This is the ceiling: never wider than the branch.--all form and the
file-pattern form, and stop. No lint-fixer, no refactoring, no review over an empty
scope, no silent widening. A clean tree on a branch with no base is this rung, not
an invitation to lint the repository.Name the rung and list the files in the report's scope line. The lint scope is the set of packages (directories) that contain those files; the review scope is the files.
Use the Skill tool to invoke Skill(ts-react-linter-driven-development:linter-driven-development) with the
resolved scope, telling it that Phases 1–2 and the @documentation step of Phase 5
are skipped. Where this command and the skill differ, this command wins:
Phase 3 — TESTS + LINT over the scope (via the ts-react-linter-driven-development:lint-fixer agent, Agent tool,
isolated context, spawned with the package list)
task test / make test / npx vitest run;
lint from Taskfile/Makefile or npx tsc --noEmit && npx eslint . --fix && npx prettier --write .)FIXED in placeESCALATED: lines, one per failure, with
file:line and the owning rule<routing_table> maps linter failure → owning rule's Fix pattern; its six-step
stopping criteria and its commit apply); package-size escalations follow
<package_decomposition> in @refactoring's reference.md
(sed -n '/^<package_decomposition>/,/^<\/package_decomposition>/p; /^### Package decomposition/,$p'); a budget spent escalation is mechanical leftover — spawn the lint-fixer again over the
packages it names, at most three times per scope and never after a fresh one reports
FIXED: none on them; a no progress escalation is not respawned. What is left at
either cutoff is unresolved mechanical lint with no rule route: Phase 3 stops, and
the ship summary lists each file:line under LINT STATUS: escalations pending —
it never goes to @refactoring. An ESCALATED: … → setup line says that no task
runs the agreed lint config: Phase 3 stops, and the summary names the line and
/tsr-ldd-setup. Design escalations are never fixed by hand from this
command, and never by a subagent:
@refactoring runs in this thread, whether there are two escalations or twenty. A
general-purpose agent applying escalations is the failure this line exists to
prevent.LINT STATUS: green for the scope, or until the
respawn ceiling ends Phase 3 with that listMutation check (you, the main agent, after the tests pass)
../rules/R7-test-placement.md.mutation-not-run row, and read the exit code:bash ${CLAUDE_PLUGIN_ROOT}/scripts/ldd-ledger.sh add mutation-not-run <<'ROW'
<leaf> — <why the run did not execute>
ROW
Phase 4 — REVIEW over the scope's diff (via @pre-commit-review)
ts-react-linter-driven-development:rule-hunter agents + the
ts-react-linter-driven-development:overabstraction-skeptic against the diff; it reports, never edits, never widens;
a diff in several languages is split by file and each group reviewed by the plugin
installed for its language, in one report with a section per languageOutside the scope heading, and do not invoke @documentation for it. A
doc that cites a symbol the fix moved, renamed or removed is in the scope: fix it.finding
row (<deferral_ledger> in the skill). When the prompt or the system says that no
user can answer, fix every finding and defer none. An R5 proposal about the shape of new
code is not such a finding: report it, and write no decision. In that run, fix a finding that
the skeptic REFUTED with the skeptic's cheaper alternative.No documentation phase. Quickfix does not run the skill's @documentation step.
Fix a doc only when it cites a symbol that the fix moved, renamed or removed. Never
build the documentation network here: that is /wire-repo-brain.
Phase 5 — SHIP: tests and lint green and the tree dirty → commit, then the ship
summary with the hash, the scope line, the lint-fixer's FIXED: / ESCALATED:
tallies and — when @refactoring ran — its Stop check block verbatim, six labelled
lines; without the block the refactoring did not finish and the summary is not final.
Call ldd-ledger.sh show one time, when you write the summary, also when no commit
occurs (<deferral_ledger> in the skill). The summary puts its parts in this order: the hash, the scope line, the
tallies, the Outside the scope heading, the show output, then the Stop check
block last. Write nothing after the block. Never write that all items are closed while
the ledger has rows.
Never write that all items are closed while the summary names an open item, such as
a pending lint escalation or a delta that is not clean. Put each item outside the
scope under one heading, Outside the scope. That heading also holds the BROADER
CONTEXT lines of the review and of the Stop check. Never call such an item open or
deferred. An in-scope finding that is not fixed is a ledger row. In a run where no
user can answer, a finding row is allowed only for a finding that a gate blocks.
The row names that gate.
Loop until:
✅ Tests pass | ✅ LINT STATUS: green over the scope | ✅ @pre-commit-review INCREMENTAL delta clean (or findings that the user said to defer, each one a ledger row)
Use this when code is already written and needs to pass quality gates: your branch before a PR, a reviewer's findings, one package you name. It goes straight to fixing what is in scope — no design or TDD implementation, and nothing outside the scope.
Files this command reads when invoked
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
8 commands in this plugin
/tsr-ldd-analyzeRun quality analysis only - tests + plain lint + hunter/skeptic review, combined report, no auto-fix/tsr-ldd-autopilotStart complete linter-driven autopilot workflow (Phases 1-5, incl. the autonomous PREPARE sub-phase 1.5)/tsr-ldd-preparePreparatory refactoring — reshape the code a planned change will touch, so the feature lands add-only/tsr-ldd-reviewAdvisory review of the code in scope before a commit (hunters + skeptic report; no tests, no lint, no auto-fix)/tsr-ldd-setupCompare the linter setup and the mutation testing tool with the LDD recommended setup, agree a tighter setup per rule, and edit only after you agree to the plan/tsr-ldd-statusShow current workflow status and progressnpx claudepluginhub weka/linter-driven-development --plugin ts-react-linter-driven-development