Skip to main content

Plugin Components Reference

A plugin bundles components. On the plugin edit page, each component type has its own collapsible section where you add existing items or create new ones inline. This page documents every component type and its fields.

ComponentWhat it provides
SkillsMarkdown knowledge files with optional scripts, references, and assets.
ToolkitsCurated selections of tools from your MCP servers, plus prompts and resources.
CommandsSlash-commands (for example, /deploy) with typed arguments.
RulesAlways-apply or glob-scoped rules that guide agent behavior.
HooksEvent-driven automations triggered on agent lifecycle events.
Sub-AgentsDedicated agents with their own model, scope, and tool permissions.
MCP ServersExisting integrations from your organization's MCP server list.
Custom MCP ServersRaw MCP server JSON included directly in the plugin's .mcp.json.

Skills, Toolkits, and MCP Servers are added by searching your existing organization entities. Skills can also be created inline using the same fields as Create and Publish a Skill. The forms below cover the components you create directly on the plugin.

Commands

Select + in the Commands section to create a slash-command.

FieldDescription
NameDisplay name of the command.
SlugThe command invoked by the agent (for example, deploy).
DescriptionWhat the command does.
ContentThe command body.
Create Command form with Name, Description, Slug, and Content fields

Rules

Rules guide agent behavior, either always or when editing files that match a glob.

FieldDescription
NameDisplay name of the rule.
SlugURL-safe identifier.
DescriptionWhat the rule does.
Content (Markdown)The rule instructions.
Always ApplyWhen on, the rule applies to every interaction. When off, it applies only to files matching Globs.
Globs (comma-separated)File patterns that scope the rule, for example *.ts, *.tsx, src/**/*.md.
Create Rule form with Name, Slug, Description, Content Markdown field, an Always Apply toggle, and a Globs comma-separated field

Hooks

Hooks run a command in response to an agent lifecycle event.

FieldDescription
NameDisplay name of the hook.
SlugURL-safe identifier.
DescriptionWhat the hook does.
EventThe lifecycle event that triggers the hook (see below).
TypeThe hook type, such as Command.
MatcherOptional filter that narrows when the hook fires (for example, a specific tool).
CommandThe command to run when the hook fires.
Create Hook form with the Event dropdown open, listing sessionStart, sessionEnd, beforeShellExecution, afterShellExecution, beforeMCPExecution, afterMCPExecution, afterFileEdit, beforeSubmitPrompt, preCompact, stop, beforeTabFileRead, afterTabFileEdit, PreToolUse, and PostToolUse

The Event dropdown includes:

sessionStart, sessionEnd, beforeShellExecution, afterShellExecution, beforeMCPExecution, afterMCPExecution, afterFileEdit, beforeSubmitPrompt, preCompact, stop, beforeTabFileRead, afterTabFileEdit, PreToolUse, PostToolUse.

Sub-Agents

Sub-agents are dedicated agents with their own model, scope, and tool permissions.

FieldDescription
NameDisplay name of the sub-agent.
SlugURL-safe identifier.
DescriptionWhat the sub-agent is for.
InstructionsThe sub-agent's system prompt.
ScopeGlobal or Local.
ModelThe model the sub-agent runs on (for example, claude-4-opus).
EffortReasoning effort level.
MemoryMemory mode for the sub-agent.
Max TurnsCap on the number of turns the sub-agent runs.
Tools (comma-separated)Tools the sub-agent is allowed to use (for example, Read, Write, Shell).
Disallowed Tools (comma-separated)Tools the sub-agent is blocked from using.
BackgroundWhen on, the sub-agent runs in the background.
Worktree IsolationWhen on, the sub-agent runs in an isolated git worktree.
Create Sub-Agent form with Name, Slug, Description, Instructions, Scope, Model, Effort, Memory, Max Turns, Tools and Disallowed Tools fields, and Background and Worktree Isolation toggles

Custom MCP Servers

Use the Custom MCP Servers section to paste raw MCP server JSON (stdio, docker, and similar) that is included directly in the plugin's .mcp.json. Use this for servers that are not in your organization's MCP server list.

Custom MCP Servers section for adding raw MCP server JSON configurations to the plugin

What to do next

On this page