Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-feature-flag

Skill by simstudioai

Adds a runtime feature flag to the Sim codebase, switchable in AWS AppConfig on production without a redeploy. Flags are global on or off by default, with optional gating by workspace, organization, user, or platform admin. Built for developers working in the Sim repository.

  • Score 89
  • 30k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-feature-flag

Built from the published package, never by AI.

git clone --depth 1 https://github.com/simstudioai/sim /tmp/sim && mkdir -p ~/.claude/skills && cp -r /tmp/sim/.agents/skills/add-feature-flag ~/.claude/skills/add-feature-flag

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-feature-flag in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The add-feature-flag skill adds a runtime feature flag to the Sim codebase. Flags are defined in the FEATURE_FLAGS registry in feature-flags.ts and checked with isFeatureEnabled. On production they can change without a redeploy through AWS AppConfig. Outside AppConfig, such as self-hosted, OSS, or local setups, a flag is on or off based on its fallback secret.

By default a flag is global on or off. The skill asks before adding scoped rollout by workspace, organization, user, or platform admin, and those rules live only in the AppConfig document. It also covers configuring the flag in AppConfig, testing new evaluation logic, and removing the flag after rollout. It is aimed at developers working in the Sim repository.

Written from the project's SKILL.md and checked against it.

What it can do

  • Define a flagAdds an entry to the FEATURE_FLAGS registry with a description and a fallback secret.
  • Gate call sitesWraps code in isFeatureEnabled checks, globally or with scoped workspace, org, or user ids.
  • Configure AppConfigExplains how operators add the flag to the hosted feature-flags document for production rollout.
  • Test evaluation logicAdds test cases to feature-flags.test.ts when flag evaluation logic changes.
  • Clean up after rolloutLists the registry entry, env secret, AppConfig document and call sites to remove once a feature ships.

What you need

  • Access to the Sim repository (apps/sim)
  • AWS AppConfig for changing flags on production
  • A deployment secret store for the fallback secret

Try asking

  • Add a global feature flag called new-editor to Sim
  • Add a feature flag for the billing page gated by workspace id
  • Remove the old-dashboard feature flag now that it has shipped

Good to know

  • Workspace, org, user and admin gating can only be set in AppConfig, not in code.
  • The fallback secret is a single on or off value.
  • Client-side UI flags must be resolved on the server and passed down as props.
  • Flags should be removed after rollout to avoid dead code.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .agents/skills/add-feature-flag/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md6 KB

Alternatives to add-feature-flag

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

add-feature-flag: common questions

How do I turn a feature flag on in production without a redeploy?

Operators add the flag to the hosted feature-flags document in AWS AppConfig and start a sim-<env>-fast deployment. The source describes this as the same flow used for access-control.

What happens to a feature flag when AppConfig is not in use?

The flag is simply on or off, derived from its fallback secret. Scoped gating rules are not applied in that case.

When should I use a feature flag instead of env-flags.ts?

Use a feature flag for runtime, global or scoped on/off switches. Use env-flags.ts for fixed deployment-time capability checks.

How do I install add-feature-flag?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-feature-flag free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is add-feature-flag safe to use?

It scores 89 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-feature-flag?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

add-feature-flag Install

Add to stack

Loading.