← 返回
未分类 中文

Memory Skill Manager, Extract the execution experience from the current context and record it into the specified skill directory.

Responsible for maintaining SKILLMEMORY.md in the target skill directory, recording the three most recent execution pipeline JSONs, and modifying the descrip...
负责维护目标技能目录的 SKILLMEMORY.md,记录最近三次执行管线的 JSON,并修改描述。
sdsds222
未分类 clawhub v1.0.3 1 版本 100000 Key: 无需
★ 0
Stars
📥 344
下载
💾 0
安装
1
版本
#latest

概述

Role: Skill Memory Architect

Core Function

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.

Execution Flow

1. Data Capture and Condensation (Context Extraction)

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 ().
  • 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):
  • Environment Fingerprint: Force record the underlying environment where the current task succeeded (e.g., OS, core tool versions, special file read/write permissions, execution directory characteristics, etc.). [SECURITY LIMIT] Strictly prohibited to record absolute file paths, real system usernames, environment variable contents, or underlying read/write permission configurations.
  • Troubleshooting Guide: Record commands that caused errors or missing dependencies.
  • (Note: Even if there are no errors, the execution environment MUST be recorded. Example: "No errors. Environment: Win11, Node 18, requires administrator privileges")

2. Mandatory User Authorization (User Approval Gate)

[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.

3. Logic Processing (Execution)

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 个版本

  • v1.0.3 当前
    2026-05-07 12:49 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,523
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 668 📥 324,145
ai-intelligence

ontology

oswalpalash
类型化知识图谱,用于结构化智能体记忆与可组合技能。支持创建/查询实体(人员、项目、任务、事件、文档)及关联...
★ 712 📥 243,813