Build, debug, or review code using Cloudflare Flagship feature flags from Workers, OpenFeature SDKs, the evaluation API, or Wrangler CLI.
Ships in flagship. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Flagship is Cloudflare's feature flag service: apps group flags, flags have typed variants and ordered targeting rules, and evaluation runs at the edge against propagated configuration. Your knowledge of the Flagship API may be outdated or missing. Prefer retrieval over pre-training: read the matching page below before writing code or commands, and treat the docs and generated types as the source of truth over this skill.
| Task | Docs | Check for |
|---|---|---|
| Understand the model | Concepts | Apps, flags, variant types, rule order, evaluation context, propagation |
| Evaluate flags in a Worker | Get started, Configuration, Binding methods, Types | Binding config, typed and *Details methods, context value types |
| Evaluate outside Workers or through OpenFeature | OpenFeature SDK, TypeScript server, TypeScript client, Python, Go, Rust | Package names, provider options, caching, minimum versions for structured context |
| Evaluate over HTTP without an SDK | Evaluation API | GET for scalar context, POST for structured context, token permissions |
| Target users or roll out gradually | Targeting rules, Operators, Percentage rollouts | Rule shape, nested attribute paths, bucketing attribute, cumulative A/B thresholds |
| Manage flags from the CLI | Wrangler commands | --rule syntax, rollout, split, enable/disable, --local, --json |
| Manage flags over HTTP | API reference | Apps, flags, and flag changelog endpoints; rules live on the flag object. Update flag is a PUT that clears omitted fields, so read the flag before writing |
| Create tokens for SDKs or automation | API tokens | Account-wide vs app-scoped tokens, Evaluate vs Read vs Write |
| Debug unexpected values | Evaluation reasons and error codes | reason and errorCode values |
| Plan rollouts and cleanup | Best practices, Limits | Rollout steps, flag removal order, key and context limits |
For the full page list, read Flagship llms.txt. After adding a binding, run npx wrangler types and read the Flagship declarations in the generated worker-configuration.d.ts; they match the installed Wrangler version.
These follow from the pages above and are the usual causes of flags that look broken but are working as documented.
FlagshipServerProvider. Do not ship the TypeScript client provider in public-facing apps: it requires an API token that would be visible in client code.defaultValue for known failures such as a missing flag, type mismatch, or invalid context. Unexpected runtime failures can still throw, and get() without a defaultValue throws on known failures. Other clients differ: the Rust SDK returns a Result, and the evaluation API POST returns 400 for invalid context. Pick a default that is the safe, existing behavior, and use the matching *Details method to see reason and errorCode when a value looks wrong.wrangler dev, the Vite plugin, the Vitest integration, and cf dev evaluate against a local store, so every flag returns its default until you seed it. Run npx wrangler flagship flags pull <APP_ID>, create flags with --local, or set "remote": true on the binding. pull overwrites local flags with matching keys and writes to .wrangler/state, which wrangler dev and the Vite plugin 1.x use. cf dev and the Vite plugin 2.0 use .cloudflare/state, so for them pass --persist-to .cloudflare/state to pull, or every flag still returns its default. cf cannot copy flags from the remote app, so seed it with wrangler flagship flags pull. On flag commands other than pull, --persist-to requires --local. Check Configuration for the minimum tool versions.targetingKey. If it is missing or null, each evaluation gets a random bucket, so the same user can flip between values. Pass the same stable identifier under the same attribute name on every call, and use targetingKey with OpenFeature SDKs.wrangler flagship flags split, which calculates them.flags update --rule, rollout, and split replace every rule. rollout and split overwrite the flag's entire rule set with the rules they generate, and prompt first only when existing rules have conditions; --force skips the prompt. Use --add-rule to append, or rules update and rules delete to change one rule by priority. Wrangler commands take the app ID as an argument and do not read it from the Worker binding.Date values to ISO 8601 strings for the binding in TypeScript. A condition whose attribute is absent from the context never matches, including with negative operators such as not_equals. Evaluate a flag once per request and reuse the value instead of calling it in a loop.If the user reports that this skill gave incorrect or outdated guidance, or is missing information, read references/skill-feedback.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/flagship:flagshipfrom flagship
flagship@filippo-skills is listed by filippolmt/skills — review the source before installing
npx claudepluginhub filippolmt/skills --plugin flagship2 plugins in one repository ship this exact skill · first indexed Nov 24, 2026
Other plugins' skills for the same job