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 backend-servicegit 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/backend-service)<a href="https://agentmods.dev/skills/tmj-90/gaffer/backend-service"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/backend-service/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/backend-service"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/backend-service.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.00067 | $0.01090 |
| Opus 5.5 | $0.00027 | $0.00436 |
| Sonnet 5.5 | $0.00013 | $0.00218 |
| Haiku 4.5 | $0.00007 | $0.00109 |
Grade A, and why
backend-service 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 — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a backend service
A service owns one use-case: it receives validated input, enforces the business rules, defines the transaction boundary, and returns a domain result or a typed error. Transport (HTTP, CLI, queue) and storage details stay at the edges so the logic can be tested directly and reused by every entry point.
Steps
- Read the conventions. Call
search_lorefor the layering (handler → service → repository), error model, transaction handling and dependency-injection style; honour any ADR. Find a sibling service and copy its construction, collaborator injection, return and error types, file location and test layout. - Write the use-case contract. Inputs (already validated types), outputs, each
typed failure (
NotFound,Conflict,Forbidden,ValidationFailed), and the invariants that must hold afterwards (e.g. "a user has at most one active subscription"). Map each AC to the invariant or behaviour it tests. - Keep it transport-agnostic. No request/response objects, status codes, SQL strings or framework types in the service signature. Take repositories, clients, the clock and ID generators as injected dependencies so tests can control time and IDs.
- Own the transaction boundary. One use-case = one unit of work: all writes
commit together or not at all. Do not call external services (HTTP, email, payment)
inside an open database transaction; record the intent in an outbox row in the same
transaction and deliver after commit (the
background-jobsandevent-driven-messagingskills). - Enforce invariants where concurrency cannot break them. "Check, then insert"
in application code races with a second request. Back each uniqueness or count
invariant with a database constraint, a conditional update (
… WHERE version = ?), or a row lock, and translate the resulting violation into the typedConflicterror. Shared files or in-memory state written by concurrent callers follow theconcurrency-and-asyncskill. - Handle failure explicitly. Return or raise typed errors with context and the
original cause; never swallow an exception, return an ambiguous
null, or leave a half-applied change (theerror-handlingskill). Operations callers may retry are idempotent (theidempotency-and-retriesskill). - Test the behaviour, one test per AC, exercising that AC's own rule:
- unit tests with in-memory fakes for branches, typed errors and edge cases, using a fixed clock and deterministic IDs;
- an integration test against the real database for anything relying on a constraint, transaction or lock (a fake repository cannot prove atomicity);
- a rollback test: when a later step fails, earlier writes are not persisted;
- where an invariant can be raced, N concurrent calls keep it (exactly one winner,
the losers get
Conflict), using theconcurrency-and-asyncskill's step 9 recipe.
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 · +35 lines a2362d43fdf1
- 3mo ago First seen · 45 lines · 67 tokens per session scan A 61e7d7f6009c
backend-service is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed yesterday), licensed Apache-2.0. It adds 67 tokens to every session and 1,090 once invoked, about $0.0003 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.
backend-service compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| backend-servicetmj-90/gaffer | Skill | 1 | yesterday | Apache-2.0 | A | 67 | 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 |
| code-reviewQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 61 | Claude Code |
| create-subagentQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 42 | Claude Code |
| mock-detectionQBall-Inc/the-bulwark | Skill | 9 | yesterday | MIT | A | 13 | Claude Code |