Plugin Settings Pattern
A skill documenting the `.claude/plugin-name.local.md` convention for storing and reading per-project Claude Code plugin configuration.
Dev & CodingIntermediate★ 527⑂ 47AI score 9/10Last updated: Aug 28, 2026
What it does
- Explains the
.claude/plugin-name.local.mdconvention (YAML frontmatter + markdown body) for per-project plugin config and state. - Gives copy-paste snippets for reading settings from bash hooks, slash commands, and agents.
- Includes parsing recipes with
sed/awk/grep, default-value handling, value validation, and the quick-exit pattern when the file is missing. - Covers safety rules:
.gitignoreentries, path-traversal checks, escaping user input,chmod 600, and the fact that setting changes require a Claude Code restart.
Who it's for
- Developers building Claude Code plugins, hooks, or sub-agents.
- Anyone who wants toggles, modes, or limits that differ per project.
- Teams tracking multi-agent state (task number, coordinator session) in files.
Examples
- Add an
enabled: true/falseflag to a security-scan hook so it can be toggled without editing hooks.json. - Read
validation_level: strict|standard|lenientto apply different validation strictness per repository. - Store
iteration,max_iterations, andcompletion_promise, then feed the markdown body back as the next prompt in a ralph-style loop.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/tzachbon/smart-ralph/HEAD/.agents/skills/Plugin Settings/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the .agents/skills/Plugin Settings folder from the GitHub repo tzachbon/smart-ralph into my ~/.claude/skills/plugin-settings/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/tzachbon/smart-ralph.git /tmp/smart-ralph && mkdir -p ~/.claude/skills/plugin-settings && cp -r "/tmp/smart-ralph/.agents/skills/Plugin Settings/." ~/.claude/skills/plugin-settings/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal and clone the repo:
git clone https://github.com/tzachbon/smart-ralph.git /tmp/smart-ralph - Create the skill folder:
mkdir -p ~/.claude/skills/plugin-settings - Copy the files:
cp -r "/tmp/smart-ralph/.agents/skills/Plugin Settings/." ~/.claude/skills/plugin-settings/ - Verify with
ls ~/.claude/skills/plugin-settings— you should seeSKILL.mdplusexamples/,references/, andscripts/. - Restart Claude Code, then ask something like "explain the plugin settings pattern" or "write a hook that reads my .local.md settings".
- When you create real settings files, add
.claude/*.local.mdto your project's.gitignore.
View source on GitHub ↗License: MIT