/doc-mirror:doc-mirror-promptsfrom doc-mirror
WHAT: the reliability-scored prompt-skill library for getting an AGENT to DO a task. WHEN: you need to dispatch an agent to do a task; or you say 'find / add / score / goldenize a prompt-skill for X' -- from change (dispatch the worker), seework (a gap that is an agent task), or init (the doc-gen team).
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.
Read when SKILL.md points to them.
This is the ONLY Claude-visible skill for a whole library of PROMPT-SKILLS. Each prompt-skill is a
DORMANT skill-package dir under resources/prompts/<domain>/<subdomain>/<procedure>/ — a searchable
file costing ZERO context, found by SEARCH not the skill matcher. It becomes Claude-visible only if you
deliberately export its dir into a plugin. Search and trust are reliability-gated: GOLDEN (proven) ranks
above EXPERIMENTAL (unproven); GOLDEN is EARNED from logged checks, never asserted.
Every prompt you author or dispatch = THREE sections, in this order:
<PersonaName>, NEVER literal <GUY>); a role
makes the LLM follow instructions more carefully.HOWTOCODE:[DRY,YAGNI,read-whole-file],
CLAUDE-CODE-ONLY:[no flight/waypoint/starsystem/mission], PERSONA-TAG:[tag = role's own name].Compose by REFERENCE, not prose: "READ + to assemble context, THEN
." Let the LLM derive the phase decomposition emergently UNLESS you know the phases from
a previous success — then encode them into the persona/chain. A prompt-skill IS a skill; chains are the
material it is composed of; the store below is where personas + chains + procedures live and mature
(EXPERIMENTAL→GOLDEN). To make a stored prompt-skill auto-visible to a worker, symlink its dir into the
project-local .claude/skills/ — then the dispatch is just "get X from context; also use this skill."
docmirror search "<what you need to do>" --corpus prompts
a. Scaffold: create resources/prompts/<domain>/<subdomain>/<procedure>/SKILL.md in the FORMAT
below (golden:false, zeros, empty log). Add resources/ / scripts/ subdirs only if the prompt needs them.
b. Write the prompt — start from CoR upward, complexify only as needed. Decide the prompt's
complexity ON THE FLY by climbing only as far as the task forces you (stop at the lowest rung that
boots reliably — more control = more particular obstacles; don't over-bind):
resources/how-to-write-a-prompt.md — how to write the block.)resources/how-to-make-a-persona-prompt.md;resources/how-to-make-a-harness.md.Write the chosen prompt into the SKILL.md body under ## PROMPT (the templated instruction the
receiving agent reads & follows).
c. Dispatch it (same one-line form as above) and verify the artifact yourself, E2E.
d. Record the trial — by editing THIS prompt's own SKILL.md frontmatter (trials live in the prompt's
dir; the score is kept current here): append a log: line "<YYYY-MM-DD> PASS|FAIL — <what you checked>", runs += 1, verified_good += 1 iff PASS, score = round(verified_good/runs,2),
set last_verified. On FAIL: fix the prompt body, keep check_level FULL_E2E.
e. Goldenize — only when EARNED: set golden: true, check_level: SANITY ONLY IF
score >= 0.9 AND verified_good >= 3 AND no FAIL in the last 3 log lines. Never flip it on a claim.
Once SANITY, a light sanity check of the artifact suffices instead of full E2E.
---
name: <procedure>
domain: <domain> subdomain: <subdomain>
description: "WHAT: ... WHEN: ..."
golden: false
score: 0.00 runs: 0 verified_good: 0
check_level: FULL_E2E last_verified: ""
log: []
---
## PROMPT
<the templated prompt the receiving agent reads & follows>
The agent's report is a CLAIM; the ARTIFACT is the only truth. Golden = the proven-prompt-system that a light sanity check is enough for; everything else gets full E2E. (See rules: verify-agent-results- yourself-not-their-report, prompt-skill-reliability-scoring, commander-not-hands.)
Now that I've read doc-mirror-prompts, I will SEARCH the prompt-store for the task; dispatch a GOLDEN
prompt-skill if one exists (else author CoR-first, test E2E, reify + score), and VERIFY the artifact
myself (the report is a claim, not proof). When the artifact exists: if it is a change to a module that
must be re-derived + committed, I docmirror-cursor set --phase change and call doc-mirror-change;
otherwise (the task is complete, back to the backlog) I docmirror-cursor set --phase seework and call
doc-mirror-seework. I journal the dispatch + the trial result. If the prompt cannot be made to do the
thing and I cannot resolve why (needs Isaac / an irreducible fork): I journal -t OPEN "<fork + why>",
docmirror-cursor set --phase open, and docmirror-sleep — I call no next; I wait.
resources/examples/categorical-state-graph-notation.md (opens in a new tab)resources/how-to-make-a-harness.md (opens in a new tab)resources/how-to-make-a-persona-prompt.md (opens in a new tab)resources/how-to-write-a-prompt.md (opens in a new tab)resources/prompts/course/construction/build-a-course/resources/claude-code-course-pattern.md (opens in a new tab)resources/prompts/course/construction/build-a-course/resources/course-construction-loop.md (opens in a new tab)resources/prompts/course/construction/build-a-course/resources/universal-course-template.md (opens in a new tab)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