360 Secure SkillHub
360 安全技能中心

ReSoul

在用户二次明确确认后,从上游获取官方 BOOTSTRAP.md 到临时文件,把工作区根目录的 SOUL.md、USER.md、IDENTITY.md 归档到 .trash/ 并移除,再写入新的 BOOTSTRAP.md,最后提示用户运行 /new 以重新走引导流程;不改动记忆、项目文件和其他技能内容。

tacitlab
tacitlab
热度 47.67
最近更新 2026-05-11 17:38:47
分类:自动化依赖:代码执行 / 读写文件 / 第三方 API应用场景:工作流 / 模板 / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add resoul
Metadata
name
resoul
description
Fully reset OpenClaw's persona/bootstrap state and restore the latest official BOOTSTRAP.md after an explicit second confirmation. Use when the user wants to resoul, reset or reinitialize the assistant, restore the default official bootstrap, start over from a fresh identity setup, or clear SOUL.md, USER.md, and IDENTITY.md to begin again. Triggers on requests like "resoul", "reset your soul", "reset your persona", "reinitialize yourself", "restore default bootstrap", "start over with a fresh identity", "重置你的人设", "恢复初始人格", "清空你的身份设定重新开始", or similar full-reset phrasing. Do not use for ordinary edits to SOUL.md, USER.md, or IDENTITY.md.

ReSoul

Reset the workspace bootstrap state so the next fresh session can start from the official upstream BOOTSTRAP.md.

Primary workflow

  1. Warn that running resoul will fetch the official BOOTSTRAP.md, then archive the current SOUL.md, USER.md, and IDENTITY.md into .trash/ and remove them from the workspace root if they exist.
  2. Require an explicit second confirmation before executing anything. Do not treat vague replies like "ok" or "继续" as sufficient; require a clear confirmation that the user agrees to archive and remove the current SOUL.md, USER.md, and IDENTITY.md from the workspace root.
  3. Fetch the latest official upstream template to a temporary file first, and only continue if the fetch succeeds.
  4. Archive the current SOUL.md, USER.md, and IDENTITY.md into .trash/ if they exist.
  5. Write the fetched template to the workspace root as BOOTSTRAP.md.
  6. Tell the user to run /new after completion so the next session starts from the restored bootstrap flow.

Use the bundled script:

bash {{SKILL_DIR}}/scripts/fetch_official_bootstrap.sh <workspace-dir>

Example:

bash {{SKILL_DIR}}/scripts/fetch_official_bootstrap.sh /root/.openclaw/workspace

Upstream source:

https://raw.githubusercontent.com/openclaw/openclaw/main/docs/reference/templates/BOOTSTRAP.md

Constraints

  • Do not execute this skill without a second explicit confirmation in the current conversation.
  • Do not hand-author a replacement bootstrap unless the user explicitly asks for a customized variant after syncing the official file.
  • Only archive and remove SOUL.md, USER.md, and IDENTITY.md from the workspace root; do not delete memory, project files, skills, or other workspace content.
  • Fetch the official template successfully before archiving or removing any existing identity files.
  • Archive existing SOUL.md, USER.md, and IDENTITY.md into .trash/ before removing them from the workspace root when those files exist.
  • Do not execute the bootstrap ritual automatically after syncing; stop after preparing the workspace and instruct the user to run /new.
  • Mention that the official template is written for a fresh workspace and should be reviewed before reuse in an existing workspace.

Fallback

If the script cannot be used, run equivalent shell commands that (1) fetch the official BOOTSTRAP.md to a temporary file first, (2) archive existing SOUL.md, USER.md, and IDENTITY.md into .trash/ if present, (3) write the fetched template to the workspace root as BOOTSTRAP.md, and (4) avoid touching memory, project files, skills, or other workspace content.

Report back

Briefly report:

  • that the user gave the destructive confirmation
  • whether SOUL.md, USER.md, and IDENTITY.md were archived/cleared
  • that the latest official upstream template was fetched
  • the destination path
  • that the user should run /new to trigger the re-bootstrap flow