Agent skill · Content & Marketing

plugin-settings

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.

Anthropic33,591★ · +352/wk · 2 repos on radarProfile →
claude-codeships scriptsApache-2.0
Install
npx skills add anthropics/claude-plugins-official --skill plugin-settings --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 8
SKILL.md size: 12 KB
Bundled scripts: yes
Version: 0.1.0
Path: plugins/plugin-dev/skills/plugin-settings/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 33,027 · +241 this week
Language: Python
Read our review of the source →

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Plugin Settings Pattern for Claude Code Plugins ## Overview Plugins can store user-configurable settings and state in `.claude/plugin-name.local.md` files within the project directory. This pattern uses YAML frontmatter for structured configuration and markdown content for prompts or additional context. **Key characteristics:** - File location: `.claude/plugin-name.local.md` in project root - Structure: YAML frontmatter + markdown body - Purpose: Per-project plugin configuration and state - Usage: Read from hooks, commands, and agents - Lifecycle: User-managed (not in git, should be in `.gitignore`) ## File Structure ### Basic Template ```markdown --- enabled: true setting1: value1 setting2: value2 numeric_setting: 42 list_setting: ["item1", "item2"] --- # Additional Context This markdown body can contain: - Task descriptions - Additional instructions - Prompts to feed back to Claude - Documentation or notes ``` ### Example: Plugin State File **.claude/my-plugin.local.md:** ```markdown --- enabled: true strict_mode: false max_retries: 3 notification_level: info coordinator_session: team-leader --- # Plugin Configuration This plugin is configured for standard validation mode. Cont

What's inside
Steps it walks through
  1. Overview
  2. File Structure
  3. Basic Template
  4. Example: Plugin State File
  5. Reading Settings Files
  6. From Hooks (Bash Scripts)
  7. From Commands
  8. From Agents
  9. Parsing Techniques
  10. Extract Frontmatter
  11. Read Individual Fields
  12. Read Markdown Body
  13. Common Patterns
  14. Pattern 1: Temporarily Active Hooks
Ships with 7 files
  • examples/create-settings-command.md
  • examples/example-settings.md
  • examples/read-settings-hook.sh
  • references/parsing-techniques.md
  • references/real-world-examples.md
  • scripts/parse-frontmatter.sh
  • scripts/validate-settings.sh
Commands it runs
set -euo pipefail
Define state file path
Quick exit if file doesn't exist
if [[ ! -f "$STATE_FILE" ]]; then
exit 0  # Plugin not configured, skip
fi
Parse YAML frontmatter (between --- markers)
Extract individual fields
Check if enabled
if [[ "$ENABLED" != "true" ]]; then
More from claude-plugins-official
All skills →
About this skill
What does the plugin-settings skill do?

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.

How do I install it?

Run `npx skills add anthropics/claude-plugins-official --skill plugin-settings --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From anthropics/claude-plugins-official, a repository with 33,027 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going