engineering-craft

engineering-craft is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 120 tokens per session (1,357 once invoked), scanned A, original, Apache-2.0.

A code-quality guide for delivering maintainable software. It emphasizes small focused units, clear boundaries, honest names, explicit error handling, reuse only where repetition is real, and tests for important logic.

In plain words
What is it for?
Use it when implementing tickets, deciding whether to extract shared code, structuring application layers, handling failures, and checking production code before delivery.
Why use it?
It helps keep changes understandable and safe to modify without adding speculative abstractions or unnecessary code. The guide is intended for use during implementation and review.

Skill for Claude CodeCodex

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

Good fit Use it when implementing tickets, deciding whether to extract shared code, structuring application layers, handling failures, and checking production code before delivery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tmj-90/gaffer/engineering-craft
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 engineering-craft
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 engineering-craft

README.md
[![agentmods](https://agentmods.dev/badge/skills/tmj-90/gaffer/engineering-craft/github.svg)](https://agentmods.dev/skills/tmj-90/gaffer/engineering-craft)
Your own site
<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.

agentmods 80×15 button for engineering-craft

Your own site · 80×15
<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>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,357 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.00120 $0.01357
Opus 5.5 $0.00048 $0.00543
Sonnet 5.5 $0.00024 $0.00271
Haiku 4.5 $0.00012 $0.00136

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

Security

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.

runner/skills/engineering-craft/SKILL.md · 86 lines

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)

  1. 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".
  2. Boundaries at the edges. Keep transport (HTTP/CLI), domain logic and persistence separable; no SQL or fetch in the middle of a business rule. Use the seams the repo already has; do not invent a new layering.
  3. No silent failures. No empty catch, swallowed promise rejection, ignored return code or || true that 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.
  4. 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.
  5. 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-async and idempotency-and-retries skills hold the patterns.
  6. 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.
  7. Honest names. Names say what a thing is or does; booleans read as is/has/should/can; units are in the name (timeoutMs). No data2, tmp, helper, doStuff.
  8. 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).
  9. Composition over inheritance. A function, a small object, or an injected dependency before a class hierarchy.
  10. 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-test and add-integration-test skills). A test that only asserts "no exception" or a status code is not coverage of an AC about data.
  11. 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.

Read the full file on GitHub · 86 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. 2mo ago Changed · +4 lines ed5ddffd1276
  2. 3mo ago First seen · 82 lines · 120 tokens per session scan A b310c31a6c54

Subscribe to this mod's changes

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.

Related

engineering-craft compared with skills from other repositories

engineering-craft next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
engineering-crafttmj-90/gafferSkill14d agoApache-2.0A120Claude Code, Codex
test-auditQBall-Inc/the-bulwarkSkill9yesterdayMITA0Claude Code
code-reviewQBall-Inc/the-bulwarkSkill9yesterdayMITA61Claude Code
spec-drift-checkQBall-Inc/the-bulwarkSkill9yesterdayMITA54Claude Code
besimple-broccoli-blindbesimple-oss/broccoliSkill2847mo agoMITA58Claude Code, Codex
code-review-loopbesimple-oss/broccoliSkill2847mo agoMITA40Claude Code, Codex
dedupbesimple-oss/broccoliSkill2847mo agoMITA32Claude Code, Codex