diff-minimizer

diff-minimizer is a skill for Codex from Eliyce/paqad-ai. It costs 28 tokens per session (992 once invoked), scanned A, original, MIT.

A planning review that checks each proposed implementation step against the acceptance criteria—the conditions that define when the work is complete.

In plain words
What is it for?
Use it to classify planned steps as required, setup, scaffolding, or over-building before writing code.
Why use it?
It exposes scaffolding and unnecessary work before coding begins, helping keep the implementation within the agreed scope.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to classify planned steps as required, setup, scaffolding, or over-building before writing code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/eliyce/paqad-ai/diff-minimizer
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 Eliyce/paqad-ai --skill diff-minimizer
Clone the repo
git clone --depth 1 https://github.com/Eliyce/paqad-ai

Made for: 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 diff-minimizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliyce/paqad-ai/diff-minimizer.svg)](https://agentmods.dev/skills/eliyce/paqad-ai/diff-minimizer)
Your own site
<a href="https://agentmods.dev/skills/eliyce/paqad-ai/diff-minimizer"><img src="https://agentmods.dev/badge/skills/eliyce/paqad-ai/diff-minimizer.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 992 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.00028 $0.00992
Opus 5 $0.00014 $0.00496
Sonnet 5 $0.00006 $0.00198
Haiku 4.5 $0.00003 $0.00099

Measured 8d ago against content hash 7c2083f360f3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

diff-minimizer 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/extract-ac-ids.sh, scripts/lint-output.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

runtime/base/skills/diff-minimizer/SKILL.md · 84 lines

How it starts

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

What It Does

Evaluates a proposed implementation outline step-by-step against the acceptance criteria. Classifies each step as ac-satisfying, necessary-setup, scaffolding, or over-build and recommends which scaffolding and over-build steps to drop before any code is written.

The goal is to move scope-creep detection upstream from post-implementation review into the planning phase.

Use This When

Use this between acceptance-criteria-gen and the Story Designer's solution write-up, in the graduated and full lanes. Skip in the fast lane — the overhead is not justified for low-complexity work.

Inputs

  • Read the acceptance criteria artifact first; identifiers must be AC-{fr}.{n} so each step's mapped AC is unambiguous.
  • Read the proposed solution outline (steps, files to modify, abstractions introduced).
  • Read canonical module docs at the module paths listed in module_doc_paths. Patterns declared there are project conventions and cannot be classified as over-build.
  • Read references/classification-guide.md before assigning any classification so the rubric stays consistent.

Procedure

  1. Run scripts/extract-ac-ids.sh <ac-file> to load the canonical AC id set; cross-check every cited id against this set.
  2. Parse the proposed solution into discrete steps (one new file, one function, or one significant edit each).
  3. Classify each step using assets/classifications.txt (ac-satisfying, necessary-setup, scaffolding, over-build).
  4. For scaffolding / over-build steps, propose a leaner alternative or deletion.
  5. List ACs with no satisfying step under ### Open Questions (or write the literal Open Questions: none).
  6. Format per assets/output.template.md; validate with scripts/lint-output.sh.

Output Contract

  • Return a heading named Diff Minimization.
  • Provide a Step Map table with columns #, Step, Classification, Mapped AC, Action where:
    • # is the 1-based step index from the proposed solution.
    • Classification is exactly one of ac-satisfying, necessary-setup, scaffolding, over-build.
    • Mapped AC is the AC id when the step is ac-satisfying, the dependent step number when necessary-setup, and otherwise.
    • Action is keep for ac-satisfying and necessary-setup, or drop — <one-line reason> for scaffolding and over-build.
  • Provide a Recommended Drops section listing dropped step numbers with a one-line reason each.
  • Provide a Necessary Setup (justified) section listing setup steps and the dependent step numbers.
  • End with Open Questions listing AC ids with no satisfying step, or Open Questions: none exactly.

Read the full file on GitHub · 84 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 84 lines · 28 tokens per session scan A 7c2083f360f3

Subscribe to this mod's changes

diff-minimizer is a skill published in the GitHub repository Eliyce/paqad-ai (8 stars, last pushed today), licensed MIT. It adds 28 tokens to every session and 992 once invoked, about $0.0001 per session on Opus 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-31.