feature-flag-conventions

feature-flag-conventions is a skill for Claude Code from xberg-io/xberg. It costs 35 tokens per session (3,206 once invoked), scanned A, original, MIT.

A guide to feature flags in Rust projects. Feature flags are build-time options that include or exclude parts of a program, such as tracing export, an embedded MCP server, or a memory allocator.

In plain words
What is it for?
Use it when editing Rust package feature lists, adding or reviewing shared flags such as otel or mcp, or checking allocator and backend combinations.
Why use it?
It prevents shared options from acquiring different meanings across libraries and avoids conflicting or incorrectly enabled dependencies.

Skill for Claude Code

Written for Claude Code: paths in frontmatter.

Good fit Use it when editing Rust package feature lists, adding or reviewing shared flags such as otel or mcp, or checking allocator and backend combinations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/xberg-io/xberg/feature-flag-conventions
About the project

Xberg is a document-intelligence engine that reads files, URLs, archives, and source trees and extracts text, metadata, images, tables, and structured data, with additional code-language understanding. Developers use it through language bindings, a command-line tool, REST API, or MCP server, and the catalogue entries support those integrations.

xberg-io/xberg · 9,458 stars · on GitHub · docs.xberg.io

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 xberg-io/xberg --skill feature-flag-conventions
Clone the repo
git clone --depth 1 https://github.com/xberg-io/xberg

Made for: Claude Code.

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-flag-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/xberg-io/xberg/feature-flag-conventions"><img src="https://agentmods.dev/badge/skills/xberg-io/xberg/feature-flag-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,206 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.00035 $0.03206
Opus 5.5 $0.00014 $0.01282
Sonnet 5.5 $0.00007 $0.00641
Haiku 4.5 $0.00003 $0.00321

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

Security

Grade A, and why

feature-flag-conventions 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 yesterday.

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.

.ai-rulez/skills/feature-flag-conventions/SKILL.md · 150 lines

How it starts

The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Feature-flag conventions

Shared concerns use the same flag name with the same semantics in every library. A consumer that learns otel or mcp once should get identical behavior across every library and its bindings. Repo-specific flags stay local — this contract governs only shared concerns.

Standard flags

Flag Meaning Default Notes
(none) tracing Structured tracing is always-on, never a feature. — tracing is a non-optional dependency. Do not gate span emission. Un-gate any legacy optional tracing feature.
otel Opt-in OpenTelemetry / OTLP export layer, on top of always-on tracing. off Pulls tracing-opentelemetry + the opentelemetry* stack. This is the only observability feature. Reconcile any always-on OTLP deps behind it.
mcp Embedded Model Context Protocol server (stdio transport). off
mcp-http MCP Streamable HTTP transport; implies mcp. off mcp-http = ["mcp", ...].
mimalloc Select the mimalloc global allocator. off Mutually exclusive with jemalloc; see the allocator rule below.
jemalloc Select the jemalloc global allocator. off Mutually exclusive with mimalloc.
cuda / metal / mkl / accelerate Device / BLAS acceleration backends where a crate exposes them. off Same names wherever acceleration is offered.

Rules

  • Names are the contract. Never invent a synonym for a shared concern (opentelemetry, observability, otlp for what is otel; model-context-protocol for mcp). Rename divergent flags to match.
  • Semantics travel with the name. otel must mean the OTLP export layer everywhere, not "enable tracing" (tracing is always-on) and not a metrics-only subset.
  • Always-on tracing, opt-in export. Do not force the opentelemetry dependency tree on library consumers — keep it behind otel so a plain dependency stays lean.
  • Implication edges are fixed: mcp-http ⇒ mcp; otel ⇒ (always-on) tracing.
  • Mutually-exclusive allocators carry a both-enabled compile_error! guard by default. Exception: a crate that must build with --all-features (a coverage gate, cargo doc --all-features) resolves by precedence instead, jemalloc winning via cfg(all(feature = "mimalloc", not(feature = "jemalloc"))), and states why in a ~keep comment at the #[global_allocator].
  • Adding a shared flag to a new library? Copy the name, default, and implication edges from this table rather than redefining them. Coordinate a change to this contract across all libraries before landing it — no repo diverges unilaterally.

Read the full file on GitHub · 150 lines

Files

What ships with it

1 file 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. yesterday First seen · 150 lines · 35 tokens per session scan A 16fb7e968be8

Subscribe to this mod's changes

feature-flag-conventions is a skill published in the GitHub repository xberg-io/xberg (9,458 stars, last pushed today), licensed MIT. It adds 35 tokens to every session and 3,206 once invoked, about $0.0001 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-10-28.

Related

Other skills, from other repositories

polars

High-performance DataFrame library for Python ETL, analytics, and pandas migration. It supports expression-based data manipulation with lazy query optimization, parallel execution, streaming out-of-core processing, Arrow interoperability, and optional GPU execution.

K-Dense-AI/scientific-agent-skills · 47 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

crate-structure

Map of the html-to-markdown workspace: crates/, packages/ and the convert() API with its result shape and feature flags. Use when navigating crates or packages, deciding where code belongs, or calling convert().

xberg-io/html-to-markdown · 42 tokens

cloudflare-workers-multi-lang

Multi-language Workers development with Rust, Python, and WebAssembly. Use when building Workers in languages other than JavaScript/TypeScript, or when integrating WASM modules for performance-critical code.

secondsky/claude-skills · 45 tokens

gpui-toolkit

Use when building or modifying GPUI applications in the gpui-toolkit workspace, especially when choosing reusable toolkit crates, composing UI, adding components, charts, themes, layouts, audio controls, mobile surfaces, or validation coverage. Prefer existing toolkit APIs over custom one-off implementations.

pierreaubert/gpui-toolkit · 60 tokens

edge-python

Write, run, test and package Edge Python programs with the edge CLI. Use when editing .py files in an Edge Python project or when the user asks for Edge Python code.

dylan-sutton-chavez/edge-python · 39 tokens