Skip to content

skills: split vercel-flags out of flags-sdk - #555

Draft
vincent-derks wants to merge 4 commits into
mainfrom
vincentderks/vercel-flags-skill
Draft

vincent-derks wants to merge 4 commits into
mainfrom
vincentderks/vercel-flags-skill

Conversation

@vincent-derks

@vincent-derks vincent-derks commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Splits the single flags-sdk skill into two skills with clearly separated responsibilities.

Why

Agents pick a skill from its name and description. One description cannot match both "roll this out to 10% of users" (planning, any stack) and "wire vercelAdapter with precompute" (SDK implementation). #554 pushed flags-sdk toward planning, which also pulled Vercel-specific guidance into a skill that is meant to be provider-flexible.

What

  • New skills/vercel-flags: entry point for any feature-flag intent in any stack. Owns choosing an integration (Flags SDK, @vercel/flags-core, OpenFeature), planning a flag, the vercel flags CLI, project targeting, credentials, Flags Explorer overrides, and the @vercel/flags-core example for other frameworks. Hands Next.js and SvelteKit code work to flags-sdk. references/cli.md holds the CLI mapping and lifecycle/safety checklist moved from flags-sdk/references/providers.md.
  • skills/flags-sdk: implementation only. Tighter description, "Choose an approach" and "CLI-only flag management" removed, the "Vercel Flags" section reduced to what the adapter does, the Express example replaced by a pointer. Points to vercel-flags for planning and management while staying usable on its own.
  • Docs: the framework pages and the homepage keep installing flags-sdk only (npx skills add vercel/flags without --skill opens an interactive picker now that the repo has two skills). The Vercel provider page installs both skills with explicit --skill flags. The Vercel Flags docs on vercel.com do the reverse in a follow-up.

The descriptions still both match "add a feature flag to my Next.js app" on purpose: creating the flag on Vercel is vercel-flags work and declaring it is flags-sdk work. vercel-flags routes straight to flags-sdk when flags is already in package.json, so the extra hop only happens on a fresh project.

Skill-to-skill install references use the owner/repo@skill form already used for vercel/vercel@vercel-cli and on the homepage; the .mdx docs keep their existing --skill form.

Downstream consumers that vendor flags-sdk (vercel-plugin, Vercel Agent) need a follow-up to pick up vercel-flags and the narrowed flags-sdk, and to add a hand-off between vercel-flags and the vercel-cli skill, whose description also claims vercel flags management. Until then, an install with the old flags-sdk plus the new vercel-flags has two skills claiming the CLI.

Validation

  • node scripts/validate-skills.mjs: both skills valid (descriptions 736 and 745 chars).
  • All relative links and anchors across both skills resolve; all new docs URLs return 200.
  • @vercel/flags-core snippet checked against createRawClient.evaluate(flagKey, defaultValue?, entities?).

flags-sdk now covers only Flags SDK implementation in Next.js and SvelteKit.
The new vercel-flags skill owns planning, choosing an integration, the
vercel flags CLI, credentials, and the flag lifecycle, and hands code work
to flags-sdk.
@vercel

vercel Bot commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
flags-playground Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-dev Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-flagsmith Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-growthbook Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-launchdarkly Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-openfeature Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-posthog Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-reflag Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-snippets Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-statsig Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
flags-sdk-sveltekit-snippets Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
shirt-shop Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC
shirt-shop-api Ready Ready Preview, v0 Oct 14, 2026 9:43am UTC

Docs install both skills, the flags-core example lives only in
vercel-flags, and the provider bullet states its stack condition.
Installing without --skill opens an interactive picker now that the repo
has two skills. The SDK docs keep installing flags-sdk; the Vercel
provider page adds vercel-flags.
Fast path to flags-sdk when the SDK is already installed, third-party
rollouts stay in that provider, override is the one CLI command that
needs FLAGS_SECRET, and skill install references use the existing @ form.

This branch was successfully deployed

14 active deployments
Preview – flags-sdk-dev — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-vercel — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-openfeature — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-flagsmith — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-statsig — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-sveltekit-snippets — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-playground — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-reflag — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-launchdarkly — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-snippets — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-posthog — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – flags-sdk-growthbook — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – shirt-shop — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Preview – shirt-shop-api — 742136f3 Deployed Oct 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant