flagship
Skill by cloudflare
Guides building, debugging, and reviewing code that uses Cloudflare Flagship feature flags. It covers the Worker binding, OpenFeature SDKs, the evaluation API, targeting rules, rollouts, and Wrangler commands.
Install flagship
Built from the published package, never by AI.
git clone --depth 1 https://github.com/cloudflare/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/flagship ~/.claude/skills/flagshipRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/cloudflare/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/flagship ~/.gemini/antigravity-cli/skills/flagshipAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant guidance for working with Cloudflare Flagship, Cloudflare's feature flag service. Flagship groups flags into apps. Each flag has typed variants and ordered targeting rules, and evaluation runs at the edge against propagated configuration. The skill tells the assistant to read the matching Cloudflare documentation page before writing code or commands, and to treat the docs and generated types as the source of truth.
The skill covers evaluating flags in a Worker through the binding, evaluating outside Workers through OpenFeature SDKs or the HTTP evaluation API, and managing flags with Wrangler or the REST API. It also covers targeting rules, percentage rollouts, A/B splits, kill switches, local flag stores, and flag-related API tokens. It is aimed at developers who build, debug, or review code that uses Flagship.
Written from the project's SKILL.md and checked against it.
What it can do
- Worker binding guidanceExplains how to evaluate flags inside Workers using the Flagship binding and its typed methods.
- OpenFeature SDK guidanceCovers the TypeScript server and client providers, Python, Go, and Rust SDKs for evaluating flags.
- Evaluation API guidanceDescribes HTTP evaluation with GET for scalar context and POST for structured context.
- Targeting and rolloutsCovers targeting rules, operators, percentage rollouts, and cumulative A/B split thresholds.
- Wrangler flag managementCovers Wrangler commands for rules, rollouts, splits, enabling and disabling flags, and local mode.
- Debugging evaluation resultsExplains evaluation reasons and error codes to diagnose unexpected flag values.
- API token guidanceCovers account-wide and app-scoped tokens with Evaluate, Read, and Write permissions.
- Rollout planningCovers best practices for rollout steps, flag removal order, and key and context limits.
What you need
- A Cloudflare account with a Flagship app
- Wrangler, run through npx
- An API token with Evaluate or Read permission for SDKs outside Workers
Try asking
- Add a Flagship binding to my Worker and evaluate a boolean flag
- Set up a 20/80 percentage rollout for a flag using Wrangler
- Why does my Flagship flag always return its default value locally?
Good to know
- Changes can take up to 30 seconds to propagate.
- Local development starts with an empty flag store, so flags return defaults until seeded.
- Known evaluation failures return the default value silently in the typed binding methods.
- Wrangler flags update with --rule, rollout, and split replace every rule on the flag.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/flagship/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
references/skill-feedback.md3 KB
Alternatives to flagship
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
flagship: common questions
Do I need an API token to use Flagship inside a Worker?
No. The source says the binding authenticates automatically inside Workers and needs no API token. Outside Workers, an OpenFeature provider with an Evaluate token is used.
Why does a flag return its default value during local development?
The local flag store starts empty, so every flag returns its default until it is seeded. The source suggests running wrangler flagship flags pull, creating flags with --local, or setting remote to true on the binding.
How do I turn off a flag quickly?
Disabling a flag acts as a kill switch. A disabled flag always serves its default variant, regardless of targeting rules.
How do I install flagship?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is flagship free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is flagship safe to use?
It scores 91 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 flagship?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
