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 anoopsg/agent_rules --skill add-config-flaggit clone --depth 1 https://github.com/anoopsg/agent_rulesWrote 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/anoopsg/agent_rules/add-config-flag)<a href="https://agentmods.dev/skills/anoopsg/agent_rules/add-config-flag"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/add-config-flag/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/anoopsg/agent_rules/add-config-flag"><img src="https://agentmods.dev/badge/skills/anoopsg/agent_rules/add-config-flag.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.00055 | $0.00673 |
| Opus 5.5 | $0.00022 | $0.00269 |
| Sonnet 5.5 | $0.00011 | $0.00135 |
| Haiku 4.5 | $0.00006 | $0.00067 |
Grade A, and why
add-config-flag 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 22d 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 — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Config Flag Skill
This skill defines the process for adding a compile-time switch, so that "is this on, and what is it set to?" is always a one-file answer.
1. Pick the Kind
| Need | Kind | Lives in |
|---|---|---|
| A product toggle, the same for every flavor | FeatureFlags constant |
lib/src/system/feature_flags.dart |
| A value that differs per flavor, or a secret (URL, key, mock switch) | Environment define |
lib/src/system/environment.dart |
Both are compile-time constants: changing one means rebuilding the app. There is no runtime or remote config; stop and ask if the user needs a value that changes without a release.
2. Add a Feature Flag
- Add
static const bool <name>Enabled = <default>;toFeatureFlags, with a doc comment. Name it as a statement (onboardingEnabled, notonboarding). - Read it at the single point that owns the behavior (a repository getter,
a guard or one widget), never in several features, so its effect stays in one
place. See how existing flags are read:
grep -rn "FeatureFlags\." lib/src/features. - If
docs/architecture/feature-flags.mdexists, add the flag and its effect whenfalseto its table.
3. Add an Environment Define
- Add
static const <Type> <name> = <Type>.fromEnvironment('<KEY>');toEnvironment, with a doc comment (String,boolorint). Read it only asEnvironment.<name>, never by callingfromEnvironmentelsewhere. Existing defines:grep -n "fromEnvironment" lib/src/system/environment.dart. - Make the default (key missing) safe for a release build: off, empty or production. A build that forgets the key must not ship test data or crash.
- Add the key to
env/sample.json, the committed template, with a placeholder, never a real secret. Add it to your local per-flavor env files too (they are gitignored).
4. Testing
A const can't be changed from a test. Either write the expectation in terms of
the flag, so it holds whichever way it is set
(expect(result, !FeatureFlags.<name>Enabled)), or inject the value into the
class that owns the behavior and test both values.
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.
- 22d ago First seen · 60 lines · 55 tokens per session scan A b9e9a3869871
add-config-flag is a skill published in the GitHub repository anoopsg/agent_rules (2 stars, last pushed 23d ago), licensed MIT. It adds 55 tokens to every session and 673 once invoked, about $0.0002 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-11-08.
add-config-flag compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| add-config-flaganoopsg/agent_rules | Skill | 2 | 23d ago | MIT | A | 55 | Claude Code, Codex |
| orca-emulator-androidstablyai/orca | Skill | 145k | today | MIT | A | 102 | Claude Code, Codex |
| glance-canonical-layoutsandroid/skills | Skill | 11k | 7d ago | Apache-2.0 | A | 56 | Claude Code |
| android-tombstone-symbolicationdotnet/skills | Skill | 6.4k | today | MIT | A | 176 | Claude Code |
| dogfoodcallstack/agent-device | Skill | 5.6k | today | MIT | A | 55 | Claude Code |
| winapp-mauimicrosoft/winappCli | Skill | 1.4k | today | MIT | A | 68 | Claude Code |
| flutter-devMiniMax-AI/skills | Skill | 14k | 20d ago | MIT | A | 83 | Claude Code |