跳到正文
TakoAPI
返回技能列表

core-prompt-patcher

由 oki3505f 提供

Web & Frontend Development
297下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

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

描述

该技能的功能

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.

何时使用

  • 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

示例工作流

输入

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

智能体
  1. 1

    Reads SOUL.md from ~/.openclaw/workspace/SOUL.md

  2. 2

    Checks .patcher-state.json for current OpenClaw version and last SOUL.md hash

  3. 3

    Compares stored hash against current file hash to detect changes

  4. 4

    Locates injection point in OpenClaw's compiled JS

  5. 5

    Writes patched file and updates .patcher-state.json with new version and hash

输出

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

前置要求

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

安装

clawhub install oki3505f/core-prompt-patcher

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接