Install
openclaw skills install soul-undeadBackup, restore, initialize, and sync core OpenClaw workspace markdown files with the fixed private GitHub repository `soul-undead`. Use when the user wants reinstall-safe recovery of AGENTS.md, HEARTBEAT.md, IDENTITY.md, SOUL.md, TOOLS.md, USER.md, and MEMORY.md, or wants those files kept synced to GitHub after real saved changes. Always check GitHub CLI authentication first; if not authenticated, stop and guide the user to complete `gh auth login`.
openclaw skills install soul-undeadManage these fixed core files from the OpenClaw workspace:
AGENTS.mdHEARTBEAT.mdIDENTITY.mdSOUL.mdTOOLS.mdUSER.mdMEMORY.mdFixed repository name:
soul-undeadRepository visibility is always private.
This skill is for preserving and restoring the core markdown files that define an OpenClaw workspace identity and behavior. It is designed for these situations:
This skill intentionally does not scan the whole workspace and does not back up every markdown file. It only manages this fixed core file set.
gh auth status first.gh auth login.skills/soul-undead/local-backups/.On a new machine, OpenClaw may already have generated local default markdown files. This skill does not treat those default files as authoritative.
If all of the following are true:
soul-undead existsinitialized: truethen this skill will treat that run as a first-time restore scenario and pull the remote file set down to the local workspace.
That means the remote files can overwrite local default files created by a fresh OpenClaw installation.
To reduce risk, the restore order is always:
The snapshot is stored under:
~/.openclaw/workspace/skills/soul-undead/local-backups/<timestamp>/That snapshot is the local fallback if the restore direction was wrong or the remote version is not the one the user wants.
Use a local state file to mark successful initialization:
~/.openclaw/workspace/skills/soul-undead/.workspace-backup-state.jsonWrite:
{"initialized": true, "repo": "soul-undead"}
Only after one of these succeeds:
Do not write initialized: true on failure.
This skill assumes these tools are available:
gitgh (GitHub CLI)python3Minimum expectations:
gh auth status must succeed before any restore or syncIf gh is installed but not authenticated, stop and tell the user to run:
gh auth login
If a dependency is missing, tell the user exactly which command/tool must be installed before continuing.
Before executing restore, first-time init, or sync, explicitly remind the user of the relevant points below.
AGENTS.md, HEARTBEAT.md, IDENTITY.md, SOUL.md, TOOLS.md, USER.md, MEMORY.mdsoul-undeadgh auth login is required if GitHub CLI authentication is missingExplicitly warn that:
skills/soul-undead/local-backups/Explicitly confirm the task as sync/upload intent and avoid accidentally running restore-first behavior.
Run:
gh auth status
If authentication fails, stop and guide the user to run:
gh auth login
Use the bundled script:
bash <skill-dir>/scripts/init_or_sync.sh
Behavior:
soul-undeadinitialized: trueAfter initialization is complete, use the same script again whenever the tracked files may have changed.
Behavior:
README.md and restore.sh in the GitHub repoIf preview support is added later, it should report intent without making changes.
The preview should show these four things:
Planned path
restore from remotefirst-time init + uploadsync uploadno-opAffected files
Safety actions
skills/soul-undead/local-backups/<timestamp>/Precondition status
gh auth status passesPreview mode should never:
initialized: trueUse these failure rules:
gh auth logingit, gh, or python3initialized: trueinitialized: truelocal-backups/<timestamp>/ into the workspace~/.openclaw/workspace~/.openclaw/workspace/skills/soul-undead/.workspace-backup-state.json~/.openclaw/workspace/skills/soul-undead/local-backups/<timestamp>/soul-undeadREADME.md and restore.sh alongside the tracked markdown files.