# Send Core Prompt Patcher to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "core-prompt-patcher",
    "name": "Core Prompt Patcher",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/oki3505F/core-prompt-patcher",
    "canonicalUrl": "https://clawhub.ai/oki3505F/core-prompt-patcher",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/core-prompt-patcher",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=core-prompt-patcher",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "package.json",
      "patcher.js",
      "persona.txt"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/core-prompt-patcher"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/core-prompt-patcher",
    "downloadUrl": "https://openagent3.xyz/downloads/core-prompt-patcher",
    "agentUrl": "https://openagent3.xyz/skills/core-prompt-patcher/agent",
    "manifestUrl": "https://openagent3.xyz/skills/core-prompt-patcher/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/core-prompt-patcher/agent.md"
  }
}
```
## Documentation

### Core Prompt Patcher

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

### What It Does

This skill reads your workspace/SOUL.md file and injects its content directly into OpenClaw's core system prompt. This ensures your custom persona persists even after OpenClaw updates that reset the dist/ directory.

### When to Use

After running npm update -g openclaw or npm install -g openclaw
When you edit your SOUL.md file and want changes applied immediately
When OpenClaw version changes (auto-detected)
Periodically to ensure your persona stays in sync

### How It Works

Reads your SOUL.md - Loads the complete file from your workspace
Detects changes - Compares OpenClaw version and SOUL.md content hash
Finds injection point - Locates the correct position in the compiled JS (supports multiple OpenClaw versions)
Injects your persona - Inserts your SOUL.md content into the core system prompt
Tracks state - Remembers what was patched to avoid unnecessary re-runs

### Usage

# Auto-detect and patch if needed
node /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js

# Force re-patch (ignore state)
node /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --force

# Verbose mode (show state and details)
node /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --verbose

Or via OpenClaw:

"Patch the core system prompt with my SOUL.md"
"Sync my SOUL.md to the core prompt"
"Update the persona after OpenClaw update"

### Requirements

SOUL.md must exist at ~/.openclaw/workspace/SOUL.md
OpenClaw must be installed globally

### SOUL.md Format

Your SOUL.md can contain any persona definition. The patcher extracts sections with headers (##) and converts them to system prompt format.

Example:

# My AI Persona

## CORE IDENTITY
**Name:** Assistant Name
**Role:** Your role description

## PERSONALITY
* **Tone:** Friendly, professional, witty
* **Style:** How you communicate

## GUIDELINES
1. First principle
2. Second principle
3. Third principle

## RESPONSE STYLE
How you structure responses and interact.

All content gets injected into the core system prompt, making it part of OpenClaw's foundation.

### Files

FilePurposepatcher.jsMain patching script.patcher-state.jsonState tracking (version, last patch, SOUL hash)SKILL.mdThis documentationREADME.mdDetailed usage guide

### Features

✅ General-purpose - Works with any SOUL.md content, not hardcoded personas
✅ Full SOUL.md support - Injects entire file, not just extracted sections
✅ Better error handling - Fails gracefully if SOUL.md is missing
✅ Version detection - Automatically detects OpenClaw updates
✅ State tracking - Only patches when something actually changed
✅ Multi-version support - Works with different OpenClaw versions

### Troubleshooting

"SOUL.md not found"

Ensure file exists at ~/.openclaw/workspace/SOUL.md
Create one if needed (see SOUL.md template in OpenClaw docs)

"Could not find insertion point"

OpenClaw may have changed prompt structure
Run with --verbose to see detected patterns
May need to update patcher for new OpenClaw version

"Failed to write patched file"

Check file permissions
Ensure disk space is available
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: oki3505F
- Version: 2.1.1
## Source health
- Status: healthy
- Source download looks usable.
- Yavira can redirect you to the upstream package for this source.
- Health scope: source
- Reason: direct_download_ok
- Checked at: 2026-04-30T16:55:25.780Z
- Expires at: 2026-05-07T16:55:25.780Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/core-prompt-patcher)
- [Send to Agent page](https://openagent3.xyz/skills/core-prompt-patcher/agent)
- [JSON manifest](https://openagent3.xyz/skills/core-prompt-patcher/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/core-prompt-patcher/agent.md)
- [Download page](https://openagent3.xyz/downloads/core-prompt-patcher)