feature-flag-discipline

feature-flag-discipline is a skill for Claude Code from Vimalk0703/shipworthy. It costs 38 tokens per session (2,362 once invoked), scanned A, original, MIT.

A set of instructions for managing feature flags, which are switches that turn software behavior on or off. It covers ownership, expiry, rollout, targeting, emergency shutoffs, and removal.

In plain words
What is it for?
Use it when introducing, rolling out, testing, disabling, or cleaning up feature flags.
Why use it?
It prevents temporary switches from being forgotten and becoming permanent code complexity.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shipworthy plugin — 66 skills, 7 commands, 3 hooks shipped together

Good fit Use it when introducing, rolling out, testing, disabling, or cleaning up feature flags.

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

Made for: Claude Code.

Or install shipworthy, the plugin that ships this one along with the rest of its 66 skills, 7 commands, 3 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/vimalk0703/shipworthy/feature-flag-discipline"><img src="https://agentmods.dev/badge/skills/vimalk0703/shipworthy/feature-flag-discipline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,362 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.00038 $0.02362
Opus 5 $0.00019 $0.01181
Sonnet 5 $0.00008 $0.00472
Haiku 4.5 $0.00004 $0.00236

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

Security

Grade A, and why

feature-flag-discipline 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 9d 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.

skills/operations/feature-flag-discipline/SKILL.md · 312 lines

How it starts

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

Feature Flag Discipline

Core Principle

Feature flags are a deployment tool, not a permanent branching mechanism. Every flag must have an expiration date, an owner, and a cleanup plan. A flag at 100% for more than 30 days is tech debt, not a feature flag.


1. Flag Types and Lifecycle

Flag Type Purpose Lifespan Example
Release flag Decouple deployment from release Days to weeks enable_new_checkout_flow
Experiment flag A/B testing Weeks (until statistically significant) experiment_pricing_page_v2
Ops flag Kill switch for operational control Permanent (but rarely toggled) enable_recommendation_engine
Permission flag User entitlements and access Permanent (managed by product) enable_enterprise_sso

Only ops flags and permission flags are allowed to live permanently. Release flags and experiment flags must be removed after rollout or experiment completion.


2. Flag Registration -- Required Metadata

Every flag must be registered with the following metadata at creation time:

interface FeatureFlag {
  key: string;                    // e.g., "enable_new_checkout_flow"
  type: 'release' | 'experiment' | 'ops' | 'permission';
  owner: string;                  // Team or individual responsible
  description: string;            // What this flag controls
  createdAt: string;              // ISO date
  expiresAt: string;              // ISO date -- REQUIRED for release and experiment flags
  jiraTicket: string;             // Cleanup ticket created at flag creation time
  defaultValue: boolean;          // What happens if the flag system is down
  killSwitchSafe: boolean;        // Can this be turned off instantly without data loss?
}

Example Registration

const flags = {
  enable_new_checkout_flow: {
    key: 'enable_new_checkout_flow',
    type: 'release',
    owner: 'payments-team',
    description: 'Enables the redesigned checkout flow with Apple Pay support',
    createdAt: '2025-06-01',
    expiresAt: '2025-07-15',
    jiraTicket: 'PAY-1234',
    defaultValue: false,         // If flag system is down, use old checkout
    killSwitchSafe: true,        // Can disable instantly, user retries with old flow
  },
};

Read the full file on GitHub · 312 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. 9d ago First seen · 312 lines · 38 tokens per session scan A 6ce7b0284d5b

Subscribe to this mod's changes

feature-flag-discipline is a skill published in the GitHub repository Vimalk0703/shipworthy (7 stars, last pushed 5mo ago), licensed MIT. It adds 38 tokens to every session and 2,362 once invoked, about $0.0002 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-31.

Related

Other skills, from other repositories

hedgehog-planning-intake

Use on any core for first-run planning intake — Phase 0 runs the vendored BMAD-METHOD planning shelf, shared by every core, and Phase 1 (mining 04-prd.md into intent records plus the Add-ons/sync-and-remote-entities decision) is full-stack-app's and pwa-app's shared procedure — identical mechanics, a different…

skyf0xx/hedgehog · 0 tokens

bmad-product-brief

Create, update, or validate a product brief. Use when the user wants help producing, editing, or validating a brief.

skyf0xx/hedgehog · 31 tokens

bmad-deep-recon

Decision-grade research, three ways: draft a deep-research prompt for the user to run in their own tool (ChatGPT, Gemini, Grok, Perplexity, …), process a finished research report — file it, distill a succinct cited summary with metadata that downstream skills consume without reprocessing — or run the research here…

skyf0xx/hedgehog · 167 tokens

hedgehog

Use when the user writes the word "Hedgehog" anywhere in a request, or has agreed to install the Hedgehog build discipline in a project that does not have it yet. Hedgehog builds prose as well as code — articles, essays, blog posts, tweets, threads, newsletters, announcements, and marketing or product copy of any…

skyf0xx/hedgehog · 0 tokens

conventional-commits

Use when uncommitted changes need to be split into atomic, conventional commits ordered for review. Triggers on "commit this", "make commits", "clean up commits", "commit the changes". In Hedgehog, each Loop step is already meant to be its own commit — this skill matters most when a Correction Protocol fast-forward…

skyf0xx/hedgehog · 88 tokens

hedgehog-contributing

Use when the user wants to contribute a fix or ROADMAP.md item back to the Hedgehog project itself (skyf0xx/hedgehog) rather than their own project. Triggers on "let's fix that in Hedgehog", "I want to contribute", "let's pick up a roadmap item", or when tweaker offers this at the end of a build and the user says yes.…

skyf0xx/hedgehog · 120 tokens