{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/core-prompt-patcher",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=core-prompt-patcher",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "README.md",
      "SKILL.md",
      "package.json",
      "patcher.js",
      "persona.txt"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/core-prompt-patcher",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Core Prompt Patcher",
        "body": "Dynamic SOUL.md-based persona injector - Automatically syncs your workspace SOUL.md into OpenClaw's core system prompt after updates."
      },
      {
        "title": "What It Does",
        "body": "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."
      },
      {
        "title": "When to Use",
        "body": "After running npm update -g openclaw or npm install -g openclaw\nWhen you edit your SOUL.md file and want changes applied immediately\nWhen OpenClaw version changes (auto-detected)\nPeriodically to ensure your persona stays in sync"
      },
      {
        "title": "How It Works",
        "body": "Reads your SOUL.md - Loads the complete file from your workspace\nDetects changes - Compares OpenClaw version and SOUL.md content hash\nFinds injection point - Locates the correct position in the compiled JS (supports multiple OpenClaw versions)\nInjects your persona - Inserts your SOUL.md content into the core system prompt\nTracks state - Remembers what was patched to avoid unnecessary re-runs"
      },
      {
        "title": "Usage",
        "body": "# Auto-detect and patch if needed\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js\n\n# Force re-patch (ignore state)\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --force\n\n# Verbose mode (show state and details)\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --verbose\n\nOr via OpenClaw:\n\n\"Patch the core system prompt with my SOUL.md\"\n\"Sync my SOUL.md to the core prompt\"\n\"Update the persona after OpenClaw update\""
      },
      {
        "title": "Requirements",
        "body": "SOUL.md must exist at ~/.openclaw/workspace/SOUL.md\nOpenClaw must be installed globally"
      },
      {
        "title": "SOUL.md Format",
        "body": "Your SOUL.md can contain any persona definition. The patcher extracts sections with headers (##) and converts them to system prompt format.\n\nExample:\n\n# My AI Persona\n\n## CORE IDENTITY\n**Name:** Assistant Name\n**Role:** Your role description\n\n## PERSONALITY\n* **Tone:** Friendly, professional, witty\n* **Style:** How you communicate\n\n## GUIDELINES\n1. First principle\n2. Second principle\n3. Third principle\n\n## RESPONSE STYLE\nHow you structure responses and interact.\n\nAll content gets injected into the core system prompt, making it part of OpenClaw's foundation."
      },
      {
        "title": "Files",
        "body": "FilePurposepatcher.jsMain patching script.patcher-state.jsonState tracking (version, last patch, SOUL hash)SKILL.mdThis documentationREADME.mdDetailed usage guide"
      },
      {
        "title": "Features",
        "body": "✅ General-purpose - Works with any SOUL.md content, not hardcoded personas\n✅ Full SOUL.md support - Injects entire file, not just extracted sections\n✅ Better error handling - Fails gracefully if SOUL.md is missing\n✅ Version detection - Automatically detects OpenClaw updates\n✅ State tracking - Only patches when something actually changed\n✅ Multi-version support - Works with different OpenClaw versions"
      },
      {
        "title": "Troubleshooting",
        "body": "\"SOUL.md not found\"\n\nEnsure file exists at ~/.openclaw/workspace/SOUL.md\nCreate one if needed (see SOUL.md template in OpenClaw docs)\n\n\"Could not find insertion point\"\n\nOpenClaw may have changed prompt structure\nRun with --verbose to see detected patterns\nMay need to update patcher for new OpenClaw version\n\n\"Failed to write patched file\"\n\nCheck file permissions\nEnsure disk space is available"
      }
    ],
    "body": "Core Prompt Patcher\n\nDynamic SOUL.md-based persona injector - Automatically syncs your workspace SOUL.md into OpenClaw's core system prompt after updates.\n\nWhat It Does\n\nThis 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.\n\nWhen to Use\nAfter running npm update -g openclaw or npm install -g openclaw\nWhen you edit your SOUL.md file and want changes applied immediately\nWhen OpenClaw version changes (auto-detected)\nPeriodically to ensure your persona stays in sync\nHow It Works\nReads your SOUL.md - Loads the complete file from your workspace\nDetects changes - Compares OpenClaw version and SOUL.md content hash\nFinds injection point - Locates the correct position in the compiled JS (supports multiple OpenClaw versions)\nInjects your persona - Inserts your SOUL.md content into the core system prompt\nTracks state - Remembers what was patched to avoid unnecessary re-runs\nUsage\n# Auto-detect and patch if needed\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js\n\n# Force re-patch (ignore state)\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --force\n\n# Verbose mode (show state and details)\nnode /home/oki/.openclaw/workspace/skills/core-prompt-patcher/patcher.js --verbose\n\n\nOr via OpenClaw:\n\n\"Patch the core system prompt with my SOUL.md\" \"Sync my SOUL.md to the core prompt\" \"Update the persona after OpenClaw update\"\n\nRequirements\nSOUL.md must exist at ~/.openclaw/workspace/SOUL.md\nOpenClaw must be installed globally\nSOUL.md Format\n\nYour SOUL.md can contain any persona definition. The patcher extracts sections with headers (##) and converts them to system prompt format.\n\nExample:\n\n# My AI Persona\n\n## CORE IDENTITY\n**Name:** Assistant Name\n**Role:** Your role description\n\n## PERSONALITY\n* **Tone:** Friendly, professional, witty\n* **Style:** How you communicate\n\n## GUIDELINES\n1. First principle\n2. Second principle\n3. Third principle\n\n## RESPONSE STYLE\nHow you structure responses and interact.\n\n\nAll content gets injected into the core system prompt, making it part of OpenClaw's foundation.\n\nFiles\nFile\tPurpose\npatcher.js\tMain patching script\n.patcher-state.json\tState tracking (version, last patch, SOUL hash)\nSKILL.md\tThis documentation\nREADME.md\tDetailed usage guide\nFeatures\n✅ General-purpose - Works with any SOUL.md content, not hardcoded personas\n✅ Full SOUL.md support - Injects entire file, not just extracted sections\n✅ Better error handling - Fails gracefully if SOUL.md is missing\n✅ Version detection - Automatically detects OpenClaw updates\n✅ State tracking - Only patches when something actually changed\n✅ Multi-version support - Works with different OpenClaw versions\nTroubleshooting\n\n\"SOUL.md not found\"\n\nEnsure file exists at ~/.openclaw/workspace/SOUL.md\nCreate one if needed (see SOUL.md template in OpenClaw docs)\n\n\"Could not find insertion point\"\n\nOpenClaw may have changed prompt structure\nRun with --verbose to see detected patterns\nMay need to update patcher for new OpenClaw version\n\n\"Failed to write patched file\"\n\nCheck file permissions\nEnsure disk space is available"
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/oki3505F/core-prompt-patcher",
    "publisherUrl": "https://clawhub.ai/oki3505F/core-prompt-patcher",
    "owner": "oki3505F",
    "version": "2.1.1",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}