BennyBytes.net Instagram ↗

Git & workflow · A skill for Claude Code

smallest-change

Writes smallest-change working rules into AGENTS.md or CLAUDE.md, then checks computer use, git, GitHub, and CI.

version 1.0.0updated November 4, 20261 fileby Ben Pollock
SKILL.md
---
name: smallest-change
description: Set up a repo so coding agents make the smallest sufficient change. Use when the user says smallest change, minimal diff, stay in scope, stop refactoring, or asks for working rules in AGENTS.md or CLAUDE.md. Writes the rules into the agent's instruction file, checks that computer use is on, and checks for git, GitHub, and Actions CI.
metadata:
  category: git
  tags: [agents-md, codex, minimal-diff, computer-use, ci]
  version: 1.0.0
  updated: 2026-11-04
  summary: Writes smallest-change working rules into AGENTS.md or CLAUDE.md, then checks computer use, git, GitHub, and CI.
---

# smallest-change

Give a coding agent standing rules for a repo: change only what the task needs, verify
the result on screen, and let git and CI guard everything else. Written for Codex. It
works the same in Claude Code and any agent that reads an instruction file.

## Steps

1. **Find the instruction file** at the repo root. Codex and most agents read
   `AGENTS.md`. Claude Code reads `CLAUDE.md`. Use the one the current agent reads, and
   create it if it is missing.
2. **Add the rules below** under a `## Working rules` heading. Keep everything already
   in the file. If that heading exists, update it in place instead of adding a second
   copy.
3. **Check computer use.** See whether this session can view and control the screen. If
   it cannot, tell the user the exact steps to turn it on in the app and version they
   are running. If you are not sure of the steps, say so and point to the setting or
   the docs. Do not guess.
4. **Check git, GitHub, and CI.** Look for a git repo, a GitHub remote, and a workflow
   in `.github/workflows/`. Report what is missing and what to add. Do not create a
   remote or a workflow unless the user asks.

## The rules

```markdown
## Working rules

Make the smallest sufficient change to achieve the requested outcome.

Before editing, identify the cause and the changes needed to address it. Change only
what is necessary for that outcome. Avoid unrelated refactors, cleanup, redesigns, new
dependencies, or speculative improvements.

Preserve existing behavior outside the requested change. If a broader change is
genuinely necessary, explain why before proceeding.

Verify that the requested outcome works and check for regressions in the affected
behavior. Summarize what changed, why each change was necessary, and what you verified.

Use computer use to verify changes in the running app or browser whenever the outcome
is visible on screen. Tests alone are not enough for UI changes. If computer use is not
available in this session, say so and give the user the exact steps to turn it on
before continuing.

Protect code quality with git, GitHub, and GitHub Actions CI. Work on a branch, commit
in small steps, open a pull request, and confirm CI passes before calling the work
done. If the repo has no remote or no CI workflow, tell the user and recommend setting
them up.
```

## Output

Finish with a short report:

- Which file the rules went into, and whether it was created or updated.
- Whether computer use is on. If it is off, the steps to turn it on.
- Whether the repo has git, a GitHub remote, and an Actions workflow, and what to add
  for anything missing.
Download or Install

One line puts it in your skills folder. Then type /smallest-change in any Claude Code session.

Personal · all projects
$ mkdir -p ~/.claude/skills && curl -fsSL https://bennybytes.net/skills/smallest-change/smallest-change.tar.gz | tar -xz -C ~/.claude/skills
Project · this repo only
$ mkdir -p .claude/skills && curl -fsSL https://bennybytes.net/skills/smallest-change/smallest-change.tar.gz | tar -xz -C .claude/skills
Then
$ claude
> /smallest-change   # or just describe the task and Claude will reach for it