Plugin only agent surface gating

From ychampion/cskill-agents · View interactive version

Plugin only agent surface gating is an AI agent skill from the GitHub repository ychampion/cskill-agents. Skip agent-declared MCP servers when strict plugin-only mode is active unless the agent is admin-trusted, keeping the session secure.

How to use this skill

Skill file

SKILL: Plugin-Only Agent Surface Gating

Domain: permission-gating

Trigger: Apply this when an agent tries to extend its MCP surface while the session enforces plugin-only MCP access.

Source Pattern: Distilled from reviewed agent trust-boundary and plugin-only surface-gating implementations.

Core Method

Before connecting any agent-specific MCP servers, check whether the session is locked to plugin-only extension mode. If it is, allow the extra MCP connections only for trusted agent definitions such as built-ins or approved plugins. Untrusted or user-controlled agent definitions should continue without creating new clients, while logging the gating decision clearly. This prevents policy bypasses without breaking trusted packaged agents.

Key Rules

Example Application

When running in a highly regulated environment, reuse this heuristic before initializing agent MCP servers so only pre-approved agents can expand the MCP surface and user scripts cannot sneak new servers in.

Anti-Patterns (What NOT to do)

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.