Derive a portable claim from a source graph into a target graph or the instruction tier, with association and human approval. Use when the user asks to promote a note or insight to the commons, wants to know whether something generalizes, invokes /promote, asks to derive a claim into the commons, or asks to graduate a principle into a rule (graduating an open question into a principle is the graduate skill). Triggers: promote this to the commons, does this generalize, /promote, derive this into the commons, graduate this principle to a rule.
One uniform mechanism for moving a claim out of the graph that produced it and into whatever it feeds:
any graph into the commons, or the commons into the instruction tier (~/.claude/rules/). Same flow
every time — there is no mode switch by domain, and no separate machinery for the instruction-tier case
beyond the one branch in §4.
You may be invoked at the tail of a /process run with one or more candidates already identified, mid-session
because something noticed looked commons-worthy, or directly ("/promote this insight to the commons"). All
three enter the same flow below.
Read the source graph's .commons.yml for exactly one value: graph.name. That string becomes the
domain: field on the note you write. Nothing else about the source config matters here.
The target is named by the source's promotes-to: field, unless the caller named a different target
explicitly (e.g. promoting from the commons into ~/.claude/rules/, which is a directory, not a graph — see
§4).
Refresh the target before reading any of it. Once you know which target, and before you read its config, its maps, or its notes: if it's a git repository with a remote, fetch and fast-forward — then say plainly what came in, including new attractors, new claims, new questions, and which domains they arrived from. The order is the substance here, not tidiness. §3 associates against the target's maps and checks redundancy against its existing claims, and both read whatever happens to be on disk; a refresh that runs after those reads changes nothing, because nothing re-reads. A clone a few commits behind can have gained principles, graduated the very question you were about to attach to, and already hold a near-duplicate of the claim you're deriving — none of which surfaces until the push in §6 is rejected, by which point the note is written and the association is already wrong.
A fetch that succeeds is not the same as a target that is current. Treat it as a failed refresh
whenever the local copy did not actually end up at the remote's tip: no remote, no network, no git, a
fetch error — and also a fetch that returns cleanly while the fast-forward is refused, because the local
copy has diverged or the tree is dirty. That last case is the dangerous one: git fetch exits 0, HEAD
doesn't move, and "refreshed, nothing new" is exactly what a clone missing nine commits looks like. Check
that the fast-forward actually happened, not merely that the fetch returned.
On any of those, continue — but say so. A skipped, failed, or refused refresh must never read as "the target is current." State that the association and the redundancy check ran against a possibly-stale copy, so the human weighing the proposal knows what it was weighed against. An unreported gap that looks exactly like a clean result is the failure this whole flow is built to avoid.
Then read the target's .commons.yml for everything else: type names, directories, where the atlas
and maps live.
Getting the two configs backwards is the other way this goes wrong. You are about to write into the target's world, using the target's type names and the target's directory layout. The source config exists only to answer "whose domain is this."
Write the note you would write if you were authoring fresh in the target graph — never move or modify the source note. The test that defines the operation: would this stay true and useful if its source domain vanished? Read the candidate material, strip anything specific to entities, people, tools, or events in the source domain, and check what's left. If no claim survives that strip, it doesn't promote — say so and stop, rather than force a note that needs its origin to make sense.
A few things that trip this up:
date: on claims) and set the promotion date — don't skip the field because the
source note happened not to show one.domain: is a plain string, never a link or a path. It's orchard, not [[orchard]] and not
~/orchard/graph.name.Follow the target's frontmatter and note-shape conventions exactly
(${CLAUDE_PLUGIN_ROOT}/references/graph-conventions.md): genitor, tags, the right note-type sections.
Read the target's attractor maps — the annotated entries are the distilled corpus, and reading them is the fastest way to see what the claim might connect to. Three outcomes, in order of preference:
supports: frontmatter
(attractors never carry supports: — they're what gets supported), and add a line to that
attractor's ## evidence section, with the (domain) annotation. If this is the attractor's first
evidence from a second domain, say so explicitly in the proposal — under the commons' convention that's
the line between a provisional stance and a held one, and it's worth the reader's attention.${CLAUDE_PLUGIN_ROOT}/references/graduation.md §4. A graduated question
keeps its ## question heading and its map line, so neither tells you anything. Attach to the
attractor its marker names.Never hold a first-domain claim back to wait for corroboration. Association reads the target's maps — a claim left in its home graph is invisible to every other domain's promote run, so the planted question is the only hook by which a second domain's recurrence can ever be recognized. Single-domain questions are the designed intermediate state of a receiving graph, not dilution: a question asserts nothing beyond "worth watching," and the graduation bar — not entry — is what protects the graph's authority.
Route by type. A portable lookup fact — tool behavior, a platform gotcha, something you'd search for by name — derives into the target's reference tier, not as a claim. Reference notes need no attractor and no question; the promote-vs-hold tension doesn't apply to them.
When the target is a rules directory (e.g. ~/.claude/rules/) rather than a graph — the commons graduating
a principle — the write is a rule file, not a note. Everything above still applies (derive, don't
migrate; portability test; association is "does an existing rule already cover this") with one addition:
[[links]] here) — and states how to apply it.
Same shape a human-authored rule would take. Read two or three neighboring rules for that shape and
length. If they keep only a short directive and point to fuller history elsewhere, the new rule does the
same: the short form here, and the full text where they point.chezmoi source-path <rules-dir>. If it prints a path, chezmoi manages the
directory, and that path is where the rule file goes. Name it the way its neighbors are named there,
since chezmoi encodes attributes like templating in the filename. If the command fails because the
directory isn't managed, or chezmoi isn't installed, the directory itself is the source. Say which one
you found in the proposal.Show the full derived note (or rule file), the map updates it implies, any attractor or question created or updated, and the reasoning behind the association choice. This is the gate — there is no separate boundary apparatus, no screening machinery beyond this proposal. The reader sees exactly what will land and decides.
Lean toward proposing. A declined candidate costs the reader one "skip"; a claim that never got proposed is invisible loss. When genuinely uncertain whether something generalizes, propose it and let the human sort it — that judgment call belongs to the reader, not to this skill.
Wait for explicit approval before writing anything. "Skip," "edit," and "not yet" are all valid answers.
On approval: write the note (or rule file) per the target's conventions, enter it in its map at the correct
alphabetical position (genitor), and append one line to the target's changelog.md recording the
promotion — what came in, from where, and what it now supports.
Then commit. If the target graph is a git repository, commit the promotion (the note, map updates, changelog line — name the paths, don't blanket-stage) and push if a remote exists. An uncommitted promotion is invisible to every other machine and session — the cross-domain chain this skill exists for dies in a working tree. If the push is blocked (no network, permission rule), say so plainly so the human knows the promotion hasn't left this clone.
For a rules directory, commit where the source lives. A rules directory is rarely a git repository
itself. When §4 found a chezmoi source, write the rule there, run chezmoi apply <rendered-path>, and
confirm the rendered file matches what you wrote. Then commit and push the chezmoi source repository
(chezmoi git -- add <path>, then commit and push), naming the path. Writing, applying, and
committing are one unit: a source edit left uncommitted can be overwritten by the next apply run from
another machine. When the directory is its own source and isn't in a repository, say plainly that the rule
exists only on this machine.
A rejected push means the target moved while you were writing. Pull and rebase, then push again — but read what came in before resolving anything. If the incoming commits touch what the association rests on — the question you attached to, the attractor you added evidence to, the map line you inserted — stop and re-derive rather than resolving mechanically. A conflict in a map is rarely a merge chore; it usually means the association is now wrong: the question graduated, an attractor absorbed the claim, or someone else's promotion already said this. Take it back through §3 and re-propose. Resolving by hand and pushing produces a promotion that is well-formed and pointed at the wrong thing, which is far harder to find later than the conflict was.
A question in a receiving graph is supposed to graduate once evidence from a second domain lands under it, and a promotion is the only thing that adds that evidence. So after §6 has written, committed, and pushed the promotion, check whether it just made a question ready for review.
Run this section only when all of the following hold:
${CLAUDE_PLUGIN_ROOT}/references/graduation.md.graduation.md §7 defines it. The claim you just
attached counts.Then run the review in graduation.md for that one question, in this session, while the evidence that
made it eligible is in front of the reader.
graduate skill's backlog walk will find the question later.Called from a /process promotion tail, this section runs once per promoted candidate, inside that
candidate's promote run.
A promoted note must stand alone. That's the whole test, at every step of this flow.
ddehart/claude-code-plugins
3a6e2ae
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.