Flags
vercel/next.js
How to add or modify Next.js experimental feature flags end-to-end.
Creating and using feature flags in sidecar for gating experimental functionality.
$ npx skills add marcus/sidecar --skill feature-flags -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install marcus/sidecar feature-flags --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/feature-flags .claude/skills/feature-flags && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .claude/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flagsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add marcus/sidecar --skill feature-flags -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install marcus/sidecar feature-flags --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/feature-flags .agents/skills/feature-flags && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .agents/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add marcus/sidecar --skill feature-flags -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install marcus/sidecar feature-flags --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/feature-flags .cursor/skills/feature-flags && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .cursor/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/marcus/sidecar.git --path .claude/skills/feature-flags--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add marcus/sidecar --skill feature-flags -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install marcus/sidecar feature-flags --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/feature-flags .gemini/skills/feature-flags && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .gemini/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install marcus/sidecar feature-flagsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add marcus/sidecar --skill feature-flags -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/feature-flags .github/skills/feature-flags && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .github/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add marcus/sidecar --skill feature-flags -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install marcus/sidecar feature-flags --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/marcus/sidecar.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/feature-flags .opencode/skills/feature-flags && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "feature-flags" agent skill from https://github.com/marcus/sidecar/tree/main/.claude/skills/feature-flags into .opencode/skills/feature-flags/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "feature-flags", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
feature-flagsCreating and using feature flags in sidecar for gating experimental functionality.
Feature Flags is an agent skill from marcus/sidecar. Creating and using feature flags in sidecar for gating experimental functionality. Covers flag registration, checking flags in code, config file and CLI overrides, and priority resolution. Use when adding feature flags, toggling features, or gating new functionality behind flags.
Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
The repository describes itself as: Use sidecar next to CLI agents for diffs, file trees, conversation history, and task management with td. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 2a2978a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are go, json and bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Feature Flags loads about 1.3k tokens when it runs. Until then it costs about 74 tokens; SKILL.md has 440 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from marcus/sidecar at commit 2a2978a, republished under its MIT licence (© marcus). 440 words, ~1,275 tokens.
.claude/skills/feature-flags/SKILL.md (or your agent's skills folder).Feature flags gate experimental functionality behind user-configurable settings, enabling safe rollout (default off), user opt-in, and easy rollback.
import "github.com/marcus/sidecar/internal/features"
if features.IsEnabled("tmux_interactive_input") {
// Feature-gated code
}internal/features/features.go:var MyNewFeature = Feature{
Name: "my_new_feature",
Default: false,
Description: "Description of what this enables",
}allFeatures slice:var allFeatures = []Feature{
TmuxInteractiveInput,
MyNewFeature, // Add here
}if features.IsEnabled("my_new_feature") {
// New functionality
}That is all a flag needs to be reachable. Configuration → System → Feature
Flags derives its list from features.ListAll(), so registering a feature
puts a working switch on the page with the registry's own Name as the label
and Description as the help text. There is no second list to remember.
previewCopy in internal/configui/page_flags.go overrides the registry's
wording per flag. Only fill in what you want to change:
features.MyNewFeature.Name: {
label: "Human-readable name",
help: "One sentence on what turning this on does.",
restart: true, // only if a consumer reads it once at startup
note: "An honest scope line for a flag that applies live but not retroactively.",
},restart must be checked against what actually consumes the flag, never added
as blanket caution — a flag read at the point of use applies immediately and
must not claim otherwise. Both restart and note render when both are set.
A flag that another page already owns as a first-class setting sets owner
and ownerControl instead. It is then listed read-only with a jump to the
control that owns it, because two switches over one value is how surfaces start
disagreeing. If the owning page's control means more than the raw flag — Panels'
Conversations switch is the flag and the plugin's own enabled key — also set
reads so the row reports the owner's answer rather than the flag's.
Keep the page shorter than a small terminal. The Configuration detail pane
truncates rather than scrolling, and the row cursor still walks onto rows that
were cut. Rows are one line each with the explanation shown only under the
focused row for that reason; TestFlagsPageFitsAnOrdinaryTerminal guards it.
~/.config/sidecar/config.json){
"features": {
"flags": {
"tmux_interactive_input": true
}
}
}sidecar --enable-feature=tmux_interactive_input
sidecar --disable-feature=tmux_interactive_input
sidecar --enable-feature=feature1,feature2 # Multiple featuresUnknown feature names in CLI flags produce a warning but do not prevent startup.
Feature state resolves in this order (first match wins):
--enable-feature, --disable-feature)features.flags in config.json)| Feature | Default | Description |
|---|---|---|
tmux_interactive_input | true | Write support for tmux panes |
tmux_full_attach | false | Suspend Sidecar and tmux attach-session |
tmux_inline_edit | true | Inline file editing via tmux in files plugin |
notes_plugin | true | Project Notes while the td panel is enabled |
tasks_plugin | false | Embedded Tasks plugin tab |
conversations_plugin | false | Conversations multi-agent history tab (off = no adapters / session I/O) |
workspace_terminal_panel | true | Workspace Ctrl+T / Alt+T split terminal panel |
features.IsEnabled(name string) bool // Check if enabled
features.List() map[string]bool // All features with current state
features.ListAll() []Feature // All features with metadata
features.SetEnabled(name string, enabled bool) error // Persist to config
features.SetOverride(name string, enabled bool) // Runtime override (not persisted)
features.IsKnownFeature(name string) bool // Check if registeredsnake_case for feature names (e.g., my_new_feature)falsedocs/guides/deprecated/feature-flags.md when adding them© marcus, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/feature-flags of marcus/sidecar.
Open the folder on GitHubat commit 2a2978a
Feature Flags next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Feature Flags this skillmarcus/sidecar | 1.1k | — | ~1.3k | Automated safety check: Pass | MIT | |
| Flagsvercel/next.js | 143k | — | ~746 | Automated safety check: Pass | MIT | |
| Gate Testsvercel/next.js | 143k | — | ~2.7k | Automated safety check: Pass | MIT | |
| Feature Flagsgetsentry/sentry | 46k | — | ~374 | Automated safety check: Pass | Custom licence | |
| Gateplugin87/ux-ui-agent-skills | 1.6k | — | ~532 | Automated safety check: Pass | MIT | |
| Setting Feature Flags In StorybookPostHog/posthog | 40k | — | ~1.1k | Automated safety check: Pass | Custom licence |
vercel/next.js
How to add or modify Next.js experimental feature flags end-to-end.
vercel/next.js
How to use the @gate / @force-gate test directives instead of it.skip or fake-green skip patterns.
getsentry/sentry
Gate a Sentry feature behind a FlagPole feature flag. An agent skill from getsentry/sentry.
plugin87/ux-ui-agent-skills
Run the one-command quality gate and report the real N/N result.
PostHog/posthog
A skill your agent uses when writing a Storybook story for a component gated on a feature flag — boolean flags or multivariate/experiment-arm variants.
garrytan/gbrain
Pre-write quality gate for content entering the brain. An agent skill from garrytan/gbrain.
marcus/sidecar
Create conversation adapters for importing AI chat history from different tools (Claude Code, Cursor, Warp, Codex, etc.).
marcus/sidecar
Create declarative modals using the modal library API. An agent skill from marcus/sidecar.
marcus/sidecar
Create new sidecar plugins implementing the plugin.Plugin interface, rendering views with Bubble Tea, handling keyboard input via keymap contexts, and integrating with the app shell (footer hints…
marcus/sidecar
Project switching implementation in sidecar: project discovery, state management, UI flow, modal rendering, filtering, theme preview, and plugin reinitialization.
marcus/sidecar
Interactive shell/TTY integration with tmux session management, shell command execution, control-mode output capture with polling fallback, native cursor rendering, lazy scrollback, selection, paste…
marcus/sidecar
Writing and maintaining the Sidecar Docusaurus documentation site, including page structure, doc authoring, blog posts, styling, images, and deployment workflow.
Creating and using feature flags in sidecar for gating experimental functionality. Feature Flags is an agent skill from marcus/sidecar. Creating and using feature flags in sidecar for gating experimental functionality.
Feature Flags fits situations like: adding feature flags; toggling features; gating new functionality behind flags.
Run `npx skills add marcus/sidecar --skill feature-flags -a claude-code`. Or copy the skill folder (.claude/skills/feature-flags in marcus/sidecar) into .claude/skills/feature-flags in your project. Claude Code loads it when a task matches its description.
Run `npx skills add marcus/sidecar --skill feature-flags -a codex`. Or copy the skill folder (.claude/skills/feature-flags in marcus/sidecar) into .agents/skills/feature-flags in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add marcus/sidecar --skill feature-flags -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/feature-flags, .gemini/skills/feature-flags, .github/skills/feature-flags and .opencode/skills/feature-flags in your project.
SKILL.md names no scripts, command-line tools or credentials: Feature Flags is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Feature Flags is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Feature Flags: Flags (vercel/next.js, 143k stars), Gate Tests (vercel/next.js, 143k stars), Feature Flags (getsentry/sentry, 46k stars) and Gate (plugin87/ux-ui-agent-skills, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
marcus (a GitHub user) maintains it in marcus/sidecar, which has 1,086 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 8, 2026.
Source: marcus/sidecar on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.