CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

flags-sdk

Implement feature flags in Next.js or SvelteKit code with the Flags SDK (`flags` npm package). Use when installing or configuring the SDK, declaring flags with `flag()`, reading a connected same-team project's flags through Project Connections (`createVercelAdapter({ projectId })`), wiring a provider adapter (`@flags-sdk/vercel`, Statsig, LaunchDarkly, PostHog, GrowthBook, Global Config, OpenFeature, and others), using `identify`, `dedupe`, or `evaluate`, keeping pages static with precompute, setting up Flags Explorer, or encrypting flag values. For planning a flag, Vercel Flags rollouts and experiments, the `vercel flags` CLI, or other frameworks, use the `vercel-flags` skill.

Quality

95%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide
SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

92%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

A well-engineered skill body: executable workflows with state-check checklists, verification commands, and error-recovery loops; bulk API and provider detail correctly pushed to four well-signaled reference files with working anchor links. The only weakness is minor verbosity in the evaluate() rationale paragraph and the adapter version-note blockquote, which restate things the inline code comments or Claude's own knowledge already cover.

Suggestions

Trim the explanatory paragraph after the evaluate() example — the inline '// avoid:' / '// prefer:' comments already convey the tradeoff, so the prose re-explaining await/Promise.all semantics can be cut to one sentence ('evaluate() shares header/cookie/override reads and lets adapters resolve the batch in one call').

Compress the adapter version-note blockquote to the decision rule only ('prefer adapter: vercelAdapter; use vercelAdapter() when targeting flags < 4.2.0'), dropping the changelog-history aside.

DimensionReasoningScore

Conciseness

The body is predominantly lean and code-forward — e.g. the "Before you start" sections are terse conditional checks ("Is `flags` in `package.json`? → Skip install (step 1)") and the key-parameters and encryption tables are compact reference material. Two minor instances of over-explanation keep it below a 5: the `evaluate()` prose paragraph re-explains `Promise.all()` semantics Claude already knows ("`Promise.all()` runs them in parallel but evaluates each in isolation... reduces the number of parallel promises the runtime manages"), duplicating what the inline `// avoid:` / `// prefer:` comments already convey; and the version-note blockquote on `flags` 4.2.0+ adapter forms is longer than needed. Not 3: these are trims, not structural padding — the rest assumes Claude's competence and every section carries non-obvious, skill-specific information.

4 / 5

Actionability

Guidance is fully executable throughout: copy-paste install commands ("pnpm i flags @flags-sdk/vercel"), concrete CLI invocations with flags ("vercel flags create <flag-key> --kind boolean --description \"<description>\""), complete flag declarations, the Flags Explorer route file, the SvelteKit `createHandle` hook, and an explicit inspect-output-to-code mapping table ("kind → type parameter: `boolean` → `flag<boolean>`..."). The common cases — setup, creating a flag, adopting an existing flag, bulk evaluation, encryption — each have runnable code. The one snippet referencing an undefined `identify` ("Flag with another adapter") is immediately preceded by a full `identify` definition, so it is not a real gap.

5 / 5

Workflow Clarity

Multi-step flows are clearly sequenced with explicit checkpoints: both "Set up the SDK" and "Create a flag" open with state-check checklists (lockfile detection, "Does `.env.local` contain `VERCEL_OIDC_TOKEN=`?"), step 2 verifies the link with a command and conditional recovery ("Verify the link with `vercel project inspect --non-interactive`... If it reports `link_required`, run `vercel link`"), the auth-error feedback loop is documented ("local evaluation fails with an authentication error; the SDK refreshes an expired token... re-pulling is the fallback"), and the create flow branches to a separate flow when the key already exists. Destructive operations (archive/rm) are explicitly gated behind the vercel-flags skill, and secret generation has explicit do-not instructions ("do not print them to terminal output, logs, or chat"). This matches the anchor-5 pattern of checklists, validation steps, and error-recovery loops. Not 4: checkpoints are explicit and present at every decision point, not merely implied.

5 / 5

Progressive Disclosure

The body is a clear overview with core patterns inline (basic flag, evaluation context, bulk evaluation, explorer route) while bulk detail is appropriately split into four real, one-level-deep reference files, each summarized in the References section ("Detailed framework and provider guides are in separate files to keep context lean"). In-body links target specific, verified anchors (references/nextjs.md#toolbar-setup, references/providers.md#project-connections, references/api.md#evaluate, references/providers.md#custom-adapters all resolve), precompute details are deferred to framework-specific files, and no reference file nests references deeper than sibling/back links. This matches the anchor-5 pattern of well-signaled one-level-deep references with easy navigation.

5 / 5

Total

19

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

An exemplary description: third-person concrete capability statement, an explicit 'Use when' clause enumerating eight trigger scenarios by name, comprehensive natural trigger vocabulary, and explicit boundary guidance that defers dashboard/CLI/planning work to the vercel-flags skill. Its length is justified because every clause carries a distinct trigger or capability, not padding.

DimensionReasoningScore

Specificity

Quotes: "Implement feature flags in Next.js or SvelteKit code with the Flags SDK", "installing or configuring the SDK", "declaring flags with flag()", "wiring a provider adapter (@flags-sdk/vercel, Statsig, LaunchDarkly, PostHog, GrowthBook, Global Config, OpenFeature...)", "using identify, dedupe, or evaluate", "keeping pages static with precompute", "setting up Flags Explorer", "encrypting flag values". This lists multiple specific concrete actions with actual API and package names, comprehensively covering install, declaration, adapters, evaluation, static rendering, explorer, and encryption — the anchor-5 pattern. Not 4: coverage has no noticeable gaps; every clause names a distinct concrete action rather than a generic category.

5 / 5

Completeness

The 'what' is explicit up front ("Implement feature flags in Next.js or SvelteKit code with the Flags SDK (`flags` npm package)") and the 'when' is an extensive, explicit "Use when" clause with concrete trigger phrases spanning installation through encryption. This clearly matches the anchor-5 example structure (concrete capability statement + explicit 'Use when...' with trigger phrases). Not 4: the 'when' clause is not merely present but enumerates eight concrete trigger scenarios, exceeding the anchor-4 bar of 'could be more explicit or specific'.

5 / 5

Trigger Term Quality

Quotes: "feature flags", "Next.js", "SvelteKit", "Flags SDK", "flags npm package", "Statsig, LaunchDarkly, PostHog, GrowthBook", "precompute", "Flags Explorer", "identify, dedupe, or evaluate", "Vercel Flags rollouts and experiments", "vercel flags CLI". These are exactly the terms a user needing this skill would naturally say, including provider names, function names, and the SDK's own vocabulary, with synonyms covered (Flags SDK / feature flags / provider adapters). Not 4: no commonly used natural phrasing for this domain is missing from the trigger list.

5 / 5

Distinctiveness Conflict Risk

Quotes: "in Next.js or SvelteKit code", "the Flags SDK (`flags` npm package)", and the explicit carve-out "For planning a flag, Vercel Flags rollouts and experiments, the `vercel flags` CLI, or other frameworks, use the `vercel-flags` skill." The niche (code-level Flags SDK work in two named frameworks) is distinct, and the one plausible collision — the sibling vercel-flags skill — is explicitly disambiguated with negative triggers. Clear niche with distinct triggers; minimal conflict risk.

5 / 5

Total

20

/

20

Passed

Validation

81%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 13 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

metadata_field

'metadata' should map string keys to string values

Warning

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

13

/

16

Passed

Repository

vercel/vercel-plugin

Path

skills/flags-sdk/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.