Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Purpose: Help you get back up to speed after context compaction. Automatically detects in-progress work (RPI runs, evolve cycles), loads relevant knowledge, summarizes what you were doing and what's next. Codex v0.115.0+ uses native hooks automatically; for older Codex versions, prefers the explicit hookless fallback path (ao codex start/ao codex stop).
YOU MUST EXECUTE THIS WORKFLOW. Do not just describe it.
CLI dependencies: gt, ao, bd — all optional. Shows what's available, skips what isn't.
Quick Start
/recover # Full recovery dashboard
/recover --json # Machine-readable JSON output
ao codex status # Codex hookless lifecycle health
ao codex start # Rebuild startup context explicitly in Codex
Execution Steps
Step 1: Detect In-Progress Sessions (Parallel)
Run ALL of the following in parallel bash calls:
Call 1 — RPI Phased State:
if [ -f .agents/rpi/phased-state.json ]; thenecho"=== RPI_STATE ==="cat .agents/rpi/phased-state.json
elseecho"RPI_STATE=NONE"fi
ifcommand -v ao &>/dev/null; thenecho"=== CODEX_STATUS ==="
ao codex status --json 2>/dev/null || echo"CODEX_STATUS=UNAVAILABLE"elseecho"AO_UNAVAILABLE"fi
Step 2: Load Context from Knowledge Base
If RPI state detected, run:
ifcommand -v ao &>/dev/null; then
ao lookup --query "rpi recovery context" --limit 5 2>/dev/null || truefi
Apply retrieved knowledge: If learnings are returned, check each for applicability to the recovery context. Cite applicable learnings by filename and record: ao metrics cite "<path>" --type applied 2>/dev/null || true
If Codex hookless fallback mode is detected (pre-v0.115.0, no native hooks), also run:
ifcommand -v ao &>/dev/null && { [ -n "${CODEX_THREAD_ID:-}" ] || [ "${CODEX_INTERNAL_ORIGINATOR_OVERRIDE:-}" = "Codex Desktop" ]; }; then
ao codex start --no-maintenance 2>/dev/null || truefi
Step 3: Parse and Summarize Session State
Extract from collected data:
RPI Detection: If .agents/rpi/phased-state.json exists:
Extract goal, epic_id, phase, cycle, started_at
Map phase number to phase name (1=research, 2=plan, 3=implement, 4=validate)
Show elapsed time since started_at
Evolve Detection: If .agents/evolve/cycle-history.jsonl exists:
Read last entry for most recent cycle
Extract goals_fixed, result, timestamp
Show latest cycle summary
Recent Work: From git log:
Last 3 commits (extracted in Call 3)
Uncommitted changes count
Pending Work: From beads:
In-progress issues (up to 3)
Ready issues count
Knowledge State:
Total learnings and patterns available
Unread messages count if gt available
Step 4: Render Recovery Dashboard
Assemble gathered data into this format:
══════════════════════════════════════════════════════════════
Context Recovery Dashboard
══════════════════════════════════════════════════════════════
IN-PROGRESS RPI RUN
Epic: <epic_id>
Goal: <first 80 chars of goal>
Phase: <phase name: research | plan | implement | validate>
Cycle: <cycle #>
Started: <time ago (e.g., "2 hours ago")>
Status: <PHASE_START | IN_PROGRESS | READY_FOR_GATE | ...>
─ Next Step: <state-aware suggestion from Step 5>
OR
RECENT EVOLVE CYCLE (IF NO RPI)
Cycle: <cycle #>
Latest Goal: <goal_id or summary>
Result: <result>
Items Completed: <count or "—">
Timestamp: <time ago>
─ Next Step: <state-aware suggestion from Step 5>
OR
[NO ACTIVE SESSION]
No RPI run or evolve cycle in progress.
Last activity: <time of last commit or "unknown">
IN-PROGRESS WORK
<list up to 3 in-progress issues with IDs>
<or "No in-progress work">
READY TO WORK
<count of ready issues>
<or "No ready issues">
RECENT COMMITS
<last 3 commits>
PENDING CHANGES
<uncommitted file count or "clean">
KNOWLEDGE AVAILABLE
Learnings: <count> Patterns: <count>
INBOX
<message count or "No messages" or "gt not installed">
──────────────────────────────────────────────────────────────
SUGGESTED NEXT ACTION
<state-aware command from Step 5>
──────────────────────────────────────────────────────────────
QUICK COMMANDS
/status Current workflow dashboard
/research Deep codebase exploration
/plan Decompose work into issues
/implement Execute a single issue
/crank Autonomous epic execution
/validation Full close-out and learnings
══════════════════════════════════════════════════════════════
Step 5: Suggest Next Action (State-Aware)
Evaluate context top-to-bottom. Use the FIRST matching condition:
Priority
Condition
Suggestion
1
RPI run in-progress + phase=research
"Continue research: /research or /plan if ready"
2
RPI run in-progress + phase=plan
"Review plan: /pre-mortem to validate before coding"