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()`, setting up Project Connections, wiring a provider adapter (`@flags-sdk/vercel`, Statsig, LaunchDarkly, PostHog, GrowthBook, Global Config, OpenFeature, Split, Flagsmith, Reflag, Optimizely, or custom), using `identify`, `dedupe`, or `evaluate`, keeping pages static with precompute, setting up Flags Explorer and the Vercel Toolbar, or encrypting flag values. Triggers: `flags/next`, `flags/sveltekit`, `flags/react`, `@flags-sdk/*`, `vercelAdapter`, precompute. For planning a flag, for Vercel Flags rollouts, experiments, and the `vercel flags` CLI, or for other frameworks, use the `vercel-flags` skill.

Quality

97%

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

The canonical home for this skill is flags-sdk in vercel/vercel-plugin

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.

The body is a well-structured operational guide: copy-paste-ready commands and code, sequenced setup flows with pre-flight checklists, verification steps and error-recovery loops, and a clean one-level-deep reference split that was verified against the actual bundle. The only deduction is minor verbosity — a redundant `Promise.all` explanation and version-number notes outside a deprecated section.

Suggestions

Trim the bulk-evaluation prose paragraph: the annotated avoid/avoid/prefer code block already carries the point, so one sentence on shared batch work ('evaluate() pre-reads headers, cookies, and overrides once per batch') would suffice.

Consolidate version-sensitive guidance (the `flags` 4.2.0+ adapter-factory note and the `@flags-sdk/vercel` 1.6.0 minimum) into a single clearly-labeled version-compatibility note so it reads as compatibility guidance rather than inlined version history.

DimensionReasoningScore

Conciseness

The body is lean overall — no generic feature-flag primer, dense tables, detail pushed to references — but the bulk-evaluation paragraph ("Awaiting flags one at a time makes total latency the sum of every flag's evaluation... while `Promise.all()` runs them in parallel but evaluates each in isolation") re-explains `Promise.all`, a concept Claude already knows, and restates the annotated code block. Version-sensitive specifics ("`flags` 4.2.0+", "Use `@flags-sdk/vercel` version 1.6.0 or later") sit in a general note rather than an old-patterns/deprecated section, which the guidelines penalize. Minor trimmable instances, so 4 rather than 5, but well above the some-unnecessary-explanation level of 3.

4 / 5

Actionability

Fully executable throughout: `pnpm i flags @flags-sdk/vercel`, `vercel flags create <flag-key> --kind boolean --description "<description>"`, `vercel project inspect --non-interactive`, complete flag-declaration and page-usage snippets, the Flags Explorer route, SvelteKit `createHandle`, and both `evaluate` call shapes with the request-argument variant. Copy-paste ready commands and code cover the common cases, matching the 5 anchor.

5 / 5

Workflow Clarity

Multi-step flows (Set up the SDK, Create a flag, Add an existing flag) each have a "Before you start" pre-flight checklist, explicit validation with a failure branch ("If it reports `link_required`, run `vercel link`"), an auth-error recovery loop ("local evaluation fails with an authentication error... re-pulling is the fallback"), ordering constraints ("Do this only after `flags.ts` exists"), and destructive archive/delete operations fenced off to the sibling skill — explicit checkpoints, feedback loops, and checklists per the 5 anchor.

5 / 5

Progressive Disclosure

Verified against the actual bundle: all four referenced files exist (nextjs.md, sveltekit.md, providers.md, api.md), every anchor cited in the body resolves to a real heading (Toolbar Setup, Project Connections, Vercel, User targeting, Attribute types, Custom Adapters, `evaluate`), no reference file points to another file (one level deep), and each has its own table of contents. The body keeps overview plus common flows while ~1900 lines of framework/provider/API detail live in references, with a closing References section summarizing each file's scope — a clear match for the 5 anchor.

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.

The description is a model example: concrete third-person capability list, an explicit "Use when" clause plus a dedicated triggers line with import specifiers, and an explicit routing boundary to the sibling `vercel-flags` skill. Every dimension sits at its top anchor without padding or over-claiming.

DimensionReasoningScore

Specificity

Enumerates the skill's full action surface with concrete, package-anchored verbs — "installing or configuring the SDK, declaring flags with `flag()`, setting up Project Connections, wiring a provider adapter (`@flags-sdk/vercel`, Statsig, LaunchDarkly...), using `identify`, `dedupe`, or `evaluate`, keeping pages static with precompute, setting up Flags Explorer and the Vercel Toolbar, or encrypting flag values" — matching the comprehensive-coverage anchor, not the minor-gaps anchor at 4. Third-person voice throughout, so no voice penalty applies.

5 / 5

Completeness

Explicitly answers what ("Implement feature flags in Next.js or SvelteKit code with the Flags SDK (`flags` npm package)") and when ("Use when installing or configuring the SDK..." plus a concrete "Triggers:" line) — a textbook match for the both-what-and-when-with-trigger-phrases anchor at 5.

5 / 5

Trigger Term Quality

A dedicated "Triggers: `flags/next`, `flags/sveltekit`, `flags/react`, `@flags-sdk/*`, `vercelAdapter`, precompute" line plus natural terms users would actually say ("feature flags", "Next.js", "SvelteKit", every provider name, "Flags Explorer", "Vercel Toolbar"); the import specifiers play the role of file extensions in the top anchor. Terms like rollouts/experiments appear but are intentionally routed to the sibling skill, so nothing a target user would say is missing.

5 / 5

Distinctiveness Conflict Risk

Clear niche (code-level Flags SDK usage in Next.js/SvelteKit with named packages) with an explicit boundary against the closest sibling: "For planning a flag, for Vercel Flags rollouts, experiments, and the `vercel flags` CLI, or for other frameworks, use the `vercel-flags` skill." Minimal conflict risk, matching the 5 anchor.

5 / 5

Total

20

/

20

Passed

Validation

100%

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

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

vercel/vercel-plugin

Path

skills/flags-sdk/upstream/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.