/doc-mirror:doc-mirror-changefrom doc-mirror
WHAT: change ONE module -- read its full boundary, make the change, re-derive its doc(m), doc-mirror-commit with an ORIGIN, run closure, graduate the realized vision(m) -> doc(m). WHEN: a specific module changed or has code/doc to write -- after seework picks a code gap, or after a prompt produced an artifact to verify and commit.
Ships in doc-mirror. 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.
You are in the change state. A module changed (or you are about to change one). This state makes the
change correctly and keeps the mirror honest. It operates under THE LAW (the doc-mirror skill — the
doc(m) template, deterministic addressing, the closure test, and FORK-ON-CHANGE). Read THE LAW's doc(m)
template and fork-on-change section if you don't have them in context.
stateDiagram-v2
[*] --> S_boundary: R — read the ENTIRE module + its doc(m) + every caller in the chain (no guessing)
S_boundary --> MODE
state MODE <<choice>>
MODE --> T_prompt: [USING-mode on a target repo: you are commander -> cursor=prompt ; call doc-mirror-prompts]
MODE --> S_edit: [BUILDING the system itself, WITH Isaac: author directly]
S_edit --> S_rederive: re-derive doc(m) at docs/mirror/<relpath>.md (what the code now IS)
S_rederive --> S_commit: doc-mirror-commit <m> "<what>" "<why>" "<ORIGIN: vision it realizes / bug it fixes>"
S_commit --> CHECK
state CHECK <<choice>>
CHECK --> S_graduate: [closure passes: doc(m)<->module biject; ORIGIN cited]
CHECK --> S_gap: [commit REFUSED: doc not re-derived, or no ORIGIN]
S_gap --> S_rederive
S_graduate --> [*]: the realized idea GRADUATES vision(m) -> doc(m); journal; advance cursor -> seework
S_boundary — get the complete operational boundary in ONE read. Read the ENTIRE module + its
current doc(m) + every caller in the dependency chain. No guessing, no progressive edits while
gathering context (rules: complete-operational-boundary-before-edit, read-entire-file-before-any-change).
MODE — who makes the change.
doc-mirror-prompts to dispatch an agent against a prompt-file, then VERIFY
the artifact yourself (the report is a claim, not proof). You return here to re-derive + commit.S_rederive — re-derive doc(m) at docs/mirror/<relpath>.md = what the code NOW IS (bump
**Last derived:**). A fix is a re-derivation of the doc(m), NEVER a standalone fix/investigation doc.
S_commit — doc-mirror-commit <m> "<what>" "<why>" "<ORIGIN>". The helper stages m +
docs/mirror/<m>.md, rolls up your journal lines since the last commit into the body, and REFUSES a
code change whose doc wasn't re-derived OR that cites no ORIGIN (a vision it realizes / a bug it fixes).
A refusal is the CHECK failing → fix the gap, re-commit.
S_graduate — closure + graduation. Closure passes (doc(m)↔module biject; ORIGIN cited) → the
realized idea GRADUATES out of vision(m) into doc(m) (it's built now). journal the decision.
doc(m) did not exist before), also graduate its design
IN from the mega-topic by tag: vision graduate <relpath> --from <topic> --by-tags <component> —
the design vision sorts out of the mega into the new module's vision(m) (lossless; see THE LAW's
"VISION IS MEGA PRE-MODULE, THEN GRADUATES BY TAG").Now that I've read doc-mirror-change, I will get the COMPLETE boundary of {{module}} (entire module +
its doc(m) + every caller) in one read. Then: if I'm in USING-mode I docmirror-cursor set --phase prompt
and call doc-mirror-prompts to dispatch the change (then verify the artifact myself and return); if I'm
BUILDING the system WITH Isaac I author the change directly. Then I re-derive doc(m), run doc-mirror-commit <m> "<what>" "<why>" "<ORIGIN>", and if it refuses I fix the gap and re-commit. On closure pass the idea
GRADUATES vision(m) → doc(m); I journal the why, docmirror-cursor set --phase seework, and call
doc-mirror-seework. If I cannot make the change correctly (architecture fork / irreversible / needs
Isaac): I journal -t OPEN "<fork + why>", docmirror-cursor set --phase open, and docmirror-sleep.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sancovp/doc-mirror --plugin doc-mirror13 skills in this plugin
/check-sophia-progressWHAT: check the live status of the Sophia rollup / cohere worker — is the daemon running, how far BEHIND it is (how many journals not yet cohered / the lag between newest journal and newest momentum), and how many issues meta-Sophia has flagged. WHEN: when you want to know if Sophia is running + caught up, when a rehydration or decided-logic query looks stale, when you suspect the rollup died, or when the user asks 'is sophia running / caught up / how far behind / how many meta issues' (any of)./distill-to-essential-transformWHAT: a thinking move -- collapse a complex system to its one-sentence ESSENTIAL TRANSFORM (input->output->artifact) and rebuild it at the LOWEST sufficient mechanism, borrowing reliability from a substrate you do not own. WHEN: a system feels too heavy/fragile to depend on; a built thing was forgotten but its function keeps recurring; turning a system into a util/skill; user says distill / collapse / simplify / 'what does this actually do' / 'make it just instructions'./doc-mirrorWHAT: THE LAW of doc-mirror -- the 4 legal doc-layer file kinds, deterministic addressing, the doc(m) template, the closure test, fork-on-change. The invariant every state operates under. WHEN: you need the rule for what a doc(m)/vision(m)/journal/tracker IS or where it lives; classifying a doc-layer file; unsure whether an action is legal in the machine.Other plugins' skills for the same job