judge-minimum-diff

judge-minimum-diff is a skill for Claude Code, Codex from PyModel/pythinker-cli. It costs 29 tokens per session (1,120 once invoked), scanned A, original, Apache-2.0.

A checklist for judging whether a code change is as small and simple as it can be. It considers removing unnecessary work, then using the standard library, platform features, existing dependencies, or a shorter implementation.

In plain words
What is it for?
Use it before or during review of a non-trivial code change to assess necessity, dependencies, framework features, and the amount of code added.
Why use it?
It helps prevent speculative features, extra dependencies, and over-engineered solutions. The checklist stops at the first simpler option that satisfies the requirement.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents.

Good fit Use it before or during review of a non-trivial code change to assess necessity, dependencies, framework features, and the amount of code added.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/pymodel/pythinker-cli/judge-minimum-diff
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add PyModel/pythinker-cli --skill judge-minimum-diff
Clone the repo
git clone --depth 1 https://github.com/PyModel/pythinker-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for judge-minimum-diff

README.md
[![agentmods](https://agentmods.dev/badge/skills/pymodel/pythinker-cli/judge-minimum-diff/github.svg)](https://agentmods.dev/skills/pymodel/pythinker-cli/judge-minimum-diff)
Your own site
<a href="https://agentmods.dev/skills/pymodel/pythinker-cli/judge-minimum-diff"><img src="https://agentmods.dev/badge/skills/pymodel/pythinker-cli/judge-minimum-diff/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for judge-minimum-diff

Your own site · 80×15
<a href="https://agentmods.dev/skills/pymodel/pythinker-cli/judge-minimum-diff"><img src="https://agentmods.dev/badge/skills/pymodel/pythinker-cli/judge-minimum-diff.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 29 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00029 $0.01120
Opus 5.5 $0.00012 $0.00448
Sonnet 5.5 $0.00006 $0.00224
Haiku 4.5 $0.00003 $0.00112

Measured 1mo ago against content hash c1f4ff1034a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

judge-minimum-diff scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/pythinker_code/skills/judge-minimum-diff/SKILL.md · 105 lines

How it starts

The opening of the file, as written. The whole thing — 105 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Judge Minimum-Diff Lens

Use when judging a code change, diff, or implementation report. This is the rubric dimension the Pythinker judge subagent applies to every non-trivial diff — the same ladder that lives in the base system prompt's §6 (Code Standards), surfaced here as an explicit rubric so the judge, an implementer doing pre-flight, or a reviewer running the over-engineering skill apply it uniformly.

The judge applies the full ladder. There is no mode switch on the judge (lite / full / ultra); the implementer is the role that would carry a mode toggle if one is ever introduced.

The ladder — walk it before writing code; stop at the first rung that holds

  1. Does this need to exist at all? A speculative need is skipped, said so in one line. YAGNI is the highest rung.
  2. Does the standard library do it? Use it.
  3. Does a native platform or framework feature cover it? A database constraint over an app-level check, a built-in form control over a picker library, the language's own construct over a hand-rolled one — use it.
  4. Does a dependency already in the manifest solve it? Use it; never add a new dependency for what a few lines cover.
  5. Can it be one line? Make it one line.
  6. Only then write the minimum code that works.

When two rungs both hold, take the higher one and move on. The ladder is a reflex, not a research project. None of this overrides the guards below: trust-boundary validation, error handling that prevents data loss, security, and accessibility stay in even at rung 5.

Minimum-diff rubric

A diff passes the minimum-diff check when all of these hold:

  • The change takes the smallest rung of the ladder above before adding new code.
  • There are no abstractions (no interface with one implementation, no factory for one product, no config layer for a value that never changes) that the brief did not ask for.
  • There are no new dependencies unless the brief asked for one; when one is added, a one-line justification names why an already-installed dependency or the standard library couldn't cover it.
  • There are no new config keys unless a consumer is named in the same diff (a value with no consumer is over-engineering).
  • There are no new files unless the brief asked for them; reuse the nearest neighbor's module.
  • There are no error paths for impossible scenarios; validate at boundaries, not deep in business logic.
  • There is no reformatting, renaming, or wrapping churn outside the changed lines. Formatting churn is scope creep.
  • Comments only where they earn their keep: non-obvious algorithms, deliberate simplifications whose ceiling matters, business rules, or genuine TODO: technical debt. No self-evident comments.

Read the full file on GitHub · 105 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 105 lines · 29 tokens per session scan A c1f4ff1034a8

Subscribe to this mod's changes

judge-minimum-diff is a skill published in the GitHub repository PyModel/pythinker-cli (21 stars, last pushed 3d ago), licensed Apache-2.0. It adds 29 tokens to every session and 1,120 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

code-guidelines-go

Go 1.24–1.27 coding guidelines for the dimetron/pi-go AI agent runtime. Use this skill whenever writing, reviewing, or refactoring ANY Go code in pi-go. This covers idiomatic style, error handling, concurrency, project layout, testing (table-driven, fuzz, benchmarks, synctest), new stdlib usage, golangci-lint v2…

dimetron/pi-go · 124 tokens

design-review

Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.

dimetron/pi-go · 30 tokens

vhs-e2e-gif

Record a test run, a TUI session, or any terminal command as a GIF with VHS and attach it to a GitHub PR as a release-hosted asset, never a repo commit. Use when asked to record an e2e run, demo a fix on a PR, attach a GIF or screen recording to a pull request, show a test passing visually, or produce a terminal…

dimetron/pi-go · 106 tokens

agents-md

Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects. Use this skill whenever the user asks to create, scaffold, bootstrap, update, or review an AGENTS.md (or agent-instructions, CLAUDE.md, repo guide for agents) file in a codebase. Also trigger when the user says "add AGENTS.md", "make this repo…

dimetron/pi-go · 138 tokens

crossreview

Run when the user invokes /crossreview (or /crossreview:setup to choose the reviewers) or asks for a cross-review, a quorum review or a second opinion from other agents or models: fan a code review (uncommitted work, a branch, a commit range, files, a plan or a document) out to several console code agents (Claude…

coddy-project/coddy-agent · 204 tokens

code-review-pi

Review code for quality, run linters, check test coverage, fix issues, and enforce gates. Save the final report to ./specs/issues/003-code-review-pi/PROMPT.md. Use before committing changes.

dimetron/pi-go · 50 tokens