Borrowing it
Nothing to install: this file belongs to katopz/katgpt-rs. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/katopz/katgpt-rs/develop/.agents/skills/feature-gate-audit/SKILL.mdgit clone --depth 1 https://github.com/katopz/katgpt-rsWrote 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/katopz/katgpt-rs/feature-gate-audit)<a href="https://agentmods.dev/skills/katopz/katgpt-rs/feature-gate-audit"><img src="https://agentmods.dev/badge/skills/katopz/katgpt-rs/feature-gate-audit/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/katopz/katgpt-rs/feature-gate-audit"><img src="https://agentmods.dev/badge/skills/katopz/katgpt-rs/feature-gate-audit.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.00228 | $0.06667 |
| Opus 5 | $0.00114 | $0.03334 |
| Sonnet 5 | $0.00046 | $0.01333 |
| Haiku 4.5 | $0.00023 | $0.00667 |
Grade A, and why
feature-gate-audit 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 6d 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 — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.
feature-gate-audit — Verify feature-gate claims against production code
This skill exists because of a caught error chain: session f92a7ffe in
riir-ai (2026-07-18) framed npc_sleep_time's engine-DEFAULT-ON /
civ-OPT-IN state as a "promotion discrepancy" and claimed the catalog
was "wired but not yet exercised in production civ tick". Session
f865913e (same day) verified both claims against production code and
found them factually wrong:
- The split is a deliberate layer split (engine = generic runtime;
civ = IP-bearing catalog + graceful-degradation hook into
SleepConsolidateNode::tickGate 3). - The catalog IS exercised in production via
crates/riir-games-civ/src/civ/daily_loop/mod.rs:1071-1078, which callsctx.sleep_runtime.sleep_cycle_tick(&hla, &self.dirs).
The three defenses below would have caught both errors before they landed. Apply them to every feature-gate claim you encounter.
When to use
- A doc, plan, issue, commit message, or session summary claims a "promotion discrepancy" between two crates' feature-gate status
- A doc claims a feature is "wired but not yet exercised in production"
- You encounter a
// Default-off until G1–GN GOAT gate passescomment in source code - Before promoting a feature flag to default-on (or demoting to opt-in)
in any product-set repo (8; canonical list in
katgpt-rs/AGENTS.md§"Repo count" — this said 7 and silently excludedriir-dapps) - Quarterly as a feature-gate-hygiene gate (alongside
doc-syncandgoat-audit)
The four defenses
Defense 1 — Verify every "discrepancy" / "not yet wired" claim against production code
NEVER propagate a doc/plan/session-summary's framing of feature-gate state without first grepping the actual production wiring. Plausible-but- wrong framings are the canonical failure mode — they read as reasoned verdicts, get propagated through summaries, and solidify into "facts" that downstream sessions trust.
Protocol:
- Identify the production host(s) — the function that would invoke the
gated code path on the hot tick. Common hosts in this stack:
tick_proactive_salience(salience gate)tick_cgsp_curiosity(CGSP runtime)tick_motivation(motivation system)SleepConsolidateNode::tick(sleep-time, daily loop)evolve_feeling_brain(emotion systems)
grepfor the feature name across all.rsfiles in the crate tree, not just the file the doc cited:grep -rn "FEATURE_NAME" crates/ --include="*.rs"- Read the body of every host function whose signature imports a type from the gated module.
- If a
#[cfg(feature = "FEATURE_NAME")]block is reached along the tick path, the feature IS exercised in production — regardless of what the doc says. - If no host reaches the gated block, then the "not yet wired" claim may be accurate — but verify with a call-graph grep, not just a single-file read.
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.
- 6d ago Changed · +7 lines 772a99c4be46
- 10d ago First seen · 360 lines · 228 tokens per session scan A 01e7f518337c
feature-gate-audit is a skill published in the GitHub repository katopz/katgpt-rs (98 stars, last pushed today), licensed MIT. It adds 228 tokens to every session and 6,667 once invoked, about $0.0011 per session on Opus 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-30.
Other skills, from other repositories
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
systematic-debugging
Use when debugging a failing test, build error, or runtime issue that isn't immediately obvious. Guides a 4-phase root cause analysis instead of random fix attempts.
diagnose
Trace from a reproduced symptom to the source code that causes it. Pin the specific file and approximate line, rate confidence in the cause and clarity of the fix independently, and always propose a concrete fix.
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
log-error-digest
Analyze log files to troubleshoot errors, identify peak error periods, and produce error clustering, frequency statistics, and time distribution reports. Supports JSON, syslog, and Nginx formats with automatic detection. Use when a user uploads a .log file and asks to analyze errors, find patterns, debug issues, or…
byted-util-volcengine-detect-retry
An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.