/ts-react-linter-driven-development:tsr-ldd-analyze [file_pattern | --all]from ts-react-linter-driven-development
Runs a read-only quality analysis combining tests, report-only linting, and a hunter/skeptic design review into a single report without modifying code.
Ships in ts-react-linter-driven-development. Installing the plugin adds it to Claude Code.
Run comprehensive quality analysis: tests, a report-only linter pass, and the hunter/skeptic design review — combined into one report, with NO changes to your code.
🔍 READ-ONLY COMMAND This command performs analysis only and makes NO changes to your code. For auto-fix capability, use
/tsr-ldd-quickfixinstead.
Execute these steps:
Search project documentation to find test and lint commands:
Read project files in order of preference:
CLAUDE.md (project-specific instructions)README.md (project documentation)package.json scripts (typecheck typecheck/type-check/tsc; lint
lintcheck/lint:check/lint; format formatcheck/format:check; tests
test:run/test/vitest/jest; combined check/checkall) and the lockfile for
the package manager (yarn.lock → yarn, pnpm-lock.yaml → pnpm,
package-lock.json → npm, bun.lock or the older bun.lockb → bun)Makefile (look for test: and lint: targets)Taskfile.yaml (look for test: and lint: tasks)eslint.config.*/.eslintrc*, tsconfig.json (references → tsc -b, else
tsc --noEmit), vitest.config.*/jest.config.*, .stylelintrc*,
.github/workflows/* (which checkers CI runs)Extract commands:
<pm> run test:run, <pm> test, npx vitest run, make test, task test--fix
flag and run the checkers in report mode: <pm> run lintcheck where the script
exists, else npx tsc --noEmit && npx eslint . && npx prettier --check ., plus
npx stylelint '**/*.scss' where the repository configures it (or the project's
lint command with --fix removed and prettier --write turned into --check).Fallback to defaults if not found (the npm spelling; under another package
manager replace npx with its executor — yarn, pnpm exec, bunx — because
npx cannot resolve a Plug'n'Play repository's binaries):
npx vitest runnpx tsc --noEmit && npx eslint . (no --fix); npx prettier --check . only when a
Prettier config or dependency exists!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 — the first rung that applies, and only that rung:
$ARGUMENTS). A file pattern (./src/pages/Devices/*.tsx,
./src/pages/Devices/) analyzes those files — validate they exist with glob/ls. --all, or
an explicit request to audit the whole repository, analyzes every .ts and .tsx file
outside node_modules/, dist/, build/, .next/, coverage/ and generated *.d.ts
and *.generated.ts files. The whole repository is never analyzed without being asked.HEAD, staged, unstaged and untracked:
{ git diff --name-only --diff-filter=ACMR HEAD; git ls-files --others --exclude-standard; } | grep -E '\.tsx?$' | sort -u
git diff --name-only --diff-filter=ACMR "$(git merge-base HEAD origin/main 2>/dev/null || git merge-base HEAD main 2>/dev/null || git merge-base HEAD master)"..HEAD | grep -E '\.tsx?$'
--all form, and stop — no gates run
over an empty scope, and the scope is never widened silently.Name the rung in the report's scope line.
Bash([discovered test command])Bash([discovered lint command, no --fix]) — surfaces
what needs refactoring without changing anything. (The ts-react-linter-driven-development:lint-fixer agent, which
auto-fixes, is intentionally NOT used here — this command never edits.)Skill(ts-react-linter-driven-development:pre-commit-review)
in FULL mode over the file scope. It runs the plugin's detection pass (scripts/ldd-scope.sh
then scripts/ldd-detect.sh) over the diff against rules R1–R12 — a diff in several
languages split by file, each group reviewed by the plugin installed for its language —
spawns one parallel ts-react-linter-driven-development:rule-hunter per rule family with hits (at most four), runs the
ts-react-linter-driven-development:overabstraction-skeptic over every type/package-extraction proposal, and returns
evidence-backed findings. It reports — it never edits.Merge the three gates into one report:
Each finding carries evidence (file:line + the falsifying-question answer or command
output) and cites the owning rule's Fix pattern (rules/R*.md) for HOW to fix — this
command does not apply the fix.
# Analyze the working tree's changes, or the current branch when the tree is clean (default)
/tsr-ldd-analyze
# Analyze specific package
/tsr-ldd-analyze ./pkg/parser/
# Analyze specific file
/tsr-ldd-analyze ./pkg/parser/parser.ts
# Audit the whole repository — only ever on request
/tsr-ldd-analyze --all
| Command | Purpose | Auto-Fix | Spawns agents |
|---|---|---|---|
/tsr-ldd-autopilot | Complete workflow (Phases 1–5) | ✅ Yes | lint-fixer, rule-hunter, overabstraction-skeptic |
/tsr-ldd-quickfix | Quality-gates loop until green | ✅ Yes | lint-fixer, rule-hunter, overabstraction-skeptic |
/tsr-ldd-review | Commit-readiness check | ❌ No | rule-hunter, overabstraction-skeptic (report-only) |
/tsr-ldd-analyze | Tests + lint + review, combined report | ❌ No | rule-hunter, overabstraction-skeptic (report-only) |
/tsr-ldd-status | Show workflow status | N/A | none |
/tsr-ldd-quickfix instead./tsr-ldd-review instead./tsr-ldd-autopilot.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-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-quickfixFix what is in scope — the files you are working on — through the quality gates (tests + lint + review → fix → repeat) until green/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