/doc-mirror:doc-mirror-seeworkfrom doc-mirror
WHAT: the backlog dispatcher -- read the vision-minus-impl gap, take the next tracker pointer, route to the state that does it. WHEN: deciding what to do next / 'what needs doing?' -- after init, after a change lands, after a prompt task finishes, or right after boot when the cursor names no pending module.
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 seework state. This is the dispatcher: it does no code/doc work itself — it reads the
backlog VIEW, picks the next gap from your prioritized plan, and transitions to the state that does it
(change, prompt, or init). Operates under THE LAW (the doc-mirror skill).
stateDiagram-v2
[*] --> R_view: R — the BACKLOG = the VIEW: vision stats (gaps by project) -> vision project <p> -> vision diff <m>
R_view --> PLANNED
state PLANNED <<choice>>
PLANNED --> S_pick: [a prioritized PLAN exists in the tracker -> take its next pointer]
PLANNED --> S_plan: [no plan yet -> PRIORITIZE the gaps (judgment) -> `tracker add <vision-ref>` = write ordered pointers into vision gaps]
S_plan --> S_pick
S_pick --> RECONCILE
state RECONCILE <<choice>>
RECONCILE --> T_change: [pointer's gap is code/doc to write -> cursor=change ; call doc-mirror-change]
RECONCILE --> T_prompt: [pointer's gap needs an agent task -> cursor=prompt ; call doc-mirror-prompts]
RECONCILE --> T_init: [pointer is an unmirrored repo -> cursor=init ; call doc-mirror-init]
RECONCILE --> S_strike: [pointer's gap CLOSED (realized → left vision) -> `tracker strike <ref>` drops the pointer, re-view]
RECONCILE --> WAIT_idle:[view shows no gaps for the active repo -> idle]
S_strike --> R_view
The VIEW is the always-true backlog, DERIVED from vision(m) − doc(m) — you never write it; you read
it with the vision CLI:
vision stats — gaps by project (where the work is).vision project <p> / vision <tag> — the gaps for one project/tag.vision diff <m> — for module m, exactly what is in vision(m) but not yet in doc(m) = NOT-yet-built.The progress-tracker is the MANUAL prioritized PLAN = an ordered list of POINTERS into vision gaps
(you author it because priority is a judgment call). It is a CLI-ONLY managed file — you NEVER hand-edit
it; the tracker CLI is its actuator (tracker add <ref> / tracker strike <ref> for the PLAN;
tracker register/tracker active <repo> for the ROOT REPO ORDER router — tracker show to read it).
Because it is pointers, the view RECONCILES it (plan check): a pointer whose gap is now closed = done
(tracker strike it); a gap with no pointer = un-planned backlog. So the tracker is manual to write
(via the CLI) but mechanically auditable — it can never silently go stale.
Routing the picked pointer:
change.prompt.init.tracker strike <ref>, re-view.idle.RECONCILE THE SOPHIA BACKLOG FIRST (the post-rehydration step). SOPHIA auto-closes a thread only when
connected new work lands on its coordinate, so actually-done threads that were never re-journaled linger as
false-outstanding. Before reading the view, run docmirror-read outstanding (the sophia_checked-and-open
backlog) and docmirror-done the ones whose work is actually done (or --domain/--tag a whole shipped
family — the safe manual family-close). Only then is the view's backlog honest. (Per the DMN post-rehydration
reconciliation step + keep-the-rollup-current.)
Now that I've read doc-mirror-seework, I will FIRST reconcile the SOPHIA backlog (docmirror-read outstanding → docmirror-done the actually-done threads / a shipped --domain/--tag family) so the
backlog is honest, THEN read the VIEW (vision stats → vision project/diff
for the active repo), then take the next prioritized pointer from the tracker (or PRIORITIZE the gaps and
write the plan first with tracker add <ref> if none exists). Then I route: if the pointer is code/doc to
write I docmirror-cursor set --phase change and call doc-mirror-change; if it needs an agent task I set
--phase prompt and call doc-mirror-prompts; if it's an unmirrored repo I set --phase init and call
doc-mirror-init; if its gap is already closed I tracker strike <ref> and re-view; if there are no gaps
I go idle (docmirror-sleep).
I journal the pick + the why. If prioritization itself is a fork I cannot resolve (needs Isaac's call on
what matters): 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