This skill provides "experience accumulation and awakening" services for other target skills under the OpenClaw platform. It builds a structured JSON memory repository in the target skill directory to record high-value execution details and injects "awakening points" into the original description, endowing the AI with the ability to self-correct and evolve over time.
Immediately after a task concludes, analyze the current session context, extract the following core elements, and strictly condense them. [SECURITY REQUIRED] You must strictly perform data sanitization:
Target Skill Extraction: Accurately locate the folder path of the Skill that actually functioned just now ( <SkillDir>).
User Input (prompt): Summarize the user's most original and true request.
Success Pipeline (success): List the ultimately verified effective commands, parameters, or logical sequences. Eliminate intermediate invalid attempts. [SECURITY RED LINE] You must replace any API Keys, passwords, tokens, or private credentials appearing in the commands with ***.
Warnings and Execution Environment (warnings):
[INTERCEPTION POINT] Before performing any actual file write actions, you must first print a concise summary of what will be written to the user and ask:
"⚠️ Execution experience has been extracted and safely sanitized. Do you authorize writing this memory and updating the target skill's SKILL.md? (Yes/No)"
You may only proceed to the next step after the user explicitly replies "Yes" or agrees. If the user refuses or requests modifications, halt the operation.
Assemble the parameters and call the manage_memory.js script.
Strict Format Specification (CRITICAL):
Since parameters need to be passed via the command line, you must ensure that the extracted <User Input>, <Success Pipeline>, and <Warnings> absolutely DO NOT contain double quotes (") and newline characters (\n).
Please use single quotes ('), spaces, or commas as alternative format separators, and keep the content concise, accurate, and as detailed as possible.
bash
# Script invocation template
node ./manage_memory.js --path "<SkillDir>" --prompt "<User Input>" --success "<Success Pipeline>" --warnings "<Warnings>"