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 add-config-optiongit 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/add-config-option)<a href="https://agentmods.dev/skills/tmj-90/gaffer/add-config-option"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/add-config-option/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/add-config-option"><img src="https://agentmods.dev/badge/skills/tmj-90/gaffer/add-config-option.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.00086 | $0.01238 |
| Opus 5.5 | $0.00034 | $0.00495 |
| Sonnet 5.5 | $0.00017 | $0.00248 |
| Haiku 4.5 | $0.00009 | $0.00124 |
Grade A, and why
add-config-option 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 — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Add a configuration option
Configuration is the operator's API: everything that varies between deploys while the code stays the same. A new option must be declared once, parsed and validated at startup, defaulted to today's behaviour, and documented from the same place it is defined. Half the incidents that start with "we set the env var" end with "in the wrong process" or "in seconds, not milliseconds".
Steps
- Confirm it should be an option at all. Twelve-factor's test: config is what varies
per deploy (hosts, credentials, limits, feature switches). A value that never differs
between environments is a constant — keep it in code (the
minimalismskill). A credential is not an ordinary option: follow thesecurity-secret-handlingskill. - Find the config spine. Where options are declared (a schema, a settings module, a
config.sh, a typedConfigobject), how precedence works (commonly: CLI flag, then env var, then config file, then default), and whether docs are generated from it. Callsearch_lorefor the convention, and search for existing env reads with the Grep tool (a Bash command mentioningprocess.envis hook-blocked). Add the option THERE; never readprocess.env.Xoros.environfrom a random module. - Name it by the repo's rules. Prefix, casing, scope and unit
(
APP_UPLOAD_TIMEOUT_MS, nottimeout). The unit in the name prevents the classic seconds-vs-milliseconds outage. Never reuse a retired option's name for new meaning. - Parse once, validate at load, fail fast. Convert to a typed value (integer with a
range, enum, URL, duration, path) at startup and exit with a message naming the option
and the bad value. Treat an empty string explicitly (unset or invalid — decide and
test). Booleans accept a documented set (
true/false/1/0), not "anything non-empty". A silently ignored malformed setting is worse than a crash. - Choose the default deliberately. It is what every operator who does not know the option exists will run: it must be safe and preserve current behaviour unless the ticket says otherwise. State why in one comment at the declaration.
- Thread it to every consumer. If a child process, worker, container or dashboard needs the value, pass it explicitly (spawn env, compose file, chart values) with the same precedence. Prove the value arrives at the consumer, not just that it parses.
- Document from the source. Regenerate the reference doc if the repo generates one;
otherwise add a row to the config table in README/docs: name, type, default, unit,
effect, since-version. If the dashboard or an admin UI lists settings, add it through
that existing settings definition, not a parallel form. If the repo keeps a COMMITTED
.env.example(or.sample/.template), add the new key there with a placeholder value; the safety hook allows a tracked template and blocks every other.env*file. Do not create a new template — say in your evidence that a human needs to add one. - Test it: default applied when unset; override honoured; each invalid form rejected
with the named message; precedence (flag beats env) when the repo has layers; the child
process sees it when step 6 applies. Evidence via the
record-evidenceskill (on a resume that call is refused: do not retry; put this, the AC → test map and the smallest-change note in your final message).
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 bd04f751323f
- 2mo ago Changed · +24 lines 2b5b4cdd262f
- 2mo ago First seen · 60 lines · 86 tokens per session scan A f1c7a8e95692
add-config-option is a skill published in the GitHub repository tmj-90/gaffer (1 stars, last pushed 4d ago), licensed Apache-2.0. It adds 86 tokens to every session and 1,238 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-09-28.
add-config-option compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-config-optiontmj-90/gaffer | Skill | 1 | 4d ago | Apache-2.0 | A | 86 | 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 |