← ClaudeAtlas

lean-tightenlisted

Use to tighten specified files (or a pasted draft) in the working tree — remove AI slop, verbose prose, brittle references, and low-value noise — editing in place and printing a diff, with no commits. Triggers on "tighten these files", "trim the slop from", "make this leaner", or "deslop this draft in place". For repo-wide commit-per-finding cleanup use the `slop-scan` skill; for branch commit cleanup use the `pr-deslop` skill.
tony/ai-workflow-plugins · ★ 2 · AI & Automation · score 59
Install: claude install-skill tony/ai-workflow-plugins
# this skill Tighten specified files in the working tree and print a diff. Never commits, never pushes, never requires a clean tree, never scans repo-wide. This is a slash command, not a model-invocable skill: it edits files, so it must be user-explicit. ## Difference from the `slop-scan` skill ### Use this skill when The slop is in files you are actively editing and you want a quick in-place tidy with a diff to review — no commit ceremony, dirty tree fine. ### Use the `slop-scan` skill when You want repo-wide coverage with one reviewable, revertable commit per finding, on a clean tree. ## `$ARGUMENTS` - `paths/globs` — files to tighten (via `git ls-files -- <glob>` when tracked, else literal paths). - `--stdin` — tighten a pasted draft read from stdin instead of files; print the tightened text and edit nothing. - `--gates` — after editing, run the project's discovered format/lint/typecheck once and report. Never commits. - `--diff-only` — show what would change without editing. If `$ARGUMENTS` is empty, ask which files via `ask-user-choice`. ## Steps 1. **Resolve targets.** Expand paths/globs, or read stdin with `--stdin`. Reject an empty target set with a clear message. 2. **Load the rubric and voice.** Read `references/lean-rubric.md`, then `./AGENTS.md` and `./CLAUDE.md` for the host's rubric and accepted voice. For `--gates`, take the format/lint/typecheck commands from a checks section in those files; if none is defined, skip gates. 3. *