Skip to content
Back to skills

Subtract

ASecurity

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.

  • 4 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 14, 2026
ai-agentsgosqlgitapifrontendbackend

Works with

  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add aitit-inc/leadace --skill subtract --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Subtract?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Subtract
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aitit-inc-subtract/badge)](https://www.skillsdirectory.com/skills/aitit-inc-subtract)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.