Skip to content
Kitbay
Skill

flags

MITUpdated on Nov 11, 2026143,470GitHub stars

A maintainer skill in the Next.js repository for adding or changing an experimental feature flag from end to end.

What the skill teaches

A maintainer skill in the Next.js repository for adding or changing an experimental feature flag from end to end. The agent declares the flag's type and its zod schema entry, then decides how it is read: code bundled by the user's project needs it in the define-env file, while the framework's prebuilt runtime bundles need either a real environment variable set by the server and export worker, or a separate bundle variant with its own define plugin entry, build tasks and selector. It explains how the runtime picks among up to sixteen bundle variants per route type, and warns that define entries scoped to the wrong bundle type can overwrite assignments in the server code.

Capabilities

Not stated in its documentation