← 返回 Skills 市场
393
总下载
0
收藏
3
当前安装
7
版本数
在 OpenClaw 中安装
/install metacognition
功能描述
Self-reflection engine for AI agents. Extracts patterns from session transcripts into a weighted graph with Hebbian learning and time decay. Compiles a token...
安全使用建议
This skill appears to do exactly what it says: it will read conversation transcripts (when you instruct the agent to do so), analyze them with the bundled Python script, and persist insights to workspace/memory/metacognition.json and scripts/metacognition-lens.md. Before installing, decide whether you are comfortable with transcripts and derived insights being stored in your workspace. If you enable embeddings, ensure EMBEDDINGS_URL points to a trusted local service (the code only allows localhost addresses). Note the small default-URL mismatch between README/SKILL.md and the script — verify EMBEDDINGS_URL if you rely on embeddings. If you do not want persisted insights, do not enable cron integration or running the script; otherwise the behavior is proportionate to the skill's purpose.
功能分析
Type: OpenClaw Skill
Name: metacognition
Version: 1.1.2
The metacognition skill is a legitimate self-reflection engine that implements Hebbian learning and graph-based insight clustering for AI agents. The code in metacognition.py includes proactive security measures, such as strictly validating that the optional embeddings endpoint is restricted to localhost (127.0.0.1/::1) to prevent data exfiltration and enforcing a 1MB limit on file reads. It relies solely on the Python standard library, avoids dangerous execution functions like subprocess or eval, and the instructions in SKILL.md are entirely aligned with the stated purpose of analyzing session transcripts for behavioral patterns.
能力评估
Purpose & Capability
Name/description (self-reflection, insight graph, lens) align with what the skill installs and requests: a Python script, local storage under workspace/memory, and an optional local embeddings endpoint. The only required binary is python3, which is appropriate.
Instruction Scope
SKILL.md tells the agent to read session transcripts (sessions_list + sessions_history) and to run the included Python CLI to add/reweave/compile insights. Reading conversation history and writing to memory/metacognition.json is expected for this purpose — users should be aware that session text will be analyzed and persisted. The instructions are otherwise scoped to the stated task (no commands that read unrelated system config or post data externally).
Install Mechanism
No install spec (instruction-only + bundled script) — nothing is downloaded from external hosts. The provided Python file is stdlib-only and operates on local files and an optional local HTTP embeddings endpoint.
Credentials
The skill requests no credentials and only uses two optional environment variables (WORKSPACE and EMBEDDINGS_URL), both justified by the design. The script enforces that EMBEDDINGS_URL must resolve to localhost/127.0.0.1/::1 (otherwise embeddings are disabled), which prevents remote exfiltration via embeddings. Minor inconsistency: SKILL.md metadata mentions a default embeddings URL of http://localhost:4821, while metacognition.py defaults to http://localhost:11434 — this is a small mismatch but not a security issue.
Persistence & Privilege
always is false and the skill is user-invocable (normal). It writes to its own workspace files (memory/metacognition.json and scripts/metacognition-lens.md), which match the declared writablePaths in SKILL.md metadata. It does not request system-wide or other-skill configuration changes.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install metacognition - 安装完成后,直接呼叫该 Skill 的名称或使用
/metacognition触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.2
Enforce localhost-only EMBEDDINGS_URL validation at import time — remote URLs now disable embeddings entirely
v1.1.1
Replace subprocess/curl with stdlib urllib.request — code now matches security metadata claims
v1.1.0
Republish with corrected listing
v1.0.3
Rescan: all curl/subprocess removed in v1.0.2, stdlib urllib only, localhost-only validation
v1.0.2
Security: replaced curl/subprocess with Python stdlib urllib (eliminates external binary dependency and attack surface), added homepage and author, confirmed localhost-only EMBEDDINGS_URL validation
v1.0.1
Security fixes: localhost-only EMBEDDINGS_URL validation (rejects remote endpoints), declared writable/readable paths and env vars in metadata
v1.0.0
Initial release: self-reflection engine with Hebbian learning and graph connections
元数据
常见问题
Metacognition 是什么?
Self-reflection engine for AI agents. Extracts patterns from session transcripts into a weighted graph with Hebbian learning and time decay. Compiles a token... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 393 次。
如何安装 Metacognition?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install metacognition」即可一键安装,无需额外配置。
Metacognition 是免费的吗?
是的,Metacognition 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Metacognition 支持哪些平台?
Metacognition 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Metacognition?
由 Mei Park(@meimakes)开发并维护,当前版本 v1.1.2。
推荐 Skills