plugin-settings

Implements per-project plugin configuration using .claude/plugin-name.local.md files with YAML frontmatter.

16|1|Updated Mar 20, 2026
One-click install
npx skills add https://github.com/SocialGouv/iterion --skill plugin-settings-socialgouv
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: plugin-settings
Source: https://github.com/SocialGouv/iterion/tree/main/vendor/github.com/SocialGouv/claw-code-go/internal/tools/bundled_skills/plugin-dev/skills/plugin-settings
Command: npx skills add https://github.com/SocialGouv/iterion --skill plugin-settings-socialgouv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Claude Code plugins often need user-configurable behavior and persistent state, but there is no built-in settings mechanism. This Skill documents the .claude/plugin-name.local.md pattern so plugins can store per-project configuration and state in a structured, human-readable file. ## Core Features & Use Cases - Settings File Pattern: Defines a standard file structure combining YAML frontmatter for structured fields with a markdown body for prompts and context. - Bash Parsing Techniques: Provides sed, grep, and awk patterns for extracting frontmatter fields and markdown bodies from hooks, commands, and agents. - Real-World Examples: Includes working implementations from the multi-agent-swarm and ralph-loop plugins, plus validation and parsing utility scripts. - Use Case: A plugin author wants users to toggle strict validation mode per project. They create a .claude/my-plugin.local.md template, parse the enabled and strict_mode fields in a hook, and let users change behavior without editing hooks.json. ## Quick Start Ask the AI to add a configurable settings file to your plugin using the .claude/plugin-name.local.md pattern with YAML frontmatter and a hook that reads it.

Frequently Asked Questions about plugin-settings

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I store user-configurable settings for a Claude Code plugin?▼

Create a `.claude/plugin-name.local.md` file in the project root with YAML frontmatter for structured fields and a markdown body for context. Hooks and commands parse the frontmatter with sed and grep to read configuration values.

How to parse YAML frontmatter from a markdown file in bash?▼

Use `sed -n '/^---$/,/^---$/{ /^---$/d; p; }'` to extract the frontmatter block, then grep and sed to read individual fields. For the markdown body, use `awk '/^---$/{i++; next} i>=2'` to get everything after the second marker.

Do plugin settings changes require restarting Claude Code?▼

Yes, settings changes require a Claude Code restart because hooks cannot be hot-swapped within a session. Users must save the file, exit, and restart for new settings to take effect.

Should .claude plugin settings files be committed to git?▼

No, settings files use the `.local.md` suffix specifically to indicate user-local configuration. Add `.claude/*.local.md` to your `.gitignore` so per-project settings are never committed or shared between users.

How do I safely update a settings file from a hook script?▼

Use a temp file plus atomic move: write the sed-modified content to `file.tmp.$$` and then `mv` it over the original. This prevents corruption if the process is interrupted mid-write, unlike in-place sed editing.