How to add or modify Next.js experimental feature flags end-to-end. Use when editing config-shared.ts, config-schema.ts, define-env-plugin.ts, next-server.ts, export/worker.ts, or module.compiled.js. Covers type declaration, zod schema, build-time injection, runtime env plumbing, and the decision between runtime env-var branching vs separate bundle variants.
$npx -y skills add vercel/next.js --skill flagsInstalls into the current project.
Run `npx skills use "https://github.com/vercel/next.js" --skill "vercel/next.js/flags"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/vercel/next.js" that are relevant to the current task. Run `npx skills add "https://github.com/vercel/next.js"` and select the relevant skills, then follow their instructions.