Subtraction pass on a change once its PR is open, before the review: structure, optionality, comments and text the change does not need. Triggers: 'subtract', '引き算', 'quick refactor', 'リファクタリング', 'refactor what we just did'. Forked Opus subagent at high effort.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Subtract?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aitit-inc-subtract)
---
name: subtract
description: "Subtraction pass on a change once its PR is open, before the review: structure, optionality, comments and text the change does not need. Triggers: 'subtract', '引き算', 'quick refactor', 'リファクタリング', 'refactor what we just did'. Forked Opus subagent at high effort."
context: fork
model: opus
effort: high
---
# Subtract
A pass over a change whose PR is open, before the review: take out what the change does not need. What the change does stays the same. An edit that would alter it, or that needs a migration or new screenshots to verify, is reported with its alternative, not applied.
## Scope
- Baseline: uncommitted changes (staged, unstaged, untracked). None → `git diff develop...HEAD`.
- `$ARGUMENTS`: file names narrow the baseline; a commit range or PR number replaces it.
- Read the PR body and its issue first: what the change is for decides what it needs.
- Read each hunk with enough context to know what it is for.
## Pass
Edit only what the change introduced and the existing code it copies or routes around. The standard is `CLAUDE.md` (Design Principles, Coding Rules) and the rules in `.claude/rules/` that cover the changed files: read them, then take out what they say the change should not have, in this order:
1. **Structure**: every table, column, enum value, index, migration, stored or API shape, type, module and code path the change adds. What changes for different reasons stays apart, however alike it looks: a merge that has to branch on which caller it serves is two things forced into one. Fewer lines is a result, not the goal. A new main path is right when nothing existing fits.
2. **Optionality**: every null, undefined or optional field the change adds.
3. **Guards** that patch one case.
4. **Comments**: one that stays is as short as it can be.
5. **Text a model reads**.
## Verify and report
- Run the area's checks from CLAUDE.md (backend: `npm run typecheck`, `npm test`; frontend: `npm run check`). Changed SQL predicate → its `e2e/regression-*.sh` if the local stack is up.
- Do not commit, push, or merge.
- Report: each structure the change adds, removed or kept and why; what else was removed or reshaped and why; what was left as out of scope; check output verbatim on failure; last, one line for the PR body: what this pass removed, or that it removed nothing.
## Upkeep
If about ten PRs in a row remove nothing, shrink this pass.