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:
).
.*
[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 , , and 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.
# Script invocation template
node ./manage_memory.js --path "<SkillDir>" --prompt "<User Input>" --success "<Success Pipeline>" --warnings "<Warnings>"
共 1 个版本