/pb:structurefrom pb
Where every instruction for Claude lives. Use before adding, moving or rewording any rule, skill, hook, memory, doc or CLAUDE.md line, and when asked where something goes.
Ships in pb. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Every instruction lives in git, in one place. Three sources, one job each:
| Layer | File | Loads | Mechanism |
|---|---|---|---|
| Replies | rules/replies.md | Every chat, every subagent | SessionStart, SubagentStart hooks |
| Behavior | rules/behavior.md | Same | Same |
| Code style | rules/code.md | Same | Same |
| Prose in files | rules/writing.md | Same | Same |
| Writing rules | .agents/skills/unslop/SKILL.md, third-party | Same | Same |
| Hard rules | hooks/ | Every matching action | Hook that blocks, or reports after the fact |
| Own skills | skills/<name>/SKILL.md | On demand | /pb:<name>, or description match |
| Third-party skills | .agents/skills/<name>/, installed by the skills CLI, listed in skills-lock.json | On demand | Same |
| Kind | File | Loads |
|---|---|---|
| Short fact for all work | CLAUDE.md, under 200 lines | Every chat |
| Rule for one code area | .claude/rules/<topic>.md with paths: | On reading a matching file |
| Product overview, ops notes | docs/ | When opened |
| Which library does which job | .claude/rules/libraries.md with paths: "**/package.json" | On reading a package.json |
| Procedure for this project | .claude/skills/<name>/SKILL.md | On demand |
| Rule for work outside repo files | Inside the skill that does the work | When the skill runs |
| Audit report | audit/<topic>-<date>.md, written by an audit skill, one file per run, committed | When opened |
| Task, todo, idea | The issue tracker. Never a file. |
docs/ never holds an instruction. An instruction found there moves to a rule or a skill.
Follow a project's writing and structure rule for placement inside that repo.
rules/replies.md. Prose in files: rules/writing.md.rules/behavior.md.rules/code.md.One rule can split. "SKILL.md under 500 lines" is a line in this skill and a hook that reports a breach.
Memory: Claude's automatic memory stays on. /pb:memory <what> puts something into the file that owns it, so every machine gets it.
~/.claude/CLAUDE.md, ~/.claude/skills/, ~/.claude/rules/. One machine only.CLAUDE.md.npx skills add <repo> --skill <name> -a universal --copy -y and updated with npx skills update. An edit is lost at the next update. Need a change: write an own skill.disable-model-invocation: true. Description is for a human. No other skill can call it.<name>.SKILL.md under 500 lines. A hook reports a breach. Bulk goes in references/. A third-party skill is exempt, and never edited to fit.SKILL.md says when to read each reference: "Read references/x.md before writing a hook", not "see references".| Surface | Setup |
|---|---|
| Every device, every surface | Add this repo as a marketplace on claude.ai with sync on, install pb there. Once, for the account. |
| One machine without the account route | claude plugin marketplace add https://github.com/philipbruer/skills.git, then claude plugin install pb@philipbruer-skills. |
Edit, push. claude.ai re-syncs the marketplace, and every device gets it at its next session start. Third-party skills: npx skills update in the repo, commit, push.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub philipbruer/skills --plugin pb33 skills in this plugin
/adopt-apisSweep code for local logic, abstractions, types and workarounds that its installed library versions now provide, and for newer APIs that are cleaner or faster. Adopt them however large the refactor, and prove the behavior unchanged. Use after a dependency bump, or when asked whether code follows the newest APIs, types or conventions of its libraries./animateBuild an animation from scratch, making the decisions in the order that determines whether it feels right — should it animate at all, what purpose, which tool, which properties, which curve and duration, how it interrupts, how it exits. Writes the implementation. Use when asked to animate something, add motion, make a component feel alive, or build a transition. For critiquing existing motion use review-animations; for auditing a whole codebase use improve-animations./