/nlsmdn:review-tidy [targets...] [--staged | --unpushed | --changed | --all] [--fix | --report]from nlsmdn
Coordinate comment cleanup through review-comments and fix the mechanical loose ends a change leaves behind — docs, examples and config that name a symbol, flag or path the change renamed or removed; imports, private helpers and files it orphaned; test names that no longer match; and the project's own formatter and lint autofixes. Use before a review or PR so reviewers see tidy code. code-review runs it as a preflight.
Ships in nlsmdn. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Coordinate comment cleanup through review-comments, then fix the mechanical loose ends a change leaves behind. Mechanical fixes must have exactly one correct answer, deterministic or checkable by grep; other mechanical findings are reported for a decision. Comment removals and rewrites follow review-comments safety rules.
--staged - git staged files--unpushed - files changed across all unpushed commits--changed - git unstaged changes--all - entire codebase--fix - apply safe comment cleanup and every mechanical fix without prompting--report - report what would be fixed without prompting or editing any file; cannot combine with --fixtargets - one or more files or directories; overrides scope flags--staged --changed combined; when both are empty, --unpushed/review-tidy # staged + changed, else unpushed (default)
/review-tidy --staged --fix # fix what the staged change left behind
/review-tidy src/auth # a file or directory
A mechanical fix belongs here only if all of these hold:
Everything else is a report item, never an edit. Rewriting prose about behaviour that changed is a report item. So is deleting something that looks unused but could be reached by name at runtime.
get, data, handler), you cannot rule out a reference: report it.review-comments. Invoke it once as part of this workflow; keep its rubric there. The mechanical checks below cover docs, examples, config, help text and test names.*.generated.*, build output, vendored code). If one is stale, report that it needs regenerating.--staged edits land unstaged. Say so in the summary and never run git add.Parse flags and targets as review-comments does: the default is staged plus unstaged changes, falling back to unpushed commits when both are empty, a target overrides scope flags, and --unpushed uses the range "$(git rev-list HEAD --not --remotes | tail -1)^"..HEAD. If nothing is unpushed, or there is no upstream, stop and ask the user for another scope.
Capture the resolved file list and original diff before cleanup; retain both throughout this workflow even when edits change git status. If the caller supplied a resolved file list and diff, reuse them. A supplied file list does not discard the caller's diff-based scope.
Invoke review-comments exactly once on the existing source files in the resolved list, passing --fix or --report only when this invocation has that flag. Skip it when there are no source files, but continue the mechanical checks. Use its comment rubric and preserve its removal, rewrite and deferred counts for the combined report.
When a Skill tool is unavailable, read review-comments/SKILL.md and apply it in this session; a skill name is not a subagent name. Without --fix or --report, follow its interactive choices for comment-only edits; leave executable-code refactors for a separate decision outside this cleanup.
Complete comment cleanup before mechanical edits. Both can touch the same files, so do not run their writers concurrently. Defer formatting and lint autofix to Check 4 after all approved cleanup edits. review-comments remains independently callable; do not invoke code-review from this skill.
Read the original diff captured for the resolved scope (git diff --cached, git diff, or the unpushed range). Collect every name the change removed or renamed:
A rename is an old name paired with its new name in the same diff. Anything else that disappeared is a removal.
With --all or a standalone target without a caller-supplied diff, there is no diff. Skip to the orphan, path and formatter checks: run Check 2 over the scoped files, check that every repo path named in a doc file exists, and run Check 4.
Check 1: Stale references. For each removed or renamed name, search the whole repo outside the changed code: READMEs, docs/, AGENTS.md and CLAUDE.md, examples, config templates, CLI help and usage text, and skill or prompt files.
Check 2: Orphans. For each import, function, constant, type or file whose last use the diff removed, search for remaining references, including string literals.
Check 3: Test names. A test name or description that names a symbol the diff renamed: update the name. One that describes behaviour the change altered: report it.
Check 4: Formatter and lint autofix. Find the project's own configured tools in package.json scripts, lefthook.yml, .pre-commit-config.yaml, pyproject.toml, Makefile/justfile, or the language's standard formatter when its config is present (rustfmt.toml, .swift-format, .rumdl.toml). Identify the commands now; execute them once in Step 5 on the scoped files only, after every other edit.
--report, run only a tool's non-writing check mode (prettier --check, ruff format --check, cargo fmt --check) and report the files it would change. When a tool has no such mode, name it and say it was not run.## Tidy: {scope}
### Comments
- {comments removed} removed · {comments rewritten} rewritten
- {deferred comment findings, if any}
### Fixed
- {file}:{line} — {what changed} ({check})
### Needs a decision
- {file}:{line} — {what is stale and why it is not mechanical}
### Formatter
- {tool}: {files changed} · {lint errors left, or "clean"}
Omit empty sections. If nothing was found, say Nothing to tidy.
With --fix: apply every mechanical item under Fixed without prompting, then run Check 4 exactly once, after comment cleanup and mechanical edits. Leave "Needs a decision" items unchanged.
With --report: apply nothing. Run Check 4's check-mode commands once, present the items under Fixed as what would be fixed, and stop.
Without --fix or --report: if anything is fixable, ask whether to apply the fixes (all, or skip). Apply exactly what the user picks, then run Check 4 once after all approved edits. Do not repeat comment cleanup.
The staged diff renames --dry to --dry-run and deletes formatLegacyDate, the only caller of padYear.
README.md:41 shows tool sync --dry → replaced with --dry-run (Check 1).docs/cli.md:12 says "--dry skips writes and prints a diff"; the new flag no longer prints a diff → reported (behaviour changed).padYear is unexported with no references left → deleted (Check 2).prettier --write on the four scoped files reformats one line → reported under Formatter.What SKILL.md sets; muted values are Claude Code's defaults
mediumOther plugins' skills for the same job
65 skills in this plugin
/blind-spotsSurface consequential decisions a plan, design, or research brief left silently assumed, by interviewing the user in dependency order. Use when the user says "blind spots", "grill me", "stress-test this plan", "poke holes in this", "what am I missing", "interrogate this design", "what haven't I decided", or needs a loose idea or research brief clarified before work begins. Do NOT use for a clear factual lookup, to explain a previous reply in more detail (use `huh`), to generate ideas when it is unclear what to build (use `ideation`), or to review an already-written plan with agents (use `review-plan`)./brainstormWork out how to solve a problem the user can already name — interview them with `blind-spots` to understand it, generate structurally different approaches, validate each with an independent critic, then present the survivors with trade-offs and a recommendation. Use when the user says "brainstorm", "brainstorm approaches", "how should we solve/approach/tackle X", "what are our options", "compare approaches", "think this through with me", or wants solutions weighed before committing. Works on any topic, with codebase recon when a repo is involved; `--debate` adds external advisors for high-stakes calls. Do NOT use when stuck on what to build or what the problem is (use `ideation`), to probe an already-chosen plan (use `blind-spots`), or to pick a library or service (use `evaluate-tech`)./check-agent-logsSearch past Claude Code, Codex, Cursor CLI, Devin CLI, Droid, and Pi session logs to recover context from earlier work across the current project and sibling checkouts. Use when a bug, topic, or decision was handled in a previous session but its agent or checkout is unknown; when the user says "we fixed/discussed this before", "find the session where", "recover prior context", "check agent logs", "check Claude projects", "search past sessions/transcripts", or "which checkout was that in". Do not use for aggregate failure-pattern analysis; use review-logs for that./codebase-reviewReview a whole codebase aspect by aspect, with aspects fitted to the project type (mobile, desktop, web frontend, static site, CLI, backend, library) — docs truth-check, architecture, tests, security, the type's foundations, feature deep dives, consistency, roadmap — writing a doc per aspect and a verified findings ledger that doubles as the TODO. Plans first (recon, `blind-spots`, `review-plan`, plan approval), then walks the plan with the user aspect by aspect — agents review and verify in the background, the user confirms rulings and decides judgment calls one at a time. `--auto` runs independently after the gate, with decision waves at the end. `--fix` hands settled findings through `crew` to worker sessions, integrated locally, never pushed. Use for "codebase review", "review the whole codebase", "onboard me to this repo", "deep dive this app", "audit the code base", "review and fix everything". Not for a diff or PR (code-review), a CLI release pass (release-review), or building a feature (longshot)./codebase-review-typescriptSupply TypeScript and JavaScript structural evidence to codebase-review using dependency-cruiser, ESLint complexity, and Git churn. Use for whole-codebase import-cycle and complexity-hotspot investigation, or when discovered as a project-local codebase-review extension. Does not replace review-typescript's type-design checks or review a diff./code-guideCoach the user through writing a feature themselves, one small step at a time, the way an experienced developer would build it. Each step comes with the code to type and a checkpoint that proves it works, such as logging the endpoint's response shape before typing it, or rendering a hardcoded value before wiring the real one. After each step the agent reads the user's diff and verifies it. The happy path comes first and edge cases come last. Use when the user says "code-guide", "guide me to write", "help me write this myself", "I want to code it myself", "coach me through implementing", "walk me through building this feature", "don't write it for me", or wants to learn by typing the code. Do NOT use for console or dashboard setup (use guide), explaining existing code (use code-tour), or when the agent should implement the change itself (use plan or longshot).npx claudepluginhub nielsmadan/skills --plugin nlsmdn