add-config-option

add-config-option is a skill for Claude Code, Codex from tmj-90/gaffer. It costs 86 tokens per session (1,208 once invoked), scanned A, original, Apache-2.0.

A guide for adding a setting that operators can control, such as an environment variable, configuration-file field, or CLI option. It covers where the setting is defined, how values override one another, validation, defaults, and documentation.

In plain words
What is it for?
Use it for environment variables, YAML or configuration-file fields, service settings, timeouts, limits, and other operator-controlled options.
Why use it?
It prevents settings from being ignored, interpreted inconsistently, or documented differently from how the application actually reads them.

Skill for Claude CodeCodex

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

Good fit Use it for environment variables, YAML or configuration-file fields, service settings, timeouts, limits, and other operator-controlled options.

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

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

agentmods 80×15 button for add-config-option

Your own site · 80×15
<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>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,208 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.00086 $0.01208
Opus 5.5 $0.00034 $0.00483
Sonnet 5.5 $0.00017 $0.00242
Haiku 4.5 $0.00009 $0.00121

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

Security

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 16d 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/add-config-option/SKILL.md · 84 lines

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

  1. 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 minimalism skill). A credential is not an ordinary option: follow the security-secret-handling skill.
  2. Find the config spine. Where options are declared (a schema, a settings module, a config.sh, a typed Config object), how precedence works (commonly: CLI flag, then env var, then config file, then default), and whether docs are generated from it. Call search_lore for the convention, and search for existing env reads with the Grep tool (a Bash command mentioning process.env is hook-blocked). Add the option THERE; never read process.env.X or os.environ from a random module.
  3. Name it by the repo's rules. Prefix, casing, scope and unit (APP_UPLOAD_TIMEOUT_MS, not timeout). The unit in the name prevents the classic seconds-vs-milliseconds outage. Never reuse a retired option's name for new meaning.
  4. 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.
  5. 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.
  6. 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.
  7. 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. The safety hook blocks every .env* file, including .env.example: if the repo keeps one, say in your evidence that it needs the new key added by a human.
  8. 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-evidence skill (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).

Read the full file on GitHub · 84 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. 16d ago Changed · +24 lines 2b5b4cdd262f
  2. 19d ago First seen · 60 lines · 86 tokens per session scan A f1c7a8e95692

Subscribe to this mod's changes

add-config-option is a skill published in the GitHub repository tmj-90/gaffer (2 stars, last pushed 17d ago), licensed Apache-2.0. It adds 86 tokens to every session and 1,208 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.

Related

Other skills, from other repositories

bulwark-brainstorm

Role-based brainstorming with dual modes: --scoped (sequential Task tool, 5 roles) and --exploratory (Agent Teams peer debate, 4 roles). Use for feasibility assessment and idea validation.

QBall-Inc/the-bulwark · 50 tokens

plan-creation

Create structured implementation plans via a 4-role scrum team (Product Owner, Architect, Eng/Delivery Lead, QA/Critic) with optional Agent Teams peer debate mode.

QBall-Inc/the-bulwark · 38 tokens

anthropic-validator

Validates Claude Code assets (skills, hooks, agents, commands, MCP servers, plugins) against official Anthropic standards. Fetches latest docs dynamically and produces structured validation reports.

QBall-Inc/the-bulwark · 40 tokens

create-subagent

Generates single-purpose Claude Code sub-agents for use via the Task tool. Use when creating dedicated sub-agents, scaffolding agent definitions, or generating agents with diagnostics and permissions setup.

QBall-Inc/the-bulwark · 42 tokens

test-audit

Audit test suites for T1-T4 violations using AST analysis, mock detection, and multi-stage synthesis. Invoke when user asks to audit tests, check test quality, find mock violations, review test effectiveness, or inspect test suites for over-mocking. Triggers automatic rewrites when quality gates fail.

QBall-Inc/the-bulwark · 0 tokens

code-review

Comprehensive code review with distinct aspect based sections. Use when reviewing code, checking for security issues, finding type safety problems, auditing code quality, or when user asks to review code, PRs or changes. Three-phase workflow runs static tools, LLM judgment, and writes diagnostic log.

QBall-Inc/the-bulwark · 61 tokens