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 engineering-craftgit 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/engineering-craft)<a href="https://agentmods.dev/skills/tmj-90/gaffer/engineering-craft"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/engineering-craft/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/engineering-craft"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/engineering-craft.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.00120 | $0.01357 |
| Opus 5.5 | $0.00048 | $0.00543 |
| Sonnet 5.5 | $0.00024 | $0.00271 |
| Haiku 4.5 | $0.00012 | $0.00136 |
Grade A, and why
engineering-craft 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 2mo 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 — 86 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Engineering craft — code the maintainers would approve
The counterpart to minimalism. Minimalism asks "is this the least code that works?";
craft asks "is the code that remains correct, honest and safe to change?" The target is
the smallest change a careful reviewer approves without asking for a redo. This is a
lens: apply it while you implement and confirm it in the self-review skill.
Craft never licenses extra code. When craft and minimalism seem to disagree, rule 1 settles structure (minimalism wins) and rules 3–5 settle guarantees (craft wins).
The craft bar (walk it against your diff)
- Reuse only real repetition. Extract when the same logic already exists in two or three places you can point at, not for a second caller that does not exist yet. No base class, generic, plugin point or config system "for later".
- Boundaries at the edges. Keep transport (HTTP/CLI), domain logic and persistence
separable; no SQL or
fetchin the middle of a business rule. Use the seams the repo already has; do not invent a new layering. - No silent failures. No empty
catch, swallowed promise rejection, ignored return code or|| truethat hides a real error. Handle the error meaningfully or propagate it with context; user-facing paths get a clear message, server paths log the detail. Never catch an error to make a test pass. - Validate untrusted input at the boundary — request bodies, CLI args, file contents, external API responses — with the repo's existing validator (zod, pydantic, bean validation) where there is one. Fail fast with a message that names the field.
- Shared state is written safely. This is the defect class that twice passed every
review in this factory, so check it on any code that writes files, rows, caches,
counters or locks:
- concurrent writers never share a temp name — use a unique name (
mkstemp,crypto.randomUUID()), write, then atomically rename into place; - read-modify-write of shared data happens under a lock, inside a transaction, or as
a compare-and-swap (version column, ETag,
If-Match); never a bare read then write; - a time-based lock or lease is not safety on its own: a holder that pauses past the expiry (GC, SIGSTOP, a slow disk) will still write. Check ownership at the moment of the write — a fencing token or a conditional write that fails for a stale holder — and never acknowledge success before the write is durable;
- a test drives two writers at once and a stalled holder, and asserts no lost update.
The
concurrency-and-asyncandidempotency-and-retriesskills hold the patterns.
- concurrent writers never share a temp name — use a unique name (
- Small, focused units. A function does one thing; a file stays cohesive. Split a function that has grown a second responsibility or deep nesting — for clarity, not to hit a number. Prefer early returns to nested conditionals.
- Honest names. Names say what a thing is or does; booleans read as
is/has/should/can; units are in the name (timeoutMs). Nodata2,tmp,helper,doStuff. - Do not mutate what you do not own. Treat arguments and shared state as read-only unless mutation is the point, within the language's idiom (an in-place sort in hot Go code is fine).
- Composition over inheritance. A function, a small object, or an injected dependency before a class hierarchy.
- Tests are part of the change. Every AC has a test that exercises that AC's own
behaviour, plus the boundaries and the error path of the logic you added (the
add-unit-testandadd-integration-testskills). A test that only asserts "no exception" or a status code is not coverage of an AC about data. - Match the repo, do not reform it. Your addition should be indistinguishable from well-written code around it. A repo-wide cleanup is a separate ticket.
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.
- 2mo ago Changed · +4 lines ed5ddffd1276
- 3mo ago First seen · 82 lines · 120 tokens per session scan A b310c31a6c54
engineering-craft is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 120 tokens to every session and 1,357 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.
engineering-craft compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| engineering-crafttmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 120 | Claude Code, Codex |
| 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 |
| spec-drift-checkQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 54 | Claude Code |
| besimple-broccoli-blindbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 58 | Claude Code, Codex |
| code-review-loopbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 40 | Claude Code, Codex |
| dedupbesimple-oss/broccoli | Skill | 284 | 7mo ago | MIT | A | 32 | Claude Code, Codex |