katgpt-rs: Skill for Claude Code

.agents/skills/feature-gate-audit/SKILL.md

feature-gate-audit is a skill for Claude Code, Codex from katopz/katgpt-rs. It costs 228 tokens per session (6,667 once invoked), scanned A, original, MIT.

A skill for checking claims about feature gates, which are controls that turn software features on or off, across several code repositories. It compares written claims with the production code.

In plain words
What is it for?
Use it when reviewing plans, issues, documentation, commit messages, or feature-flag changes that describe a feature's rollout status.
Why use it?
It helps catch outdated or incorrect statements about whether a feature is enabled, connected, or used in production.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

This is katopz/katgpt-rs's own configuration. It tells Claude Code and Codex how to work on katgpt-rs itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything katgpt-rs configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/katopz/git.

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/katopz/katgpt-rs/develop/.agents/skills/feature-gate-audit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/katopz/katgpt-rs

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 feature-gate-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/katopz/katgpt-rs/feature-gate-audit/github.svg)](https://agentmods.dev/skills/katopz/katgpt-rs/feature-gate-audit)
Your own site
<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.

agentmods 80×15 button for feature-gate-audit

Your own site · 80×15
<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>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,667 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.00228 $0.06667
Opus 5 $0.00114 $0.03334
Sonnet 5 $0.00046 $0.01333
Haiku 4.5 $0.00023 $0.00667

Measured 6d ago against content hash 772a99c4be46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

.agents/skills/feature-gate-audit/SKILL.md · 367 lines

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::tick Gate 3).
  • The catalog IS exercised in production via crates/riir-games-civ/src/civ/daily_loop/mod.rs:1071-1078, which calls ctx.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 passes comment 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 excluded riir-dapps)
  • Quarterly as a feature-gate-hygiene gate (alongside doc-sync and goat-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:

  1. 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)
  2. grep for the feature name across all .rs files in the crate tree, not just the file the doc cited:
    grep -rn "FEATURE_NAME" crates/ --include="*.rs"
    
  3. Read the body of every host function whose signature imports a type from the gated module.
  4. 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.
  5. 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.

Read the full file on GitHub · 367 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. 6d ago Changed · +7 lines 772a99c4be46
  2. 10d ago First seen · 360 lines · 228 tokens per session scan A 01e7f518337c

Subscribe to this mod's changes

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.

Related

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…

ChromeDevTools/chrome-devtools-mcp · 99 tokens

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.

open-metadata/OpenMetadata · 37 tokens

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.

emdash-cms/emdash · 43 tokens

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.

emdash-cms/emdash · 48 tokens

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…

zebbern/claude-code-guide · 71 tokens

byted-util-volcengine-detect-retry

An orchestration workflow for Volcengine Cloud Detect, a service that checks websites or network endpoints from test locations.

bytedance/agentkit-samples · 101 tokens