/pauls-skills:paper-cutsfrom pauls-skills
Fix a batch of small UI/UX "paper cut" issues from user-annotated screenshots (red markings with numbers), using subagents to preserve the orchestrator's context window, then commit and push directly to the user-specified branch with no PR. Optimized for minimal diffs and low cost — subagents run only scoped lint and scoped tests; the orchestrator owns full verification and drives remote CI to green. Requires Claude Code (subagents, git, AskUserQuestion, gh).
Ships in pauls-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Batch-fix small annotated issues and push directly to the user-specified target branch, skipping the PR flow.
You are the orchestrator — the main session agent. You delegate implementation to subagents to preserve your own context window, then personally verify, commit, push, and drive remote CI to green.
Two constraints govern every decision in this workflow:
| Actor | Owns | Model |
|---|---|---|
| Orchestrator (main session agent) | Intake, branch confirmation, test-command detection, batching, dispatch, diff review, full local gates, commit, push, CI-to-green | session model |
| Recon subagent, one only) | Mapping cut numbers → file paths and line ranges. Nothing else. | Sonnet, low effort |
| Implementation subagents | One scoped fix batch each. Scoped lint + scoped tests. Report back. | Sonnet (medium or high) or Opus (medium or high) |
Escalations from a subagent go to the orchestrator, not the user. The orchestrator decides whether to fix it, re-dispatch, or surface it to the user.
Examine every screenshot carefully. Build a numbered list: #N — location/component — what appears to be wrong — proposed fix.
Confirm the target branch. If the user has not explicitly specified which branch to push to, stop and ask with AskUserQuestion before doing anything else. Never assume main or the current branch.
Check out the target branch, then git status and git pull for a clean, up-to-date tree.
Detect the test runner exactly once. Read package.json (or equivalent) and build a literal scoped-test command template that every subagent will be handed verbatim:
| Runner | Scoped command template |
|---|---|
| Vitest | npx vitest related --run <files> |
| Jest | npx jest --findRelatedTests <files> |
| Other / none | Fall back: colocated test file → same-directory tests → NO_SCOPED_TESTS |
Also build the scoped lint command, e.g. npx eslint <files>.
Subagents never sniff the toolchain. If you don't hand them a command, they don't run one.
If the annotations don't already make file locations obvious, dispatch a single subagent on the fast model whose only job is mapping cuts to locations.
Its brief: for each cut number, return the file path(s), the relevant symbol or line range, and nothing else. No code. No diffs. No analysis. No fixes.
It returns a compact table:
#1 src/components/Header.tsx L44-52 .nav-links gap
#2 src/components/Header.tsx L61 "Sign in" label
#3 src/features/modal/Modal.tsx L120-134 close handler
You distribute these paths into implementation briefs. You do not read the source files yourself — that is the entire point of recon, and reading them defeats it.
For any cut you don't fully understand — ambiguous annotation, unclear desired behavior, multiple plausible interpretations — use AskUserQuestion before dispatching. Batch related questions together. Never guess on ambiguous items.
Batching is the largest cost lever in this workflow. Subagent overhead is near-fixed regardless of task size.
Mandatory: two cuts touching the same file or the same component always share one subagent. This is a correctness constraint, not just an optimization — splitting them forces serialization or produces conflicting edits.
Then:
Every implementation brief is text-only. Attach a cropped image region only when the fix requires visual judgment no text description survives (alignment, relative spacing, exact shade). This is a minority of cuts.
Use this template:
PAPER CUT #N
FILE(S): <exact paths from recon>
LOCATION: <symbol / line range>
CURRENT: <what it does now>
TARGET: <what it must do>
TEST COMMAND: <literal string from intake, or NO_SCOPED_TESTS>
LINT COMMAND: <literal string from intake>
SCOPE RULES — these are hard limits:
- Make the SMALLEST edit that resolves the problem. Nothing else.
- PROHIBITED: new dependencies, new source files, renames,
reformatting untouched lines, new abstractions, drive-by
improvements, "while I was in here" changes.
- Start at the paths above. If the fix is not there, STOP and
report — do NOT go exploring the repo.
- TRIPWIRE: if the fix will exceed ~20 changed source lines or
touch 3+ files, STOP WITHOUT IMPLEMENTING and report back.
Escalating is a success, not a failure.
TESTS:
- Run ONLY the test command above. NEVER run the full suite.
- Zero matching tests is a valid, expected outcome — report it
and move on. Do not hunt for something to run.
- Do NOT write new tests, EXCEPT: if this cut is a logic or
behavior bug, you may add ONE colocated regression test file.
Cosmetic cuts get no tests.
DO NOT RUN: tsc / typecheck, full build, full test suite, dev server.
These are project-wide, slow, and will surface other agents'
in-flight edits. The orchestrator owns them.
REPORT BACK:
- Files changed + line counts
- What was done
- Scoped lint result
- Scoped test result (or NO_SCOPED_TESTS)
- Any concerns, discoveries, or tripwire escalation
Review each subagent's diff yourself (git diff). Verify each fix matches its annotation and nothing unrelated changed.
Reject and re-dispatch any diff that violates the scope rules.
Handle every tripwire escalation: fix it yourself if small, re-dispatch with a corrected brief, or surface it to the user if it's genuinely structural.
Resolve conflicts or overlapping edits between subagents.
Run the fast local gates — the first point in the workflow where project-wide checks are safe:
tsc --noEmit or equivalent)These catch the large majority of breakage in seconds. Do not run the full test suite locally — that is remote CI's job.
Fix paper cuts #1–#6: header spacing, button label, modal close, ...
git push directly to the confirmed target branch — no PR. Explicitly authorized by this workflow once the user has confirmed the branch.The job is not done at push. It is done when the remote run is green.
gh run watch (or gh run list → gh run view --log-failed).tsc, full builds, and full test suites belong to the orchestrator alone. Inside a parallel subagent they are slow and wrong — they observe other agents' half-finished edits.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub ops-pivers/claude-skills --plugin pauls-skills41 skills in this plugin
/aim-higherTake a task, research how top practitioners in its field work, push it to go deeper across altitude, depth, range and verification, grill the user until the plan is settled, then do the work and prove it worked with real measurements./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./Other plugins' skills for the same job