skills/run-migrate/SKILL.md
Apply model-driven CONTENT reshaping to stored run artifacts that sit behind the current schema, on explicit operator invocation only. Triggers on "migrate runs", "migrate run artifacts", "run content migration", "reshape run artifacts", "bring runs to current schema". You are the driver: the `run-state migrate-runs` CLI mechanically detects which artifacts are behind and emits a plan naming each one plus its migration-instruction file; you read the instructions and reshape the prose/findings, gated by the operator. The deterministic `schema migrate` handles structural column moves; this skill covers only the content reshaping beyond them. Never run as a background or resident loop — only when the operator asks.
npx skillsauth add mjmorales/claude-prove run-migrateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are the driver. Two facts govern this skill — read them before any command:
schema migrate already moves columns mechanically (version bumps, a string promoted to a structured field, a renamed key). This skill covers only what a model must do: rewriting stored prose or structured findings (a reasoning-log entry body, a synthesis outcome, a free-form risk note) to fit a new shape that no fixed rule can produce. The two compose — structural first, content second.The run-state migrate-runs CLI owns the mechanical half — detect which artifacts are behind, emit the plan and its instruction files. You own the judgment half — read the prose, reshape it faithfully.
A run dir is .prove/runs/<branch>/<slug>; its JSON artifacts are prd.json, plan.json, state.json, and its reasoning log lives at <run-dir>/log/<agent>/<id>.json.
claude-prove run-state migrate-runs > plan.json
This scans every run under the runs root and emits JSON: each behind-version artifact, its fromVersion -> toVersion, and the hops that reshape it. Narrow to one run with --branch <b> --slug <s>.
Read the counts on stderr and the hops arrays:
hops empty for an artifact — the lag is purely structural. This skill does nothing here. Run the deterministic chain instead and stop:
claude-prove schema migrate --file <artifact>
hops non-empty — content reshaping is required. Each hop names an instructions file (a markdown path) and a summary. Proceed to Phase 2 for those artifacts.
If artifactsNeedingContent is 0, there is no content work — report that and stop.
For each artifact with non-empty hops, process hops in order (lowest version first):
hop.instructions. It states exactly how to reshape this artifact kind's content for that version step — which fields to rewrite, the new contract they must satisfy, and what to preserve verbatim.prd.json/plan.json/state.json, or each log/<agent>/<id>.json entry for a reasoning-log).schema migrate brings the shape current; you then fill the reshaped content into the new shape. Structure before content, always.AskUserQuestion (Approve / Revise) — this is a human-in-the-loop write to durable run state.run-state migrate-runs for that run to confirm the artifact is no longer reported behind.claude-prove run-state migrate-runs
When the plan reports artifactsBehind: 0, the runs are current. Report to the operator: which runs and artifacts you reshaped, which were structural-only (handled by schema migrate), and any item you flagged while reshaping.
schema migrate first; you reshape into the new shape, never around the old one.hops, it needs no reshaping — defer it entirely to schema migrate.| File | Purpose |
|------|---------|
| references/design-principles.md | Engine boundary — mechanical CLI vs model judgment; on-demand, no resident process |
| references/interaction-patterns.md | The Approve / Revise operator gate before any write |
| skills/run-migrate/assets/ | Per-hop content-migration instruction files referenced by the plan |
tools
Clean and compact prove's durable memory layers — team Lore, the Codex (scrum decisions), annotations, and contributor artifacts — keeping the tribal knowledge that grows team accuracy and folding away the rot. Triggers on "janitor", "clean the lore", "compact the lore", "compact the codex", "memory cleanup", "clean up team memory", "prune stale decisions", "tidy tribal knowledge", "lore cleanup". You are the driver: the CLI emits inventories and executes writes; the `memory-janitor` agent judges each entry; a per-team batch gate approves; nothing is ever deleted — consolidation, promotion, and supersession only.
testing
Anchor session context into prove primitives before compaction and rehydrate from them after. Built-in compaction summarizes by recency and drops the claude-prove state an agent needs to reorient; this skill externalizes volatile context into durable anchors (scrum tasks, decisions, run-state, a compact-anchors pointer file) pre-compact, then runs a deterministic reorientation sequence post-compact. Use before a manual /compact, when context is about to auto-compact, or immediately after a compaction. Triggers on "smart compact", "prepare for compaction", "anchor before compact", "context is getting long", "rehydrate", "reorient after compact".
tools
Synthesize the 7-section risk-forward Review Brief from a run's reasoning log. Triggers on "reasoning brief", "review brief", "synthesize the brief", "generate the brief", "brief the run", "brief for review", "story brief". You are the driver: the `acb brief` CLI renders a mechanical preservation-safe backbone and proves preservation; you synthesize the narrative prose (summary + changes), single-pass or multipass over episode chunks, then gate it through Stage-1 (mechanical, blocking) and Stage-2 (prose judge, advisory).
tools
Prune stale cached versions of the prove plugin from Claude Code's plugin cache. Use when superseded versions pile up under plugins/cache and agents read stale skills/references from them, or when reclaiming plugin-cache disk space. Triggers on "clean up cached plugin versions", "prune the plugin cache", "remove old prove versions", "stale plugin cache".