Skip to content
mcp/skillhub

Agent Skill

Plugin Settings skill

Plugin Settingsanthropics/claude-codeplugins/plugin-dev/skills/plugin-settings/SKILL.md

This skill should be used when the user asks about "plugin settings", "store plugin configuration", "user-configurable plugin", ".local.md files", "plugin state files", "read YAML frontmatter", "per-project plugin settings", or wants to make plugin behavior configurable. Documents the .claude/plugin-name.local.md pattern for storing plugin-specific configuration with YAML frontmatter and markdown content.

153k

always on

81 tokname + description

once used

3,021 tokSKILL.md body

bundled files

73 scripts

repo stars

153kGitHub

Install the Plugin Settings skill

Skills CLI (Claude Code, Codex, Cursor and others)

npx skills add https://github.com/anthropics/claude-code --skill 'Plugin Settings'

Claude Code, by hand (all projects)

git clone --depth 1 https://github.com/anthropics/claude-code.git /tmp/claude-code
mkdir -p ~/.claude/skills
cp -R /tmp/claude-code/plugins/plugin-dev/skills/plugin-settings ~/.claude/skills/plugin-settings

For one project only, copy the folder into .claude/skills/ in that project instead. The agent picks it up when a task matches its description.

What it costs your context

Agent Skills load in three steps. Tokens counted with the o200k tokenizer; your model's count will differ a little.

WhenWhat loadsCost
Every sessionName and description81 tok
When the agent uses itThe SKILL.md instructions3,021 tok
Only if opened7 bundled files (32 KB)varies

Until it is used, Plugin Settings costs about 17× less than the median MCP server we measured (1,362 tokens on every turn). Installing all 10 skills from anthropics/claude-code would load 819 tokens of descriptions. Skills vs MCP study

Checks

  • Ships scripts the agent can run. Read them before installing.
  • The instructions are over 500 lines; the specification suggests moving detail into reference files.
  • The name breaks the specification (lowercase letters, digits and single hyphens, up to 64 characters).

Checked 2026-10-22 · method

What's inside

The headings of its SKILL.md. Read the full file on GitHub.

  • Plugin Settings Pattern for Claude Code Plugins
  • Overview
  • File Structure
  • Basic Template
  • Example: Plugin State File
  • Reading Settings Files
  • From Hooks (Bash Scripts)
  • From Commands
  • From Agents
  • Parsing Techniques
  • Extract Frontmatter
  • Read Individual Fields
  • Read Markdown Body
  • Common Patterns
  • Pattern 1: Temporarily Active Hooks
  • Pattern 2: Agent State Management
  • Pattern 3: Configuration-Driven Behavior
  • Creating Settings Files
  • From Commands
  • Template Generation
  • Best Practices
  • File Naming
  • Gitignore
  • Defaults

More skills from anthropics/claude-code

All skills in this repo
  1. Agent Developmentanthropics/claude-code

    This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.

    153k180 tok idle · 2,389 in use
  2. Command Developmentanthropics/claude-code

    This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.

    153k99 tok idle · 4,170 in use
  3. Hook Developmentanthropics/claude-code

    This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.

    153k6117 tok idle · 3,853 in use
  4. MCP Integrationanthropics/claude-code

    This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context Protocol", "connect external service", mentions "${CLAUDE_PLUGIN_ROOT} with MCP", or discusses MCP server types (SSE, stdio, HTTP, WebSocket). Provides comprehensive guidance for integrating Model Context Protocol servers into Claude Code plugins for external tool and service integration.

    153k97 tok idle · 2,921 in use
  5. Plugin Structureanthropics/claude-code

    This skill should be used when the user asks to "create a plugin", "scaffold a plugin", "understand plugin structure", "organize plugin components", "set up plugin.json", "use ${CLAUDE_PLUGIN_ROOT}", "add commands/agents/skills/hooks", "configure auto-discovery", or needs guidance on plugin directory layout, manifest configuration, component organization, file naming conventions, or Claude Code plugin architecture best practices.

    153k92 tok idle · 3,110 in use
  6. Skill Developmentanthropics/claude-code

    This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.

    153k63 tok idle · 4,941 in use
  7. Writing Hookify Rulesanthropics/claude-code

    This skill should be used when the user asks to "create a hookify rule", "write a hook rule", "configure hookify", "add a hookify rule", or needs guidance on hookify rule syntax and patterns.

    153k51 tok idle · 2,188 in use
  8. claude-opus-4-5-migrationanthropics/claude-code

    Migrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5. Use when the user wants to update their codebase, prompts, or API calls to use Opus 4.5. Handles model string updates and prompt adjustments for known Opus 4.5 behavioral differences. Does NOT migrate Haiku 4.5.

    153k100 tok idle · 1,175 in use