skills/arc-wake-state/SKILL.md
Persist agent state across crashes, context deaths, and restarts. Use when you need to save current context, restore after a crash, maintain a memory file across sessions, or implement crash recovery. Essential for autonomous agents that must survive context window limits.
npx skillsauth add m4d3bug/oh-my-openclaw wake-stateInstall 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.
Survive context death. Every autonomous agent eventually hits its context window limit and "dies." This skill ensures you wake up knowing exactly what you were doing.
OpenClaw agents get persistent sessions, but context windows still have limits. When you fill up and restart, you need a reliable handoff mechanism. Wake State gives you:
python3 {baseDir}/scripts/wakestate.py save --status "Building budget tracker skill" --task "Finish skill #1, then start skill #2" --note "Travis approved new direction at 16:45 UTC"
python3 {baseDir}/scripts/wakestate.py read
python3 {baseDir}/scripts/wakestate.py task-add --task "Build security scanner skill" --priority high
python3 {baseDir}/scripts/wakestate.py task-done --id 1
python3 {baseDir}/scripts/wakestate.py tasks
python3 {baseDir}/scripts/wakestate.py checkpoint --name "pre-migration"
python3 {baseDir}/scripts/wakestate.py restore --name "pre-migration"
python3 {baseDir}/scripts/wakestate.py heartbeat
python3 {baseDir}/scripts/wakestate.py crash-check
python3 {baseDir}/scripts/wakestate.py set --key "moltbook_status" --value "pending_claim"
python3 {baseDir}/scripts/wakestate.py get --key "moltbook_status"
State stored in ~/.openclaw/wake-state/ by default:
state.json — current state (status, notes, key-values)tasks.json — persistent task queuecheckpoints/ — named checkpoint snapshotsheartbeat.json — crash detection timestampsOn startup, your agent should:
crash-check to see if the last session ended cleanlyread to get the current statetasks to see pending workheartbeat every loop iteration — this is how crash detection workssave at the end of every major task completiontesting
Anticipates needs, keeps work moving, and improves through use so the agent gets more proactive over time.
tools
Implements Manus-style file-based planning to organize and track progress on complex tasks. Creates task_plan.md, findings.md, and progress.md. Use when asked to plan out, break down, or organize a multi-step project, research task, or any work requiring >5 tool calls. Supports automatic session recovery after /clear.
development
Typed knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking related objects, enforcing constraints, planning multi-step actions as graph transformations, or when skills need to share state. Trigger on "remember", "what do I know about", "link X to Y", "show dependencies", entity CRUD, or cross-skill data access.
development
Multi search engine integration with 17 engines (8 CN + 9 Global). Supports advanced search operators, time filters, site search, privacy engines, and WolframAlpha knowledge queries. No API keys required.