/ballast:pinfrom ballast
Converts user corrections and working preferences into permanent ballast rules for Claude Code. Helps classify incident types and extract rule entries with keywords/patterns.
Ships in ballast. 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.
A correction that lives only in the conversation dies with the conversation. Pinning it writes it into the ballast rule catalog, so the rules hook delivers it with every future message it applies to.
Before writing the rule, name which net failed — the remedy differs by type:
patterns, not just keywordsThe last two are worth separating from the first: they happen with the rule already in view, so better delivery does not reduce them. One clause in the entry's parenthetical is enough ("propagation miss: fixed README, missed plugin.json"). An apology without a classification fixes nothing. These six types are one owner's working taxonomy, and it grew — it started at four. When an incident fits none of them, that's the next type worth naming.
Extract the rule. One imperative sentence, at most two. The user's own wording beats your paraphrase. If the correction references a specific incident, keep the incident as a short parenthetical — future-you needs the why.
Propose the entry in one compact block and ask nothing else:
id: short kebab-casetitle: a few words — this is the label shown when the rule is injectedwhen.keywords: 4–8 keywords likely to appear in future messages where this rule matters (case-insensitive substring match) — in the language(s) the user actually types. Too-generic keywords ("please", "make") spam every turn; too-narrow ones never fire. For shapes keywords can't catch, add when.patterns (regex, case-insensitive). when.always: true fires on every message — reserve it for 1–2 rules at most.body: the rule textaction: omit it (inject is the default) or "block" if the user wants matching requests stopped outrightExample entry, exactly as it will sit in the catalog:
{
"id": "cost-gate",
"title": "Estimate before spending",
"when": { "keywords": ["generate", "credits", "batch"] },
"body": "Anything that spends money or credits: present an estimate and get explicit approval BEFORE executing. No exceptions for small amounts — the habit is the point."
}
On the user's OK (a plain "yes/좋아/그래" is enough), merge it into <project>/.claude/ballast.rules.json — or ~/.claude/ballast.rules.json when the rule is about how the user works everywhere, not just this project. Create the file with {"version": 1, "rules": []} if missing; if an entry with the same id exists, update its body and say what changed instead of duplicating.
Confirm in one line: "Pinned <id> — it now arrives with every matching message." Nothing more.
~/.claude/ballast.rules.json; rules about this project stay in the project. Ask only when it's genuinely ambiguous.action: "block" for irreversible or costly actions; style preferences are injections.Part of ballast — foundations first, every solved path kept, done means checks pass.
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/brain-initScaffold a file-based memory system (index, decision ledger, open questions, session log, optional product truth file) so a project can serve as a durable second brain. Use when the user wants to set up memory, an external brain, or the ballast structure in a project./checkpointMaintain a thirty-second return point (CHECKPOINT.md) and a single-use handoff (HANDOFF.md) so any session can resume mid-goal without archaeology. Use when a large unit of work finishes, a session enters its closing stretch, when leaving instructions for the next session, or when resuming and the user asks where things stand./decision-ledgerMaintain an append-only decision ledger (DECISIONS.md). Use when the user confirms a decision, reverses or changes a past decision, asks what was decided and why, or at session start to load standing decisions./doctorHealth check for the ballast installation — is the hook alive, are the catalogs sane, is anything silently dead. Use when rules stop arriving, the session-start line is missing, the user asks "is ballast working", or after an update or reinstall./goalRun a large or unfamiliar goal through the full ballast pipeline — mobilize what you already hold, terrain scan, full skeleton, atomic foundation learning with verification, then build from bedrock to a verified done. Use when the user hands over a big goal, enters a new field, or asks to learn X in order to achieve Y./knowledge-baseKeep verified findings in memory/knowledge/ so the same research is never done twice. Use before researching any topic, when a finding passes the verify gate, or when about to answer from something learned in an earlier session.npx claudepluginhub svy04/ballast --plugin ballastOther plugins' skills for the same job