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.
npx skills add tmj-90/gaffer --skill prepare-digest-deltagit clone --depth 1 https://github.com/tmj-90/gafferWrote 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.
[](https://agentmods.dev/skills/tmj-90/gaffer/prepare-digest-delta)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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
contentmust be the complete new text of the section, not a fragment or a changelog line — sending "Added a /health route" asstructureerases the rest of it. Send each section at most once: two entries that map to the same section (saystructureandarchitecture) 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
sectionsis empty. - If the ticket description has a
Feature-Id: <id>line, the merge advances that feature to shipped and ignores your feature note. Otherwise yourfeatureis added as shipped. - The merge uses the repo it merged into; your
repovalue is only a fallback. - The last well-formed row wins; a malformed row is ignored (only the freshness stamp lands).
Steps
- 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[]. - 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, sendsections: []— onboarding creates the first digest, and a partial write would be refused. Keep it tight — the digest is a map, not a history. - Name the feature (skip if the ticket ships no discrete capability or carries a
Feature-Id:line):name, a one-linesummary, and when knownscopeNodeandprovenance(e.g. the epic ref). - 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)orcredentials, and a'in the text breaks thenode -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. - Record ONE row with
record_ac_evidence:ticket_id= this ticket, NOac_id,evidence_type: "manual_note",summary= exactly the line from step 4:
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.
- 1mo ago Changed de0e1493635d
- 2mo ago Changed · +23 lines 07aefb1fb99e
- 2mo ago Changed · +7 lines 560a2d70b07e
- 3mo ago First seen · 61 lines · 116 tokens per session scan A 5ff0b5f3143f
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.
prepare-digest-delta compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prepare-digest-deltatmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 116 | Claude Code, Codex |
| bulwark-brainstormQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 50 | Claude Code |
| plan-creationQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 38 | Claude Code |
| anthropic-validatorQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 40 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 42 | Claude Code |
| test-auditQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 0 | Claude Code |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |