feature-gates

feature-gates is a skill for Claude Code, Codex from ctxpipe-ai/ctxpipe. It costs 65 tokens per session (933 once invoked), scanned A, original, MIT.

A script that finds declared feature gates in Go and Rust source code and writes a knowledge file for each one. A feature gate is a switch that controls whether an experimental or optional feature is available.

In plain words
What is it for?
Use it to inventory Kubernetes or Rust compiler feature gates from source files and link each gate to the code unit that declares it.
Why use it?
It turns scattered declarations and comments into structured records, including each gate's stage, default, owners, and tracking information.

Skill for Claude CodeCodex

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

Good fit Use it to inventory Kubernetes or Rust compiler feature gates from source files and link each gate to the code unit that declares it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ctxpipe-ai/ctxpipe/feature-gates
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 ctxpipe-ai/ctxpipe --skill feature-gates
Clone the repo
git clone --depth 1 https://github.com/ctxpipe-ai/ctxpipe

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-gates

README.md
[![agentmods](https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/feature-gates/github.svg)](https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/feature-gates)
Your own site
<a href="https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/feature-gates"><img src="https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/feature-gates/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-gates

Your own site · 80×15
<a href="https://agentmods.dev/skills/ctxpipe-ai/ctxpipe/feature-gates"><img src="https://agentmods.dev/badge/skills/ctxpipe-ai/ctxpipe/feature-gates.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 933 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.00065 $0.00933
Opus 5.5 $0.00026 $0.00373
Sonnet 5.5 $0.00013 $0.00187
Haiku 4.5 $0.00006 $0.00093

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

Security

Grade A, and why

feature-gates 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 8d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/feature-gates.mjs, scripts/gates-lib.mjs), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

apps/backend/ingest-skills/feature-gates/SKILL.md · 23 lines

What it actually says

feature-gates

The host runs this skill as a plain command, once for each repository, on the assembled ref after the root steps. No model runs it.

  1. The host writes /ctxpipe/step.json and the context index, as for each step.
  2. The host writes the root-to-file map (ADR-052 section 6) and runs node /ctxpipe/skills/feature-gates/scripts/feature-gates.mjs --source /ctxpipe/source/<handle> --source-url <url> --source-path <path> --roots <root-to-file map>. --roots is necessary.
  3. The script reads only the .go and .rs files whose path names a feature (for example pkg/features/kube_features.go or compiler/rustc_feature/src/unstable.rs). It does not read test files, test and example folders, or vendored, test-data, and fixture folders.
  4. A Go gate is a constant Name featuregate.Feature = "Name". The // owner: and // kep: lines of its comment give the owners and the KEP numbers. The other comment lines are the description. Its spec map (Name: {{Version: …, Default: …, PreRelease: …}}) in the same folder gives its stages; the last spec is the current stage and default.
  5. A Rust gate is an entry (unstable, name, "1.63.0", Some(12345)) of a declare_features! file. Its /// lines are the description, and the number is the tracking issue.
  6. Each gate gets knowledge/features/<name>.md. When another file has that path, the file is knowledge/features/<repository>-<name>.md. When more than one file of the source declares the name, each gate gets knowledge/features/<name>-<declaring folder>.md. A file of kind FeatureGate of this source with the name, whose Declared in line names the declaring file, is the file of the gate. When one file of the source declares the name and the context has one such file, that file is the file of the gate, also when its Declared in line names an earlier declaring file (a Rust gate moves from unstable.rs to accepted.rs or removed.rs).
  7. The file gets a PART_OF claim to each package unit file (Service, App, Library) of the deepest root that holds the declaring file. When that root has no such file, the claim goes to the repository unit.
  8. A KEP gets a link to a Decision file of the context whose name holds KEP-<number>, and to the mirrored issue github/issues/kubernetes/enhancements/<number>.md when the context has it. A Rust tracking issue gets a link to github/issues/<owner>/<repository>/<number>.md when the context has it. External KEP links are text in code, because the host allows external links only to the repositories of the Workspace.
  9. The description is source text, so it is in a block quote with a Source: line. It keeps its first 2 KiB. A longer description ends with "…", and skipped names its file and line and the count of bytes that the cut removed.
  10. A page ends only at the step limits of the host validator (2 MiB of files, and a patch.json of 1 MiB and 10,000 ops). When more files wait, the result has "more": true, and the host runs the skill again on the new base.
  11. It writes the staged tree and /ctxpipe/out/patch.json, and a summary that matches schema.json to stdout.

The script never sets a host field. A file that this source owns alone, with no human section, is written again with the current facts (a gate changes its stage and default between releases). Any other existing file changes only additively (new claims, and new lines in a ## Related section at the end).

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 8d ago First seen · 23 lines · 65 tokens per session scan A 36f7510e54c5

Subscribe to this mod's changes

feature-gates is a skill published in the GitHub repository ctxpipe-ai/ctxpipe (28 stars, last pushed today), licensed MIT. It adds 65 tokens to every session and 933 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-11-23.

Related

feature-gates compared with skills from other repositories

feature-gates next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
feature-gatesctxpipe-ai/ctxpipeSkill28todayMITA65Claude Code, Codex
hns-moaiadk-best-practicesmodu-ai/moai-adkSkill1.3ktodayApache-2.0A129Claude Code
hns-moaiadk-patternsmodu-ai/moai-adkSkill1.3ktodayApache-2.0A116Claude Code
top-down-typescriptpaleo/alignfirstSkill91yesterdayCC0-1.0A53Claude Code, Codex
loom-pythoncosmix/loomSkill66yesterdayMITA14Claude Code, Codex
loom-csharpcosmix/loomSkill66yesterdayMITA16Claude Code, Codex
loom-javacosmix/loomSkill66yesterdayMITA14Claude Code, Codex