# Built In Agent Feature Gating

> Gate built-in agents based on feature flags and entrypoint types so SDK sessions stay lean.

- **Type:** Skill
- **Install:** `agentstack add skill-ychampion-cskill-agents-built-in-agent-feature-gating`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ychampion](https://agentstack.voostack.com/s/ychampion)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ychampion](https://github.com/ychampion)
- **Source:** https://github.com/ychampion/cskill-agents/tree/main/agents/claude-code/skills/built-in-agent-feature-gating
- **Website:** https://x.com/YashasGunderia/status/2039990540016693692?s=20

## Install

```sh
agentstack add skill-ychampion-cskill-agents-built-in-agent-feature-gating
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# SKILL: Built-In Agent Feature Gating
**Domain:** agent-management
**Trigger:** Use whenever agent registration should respect CLI entrypoints, SDK toggles, or feature flags before exposing the built-in catalog.
**Source Pattern:** Distilled from reviewed built-in agent registration and feature-flagged runtime catalog implementations.

## Core Method
Check entrypoint type, environment toggles, and feature flags before adding each built-in agent to the visible registry. Different entrypoints often need different built-in surfaces: a CLI may want planning or guidance agents, while an SDK or embedded runtime may want a minimal default set. Treat special orchestration modes as their own catalog variant rather than layering them on top of the normal list. This keeps built-in agents discoverable where they belong without leaking extra helpers into every runtime surface.

## Key Rules
- Support an explicit “disable built-ins” toggle for SDK or embedded contexts that should expose a minimal surface.
- Treat coordination or orchestration modes as a separate built-in catalog rather than mixing them into the default list.
- Gate specialized built-ins behind feature flags or experiments instead of making them permanently visible.
- Keep the gating logic centralized so every entrypoint evaluates the same rules consistently.

## Example Application
Before populating the agent registry, apply these checks so an SDK session can expose no built-ins, a CLI can expose planning or guidance agents when enabled, and a coordinator runtime can swap in its own worker-oriented catalog.

## Anti-Patterns (What NOT to do)
- Don’t register all built-in agents unconditionally; ignoring entrypoints or env vars breaks SDK/CLI separation.
- Avoid hardcoding agent lists per mode; fold them into feature flags and helper functions to stay configurable.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ychampion](https://github.com/ychampion)
- **Source:** [ychampion/cskill-agents](https://github.com/ychampion/cskill-agents)
- **License:** MIT
- **Homepage:** https://x.com/YashasGunderia/status/2039990540016693692?s=20

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ychampion-cskill-agents-built-in-agent-feature-gating
- Seller: https://agentstack.voostack.com/s/ychampion
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
