Skip to content
Skill

Flagship

Guides agents in building, debugging and reviewing Cloudflare Flagship feature flag code

Flagship is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
3.5K
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Flagship

This skill points the agent at Cloudflare Flagship, a feature flag service whose flags have typed variants and ordered targeting rules evaluated at the edge. It tells the agent to read the matching official documentation page before writing code or CLI commands, since the Flagship API may have changed since the model was trained, and to treat the docs and generated Wrangler types as the source of truth.

The skill covers the Worker binding, OpenFeature SDK providers for TypeScript, Python, Go and Rust, the HTTP evaluation API, and Wrangler commands for managing flags and rules. It includes a gotchas section on local development with an empty flag store, stable bucketing values for percentage rollouts, rule ordering, propagation delay, and how disabling a flag acts as a kill switch.

Using it requires a Cloudflare account and the relevant tokens for remote management, with Evaluate, Read or Write permissions depending on the client. Wrangler, the Vite plugin or the OpenFeature SDK for the target language are needed as well.

When your agent uses it

Build, debug, or review code that uses Cloudflare Flagship feature flags from Workers, OpenFeature SDKs, the evaluation API, or Wrangler. Use for the Flagship binding, targeting rules, percentage rollouts and A/B splits, kill switches, local flag stores, and flag-related API tokens.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (11 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the cloudflare plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add cloudflare/skills
/plugin install cloudflare@cloudflare

Or copy only this skill to ~/.claude/skills/flagship:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/flagship &&
cp -R "$tmp/skills/flagship" ~/.claude/skills/flagship &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/flagship inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/flagship to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/flagship &&
cp -R "$tmp/skills/flagship" ~/.agents/skills/flagship &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/flagship inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/flagship to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/flagship &&
cp -R "$tmp/skills/flagship" ~/.cursor/skills/flagship &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/flagship inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/cloudflare/skills.git --path skills/flagship

Or copy the folder to ~/.gemini/skills/flagship yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/flagship:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/cloudflare/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/flagship &&
cp -R "$tmp/skills/flagship" ~/.copilot/skills/flagship &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/flagship inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/cloudflare/skills.git

Then copy skills/skills/flagship into your agent's skills folder as flagship. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Binding and SDK guidance
Explains when to use the Worker binding versus OpenFeature providers and the HTTP evaluation API.
Targeting and rollouts
Covers targeting rules, operators, percentage rollouts and cumulative A/B split thresholds.
Wrangler flag management
Describes creating, rolling out, splitting and toggling flags from the command line.
Local development setup
Shows how to seed local flag stores so dev servers do not return only default values.
Token and permission choices
Distinguishes account-wide and app-scoped API tokens and their Evaluate, Read and Write rights.
Debugging unexpected values
Points to evaluation reasons, error codes and the *Details methods for diagnosing flags.

Good for

  • Add a feature flag with a percentage rollout to a Cloudflare Worker
  • Set up an A/B split between two flag variants using Wrangler
  • Debug why a flag returns its default value in local development
  • Evaluate Cloudflare flags from a Python or Go service using OpenFeature
  • Review existing flag code for rule ordering and bucketing mistakes

Flagship FAQ

Do I need an API token to use the Flagship binding inside a Worker?

No. The binding authenticates automatically inside Workers and needs no API token. Outside Workers, an OpenFeature provider with an Evaluate token is used instead.

Why does my flag return its default value locally?

Local development starts with an empty flag store, so every flag returns its default until seeded. The skill suggests running wrangler flagship flags pull, creating flags with --local, or setting remote to true on the binding.

What happens when a flag is disabled?

A disabled flag always serves its default variant, regardless of targeting rules, so it works as a kill switch.

Why can the same user see different values in a rollout?

If the bucketing attribute, which defaults to targetingKey, is missing or null, each evaluation gets a random bucket. Passing the same stable identifier on every call prevents this.

How do I install Flagship in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/flagship to use it in all your projects, or to .claude/skills/flagship in one project. Or install the cloudflare plugin, which includes it: /plugin marketplace add cloudflare/skills, then /plugin install cloudflare@cloudflare.

Does Flagship run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Flagship?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Flagship?

The closest alternatives to Flagship are Artifacts, Workers best practices, Cloudflare email service, Cf CLI and Workers development.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from cloudflare/skills

  1. Guides agents in building and debugging Git-compatible versioned storage on Cloudflare

    • Open source
    • 3.5K GitHub stars
    • Developer tools
  2. Guides building, debugging and reviewing Cloudflare Agents SDK apps with the agents

    • Open source
    • 3.5K GitHub stars
    • Developer tools
  3. Guides building and troubleshooting Cloudflare Basin streaming analytics into R2 Iceberg

    • Open source
    • 3.5K GitHub stars
    • Databases
  4. Lets your agent find and run Cloudflare API and Workers commands with the cf CLI

    • Open source
    • 3.5K GitHub stars
    • Cloud and infrastructure
  5. Guides an agent to pick the right Cloudflare products and triage proxied-site HTTP errors

    • Open source
    • 3.5K GitHub stars
    • Cloud and infrastructure
  6. Gets a Cloudflare Workers app running locally with bindings, secrets and data verified

    • Open source
    • 3.5K GitHub stars
    • Cloud and infrastructure