fix-code-paper-cut

Installation
SKILL.md

Fix Code Paper Cut

Use this skill to ship exactly one tiny code-quality improvement from discovery through draft PR. Prefer boring, obvious, locally provable fixes over clever refactors.

Workflow

  1. Prepare the repo.

    • Read AGENTS.md, doc/index.md, and any docs relevant to the area before behaviour changes.
    • Run git status -sb and preserve unrelated user work.
    • Inspect the existing patterns in the touched package or module before editing.
    • If the worktree is already on a feature branch, avoid switching branches unless the user asks.
  2. Find one candidate.

    • Search narrowly for obvious signals: duplicate local helper logic, repeated literals in the same module, misleading names, redundant conditions, stale comments, trivially dead local code, unnecessary wrappers, or small type cleanups.
    • Prefer candidates contained to one file or a few closely related files with existing tests or easy static verification.
    • Use rg, git grep, type errors, lint output, or quick source inspection. Do not run broad mechanical rewrites.
    • Do not select typo-only fixes in comments, docs, strings, identifiers, tests, or file names. Typos are out of scope unless they must change as part of the selected code-quality fix.
    • Once one candidate is safe and worthwhile, stop hunting and commit to that single issue.
    • If no clear candidate appears after a bounded pass, stop and report that no safe paper cut was found rather than forcing a noisy PR.
Installs
3
First Seen
Jun 12, 2026