/linter-driven-development:ldd-prepare <what you're about to build> [files]from linter-driven-development
Prepares code for an upcoming feature by reshaping touch points so the change lands add-only. Runs Fowler-style preparatory refactoring with gate checks and a preparation log.
Ships in linter-driven-development. Installing the plugin adds it to Claude Code.
Run standalone preparatory refactoring (Fowler: "make the change easy, then make the easy change") for a change you're about to implement — without entering the full five-phase workflow.
⏱️ Estimated Duration: 2–10 minutes (zero findings is the common case and takes seconds)
Input: a description of the impending change ("add an SMS channel to alerts",
"extend the exporter with histogram support"), optionally scoped to files. No
description → ask for one; preparation without a change in hand is just cleanup and
belongs to /ldd-quickfix.
Steps (the gate definitions live in @linter-driven-development
<phase_1_5_prepare> — apply them from there, never from memory):
../rules/R*.md Falsifying questions)
scoped to the touch points.<phase_1_5_prepare>. No user questions — the gates
decide; deferred findings are reported, not asked about. Write each deferral at
gate 3 or gate 4 as a prep row, and read the exit code:bash ${CLAUDE_PLUGIN_ROOT}/scripts/ldd-ledger.sh add prep <<'ROW'
<the prep move> — <the gate that failed>
ROW
Skill(linter-driven-development:refactoring) in
<preparatory_mode>: characterization tests first on uncovered paths, full suite
green after every move, prep work in its own commit(s).bash ${CLAUDE_PLUGIN_ROOT}/scripts/ldd-ledger.sh show. When an add did not exit
0, list that row under Deferred (not in the ledger): with the error line.Use this before starting work on a known change. For fixing code that already fails
gates, use /ldd-quickfix; for a read-only assessment, /ldd-analyze.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub weka/linter-driven-development --plugin linter-driven-development8 commands in this plugin
/ldd-analyzeRun quality analysis only - tests + plain lint + hunter/skeptic review, combined report, no auto-fix/ldd-autopilotStart complete linter-driven autopilot workflow (Phases 1-5, incl. the autonomous PREPARE sub-phase 1.5)/ldd-quickfixFix what is in scope — the files you are working on — through the quality gates (tests + lint + review → fix → repeat) until green/ldd-reviewAdvisory review of the code in scope before a commit (hunters + skeptic report; no tests, no lint, no auto-fix)/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/ldd-statusShow current workflow status and progress