LaunchKit · 2026
Back to Skills

core-prompt-patcher

**Dynamic SOUL.md-based persona injector** - Automatically syncs your workspace SOUL.md into OpenClaw's core system.

0
297 downloads
by @oki3505f

Setup & Installation

openclaw skills install @oki3505f/core-prompt-patcher

Or with the ClawHub CLI, for registry-managed skill folders outside a full OpenClaw workspace:

npx clawhub install core-prompt-patcher

Version History

v2.1.1Feb 24, 2026 - Version note by skill developer:

v2.1.1: Cleaned up general-purpose release - removed all personal references and hardcoded personas, now fully generic SOUL.md injector for any OpenClaw user

What This Skill Does

Reads a workspace SOUL.md file and patches its contents into OpenClaw's compiled core system prompt. Tracks version changes and content hashes to avoid redundant writes. Survives OpenClaw updates that would otherwise overwrite the dist/ directory.

Patching the compiled JS directly means persona changes take effect immediately without forking or maintaining a separate OpenClaw build.

When to use it

  • Reapplying persona after a global OpenClaw npm update
  • Pushing SOUL.md edits into the active system prompt without restarting
  • Verifying the current patch state before a demo or session
  • Force-repatching when prompt behavior feels off after an update
  • Automating persona sync in a post-install script

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Sync my SOUL.md to the core prompt

AGENT
  1. 1Reads SOUL.md from ~/.openclaw/workspace/SOUL.md
  2. 2Checks .patcher-state.json for current OpenClaw version and last SOUL.md hash
  3. 3Compares stored hash against current file hash to detect changes
  4. 4Locates injection point in OpenClaw's compiled JS
  5. 5Writes patched file and updates .patcher-state.json with new version and hash
OUTPUT

Core system prompt updated with current SOUL.md content; state file records the patch

Requirements

Accounts, API keys, or tools you or your AI assistant may need to set up while using this skill.

OpenClaw installed globally via npmSOUL.md file created at ~/.openclaw/workspace/SOUL.md