prepare-digest-delta

prepare-digest-delta is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 116 tokens per session (1,452 once invoked), scanned A, original, Apache-2.0.

A recording step used after a ticket is implemented and tested to prepare updates for a repository digest and feature note. The updates are stored for a later merge step rather than applied immediately.

In plain words
What is it for?
Use it to write short updates for digest sections affected by a change and record the feature that the ticket delivers.
Why use it?
It avoids asking another coding agent to rediscover changes during merging and keeps rejected ticket updates out of the shared digest.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to write short updates for digest sections affected by a change and record the feature that the ticket delivers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/prepare-digest-delta
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 tmj-90/gaffer --skill prepare-digest-delta
Clone the repo
git clone --depth 1 https://github.com/tmj-90/gaffer

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 prepare-digest-delta

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/prepare-digest-delta/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/prepare-digest-delta)
Your own site
<a href="https://agentmods.dev/skills/tmj-90/gaffer/prepare-digest-delta"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/prepare-digest-delta/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 prepare-digest-delta

Your own site · 80×15
<a href="https://agentmods.dev/skills/tmj-90/gaffer/prepare-digest-delta"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/prepare-digest-delta.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 116 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,452 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.00116 $0.01452
Opus 5.5 $0.00046 $0.00581
Sonnet 5.5 $0.00023 $0.00290
Haiku 4.5 $0.00012 $0.00145

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

Security

Grade A, and why

prepare-digest-delta 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.

runner/skills/prepare-digest-delta/SKILL.md · 91 lines

How it starts

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

Prepare the Repo Digest delta (apply-at-merge)

You just implemented and evidenced a ticket, so you are the cheapest place to write down how the Repo Digest should read after it and which feature it ships. This skill records that as ONE evidence row. It is inert: the merge step reads it after review approval and applies it without an agent call. A rejected ticket never merges, so its delta never touches the digest.

How the merge applies it (why the shape matters)

  • The digest has exactly four sections: overview (what the repo is, key flows), structure (layout, modules, surface area), conventions (rules, patterns, gotchas), stack (languages, dependencies, tooling). Obvious synonyms are mapped (architecture → structure, gotchas → conventions, dependencies → stack); anything else is dropped.
  • Each section you send REPLACES that whole section. Sections you omit are kept. So content must be the complete new text of the section, not a fragment or a changelog line — sending "Added a /health route" as structure erases the rest of it. Send each section at most once: two entries that map to the same section (say structure and architecture) are applied in order and the second replaces the first.
  • A section write only merges into an EXISTING digest. With no digest yet, the memory CLI refuses any write that does not carry all four sections.
  • The merge stamps freshness even when sections is empty.
  • If the ticket description has a Feature-Id: <id> line, the merge advances that feature to shipped and ignores your feature note. Otherwise your feature is added as shipped.
  • The merge uses the repo it merged into; your repo value is only a fallback.
  • The last well-formed row wins; a malformed row is ignored (only the freshness stamp lands).

Steps

  1. Decide which sections your change made stale. Most tickets change zero or one. A new module, route, or command → structure; a new rule or pattern the next agent must follow → conventions; a new dependency or tool → stack; a new user-facing capability → overview. Pure internal fixes usually change none: send [].
  2. For each stale section, rewrite it in full. Call get_repo_digest (Memory MCP) for this repo and take the current text of that section. Edit it so it is true after your change: replace stale sentences, add the new fact where it belongs, keep what is still true. If there is no digest yet, send sections: [] — onboarding creates the first digest, and a partial write would be refused. Keep it tight — the digest is a map, not a history.
  3. Name the feature (skip if the ticket ships no discrete capability or carries a Feature-Id: line): name, a one-line summary, and when known scopeNode and provenance (e.g. the epic ref).
  4. Build the payload with a JSON serializer, not by hand, so quotes and newlines are escaped correctly, e.g. node -e 'console.log("GAFFER_DIGEST_DELTA_V1 " + JSON.stringify({repo:"app",sections:[{section:"structure",content:"…"}],feature:{name:"Password reset",summary:"…"}}))'. The safety hook blocks any Bash command that mentions .env, process.env, secret(s) or credentials, and a ' in the text breaks the node -e '…' quoting; in either case write the JSON line by hand (escape " as \" and newlines as \n, keep it on one line). The whole line must be under 5,000 characters (the evidence summary limit). Trim prose rather than splitting it into multiple rows.
  5. Record ONE row with record_ac_evidence: ticket_id = this ticket, NO ac_id, evidence_type: "manual_note", summary = exactly the line from step 4:

Read the full file on GitHub · 91 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 Changed de0e1493635d
  2. 2mo ago Changed · +23 lines 07aefb1fb99e
  3. 2mo ago Changed · +7 lines 560a2d70b07e
  4. 3mo ago First seen · 61 lines · 116 tokens per session scan A 5ff0b5f3143f

Subscribe to this mod's changes

prepare-digest-delta is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 116 tokens to every session and 1,452 once invoked, about $0.0005 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-31.

Related

prepare-digest-delta compared with skills from other repositories

prepare-digest-delta next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prepare-digest-deltatmj-90/gafferSkill14d agoApache-2.0A116Claude Code, Codex
bulwark-brainstormQBall-Inc/the-bulwarkSkill9yesterdayMITA50Claude Code
plan-creationQBall-Inc/the-bulwarkSkill9yesterdayMITA38Claude Code
anthropic-validatorQBall-Inc/the-bulwarkSkill9yesterdayMITA40Claude Code
create-subagentQBall-Inc/the-bulwarkSkill9yesterdayMITA42Claude Code
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code