Loading...
Loading...
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.
npx skill4agent add cloudflare/skills flagship| 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 |
| 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 | |
| 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 | |
| Manage flags over HTTP | API reference | Apps, flags, and flag changelog endpoints; rules live on the flag object. Update flag is a |
| 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 | |
| Plan rollouts and cleanup | Best practices, Limits | Rollout steps, flag removal order, key and context limits |
npx wrangler typesFlagshipworker-configuration.d.tsFlagshipServerProviderdefaultValueget()defaultValueResultPOST400*DetailsreasonerrorCodewrangler devcf devnpx wrangler flagship flags pull <APP_ID>--local"remote": truepull.wrangler/statewrangler devcf dev.cloudflare/state--persist-to .cloudflare/statepullcfwrangler flagship flags pullpull--persist-to--localtargetingKeynulltargetingKeywrangler flagship flags splitflags update --rulerolloutsplitrolloutsplit--force--add-rulerules updaterules deleteDatenot_equals