Plugin Settings

Installation
Summary

Per-project plugin configuration stored in YAML frontmatter and markdown files within the .claude/ directory.

  • Settings files use .claude/plugin-name.local.md format with YAML frontmatter for structured config and markdown body for additional context or prompts
  • Hooks, commands, and agents can read settings to customize behavior; quick-exit pattern checks file existence and enabled flag to skip when not configured
  • Parsing techniques provided for extracting individual fields (strings, booleans, numerics) and markdown body content using standard bash tools
  • Common patterns include toggling hook activation, managing agent state and coordination, and configuration-driven behavior with validation and sensible defaults
  • Settings changes require Claude Code restart; files should be gitignored and never committed to version control
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

---
Related skills

More from anthropics/claude-code

Installs
GitHub Stars
122.7K
First Seen