New advertisers: 50% off your first month with code FIRSTMONTHSee slots
anthropics avatar

Plugin Settings

Documents the .claude/plugin-name.local.md pattern for per-project plugin settings stored as YAML frontmatter.

skills.sh installs
7.5K
GitHub stars
47.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers the file layout (YAML frontmatter plus a markdown body) and how hooks, commands, and agents read it
  • Includes bash parsing techniques for booleans, numbers, strings, and body text, plus examples like examples/read-settings-hook.sh
  • Enforces .gitignore entries for .claude/*.local.md and .claude/*.local.json so per-user state stays out of version control
  • Designed for plugin authors who want user-configurable behavior without editing hooks.json

Install

$ npx -y skills add anthropics/claude-plugins-official --skill plugin-settings -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

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

---
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:

---
enabled: true
strict_mode: false
max_retries: 3
notification_level: info
coordinator_session: team-leader
---

# Plugin Configuration

Details

Repository
github.com/anthropics/claude-plugins-official
Category
Skill & Plugin Building
First seen
May 16, 2026

More from anthropics/claude-plugins-official

All 23

Similar to Plugin Settings

More Skill & Plugin Building