← 返回 Skills 市场
chenni666

dual-brain-memory-guardian

作者 chenni666 · GitHub ↗ · v1.0.3 · MIT-0
linuxdarwinwin32 ⚠ suspicious
132
总下载
1
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install dual-brain-memory-guardian
功能描述
Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls.
使用说明 (SKILL.md)

Dual-Brain Memory Guardian

Description

This skill combines a strict Markdown rule brain with a Pinecone experience brain. It is designed for reliable behavior constraints, correction-driven learning, and semantic recall of prior pitfalls.

Usage

Use this skill when any of the following applies:

  1. The user corrects your output or asks for a rewrite.
  2. You complete non-trivial work and need structured self-reflection.
  3. You need to recall similar historical pitfalls with fuzzy semantic matching.
  4. You need high-confidence behavior constraints that must not be violated.
  5. You encounter execution errors, regressions, or reasoning mistakes and need to preserve root cause.

Common trigger hints: correction, rewrite, reflection, pitfall, memory recall, behavior constraints, error, regression, root cause.

Instructions

Document Ownership (Single Source of Truth)

To avoid drift and contradictory edits, documentation ownership is strict:

  1. Runtime execution flow lives in operations.md only.
  2. Learning criteria and promotion logic live in learning.md only.
  3. Safety and data boundaries live in boundaries.md only.
  4. Setup and wiring steps live in setup.md only.

If there is any wording mismatch, follow the owner document above instead of this file.

Architecture (Minimal Contract)

This skill uses a dual-brain contract:

  1. Left Brain (Markdown): explicit rules and durable preferences.
  2. Right Brain (Pinecone): episodic corrections, reflections, and semantic recall.

Conflict order remains fixed:

  • Project Markdown > Domain Markdown > Global Markdown > Pinecone recall.

Mandatory Trigger Entry Points

The skill requires these command-level hooks to exist:

  1. memory:session-start
  2. memory:auto-session-start
  3. memory:on-correction
  4. memory:on-task-complete
  5. memory:auto-task-complete
  6. memory:mark-promoted

Execution details, retries, and sequencing are defined in operations.md. Runtime guard for these triggers is enforced by scripts/memory-cli.js.

Proactive Trigger Behavior (Required)

When this skill is active, trigger commands should be called proactively:

  1. On session/conversation start, call memory:auto-session-start before substantial work.
  2. On final response for non-trivial work, call memory:auto-task-complete before ending.
  3. Keep memory:on-correction for immediate correction capture events.
  4. When an error happens, call memory:on-correction immediately with what failed and why (root cause).

Fallback policy:

  1. If auto wrappers are unavailable, call memory:session-start and memory:on-task-complete manually.

Quick Reference

Topic File
Skill contract SKILL.md
Setup setup.md
Runtime operations operations.md
Reflection template reflections.md
Heartbeat behavior heartbeat-rules.md
Safety boundaries boundaries.md
Pinecone config/runtime src/pinecone/
CLI entrypoint scripts/memory-cli.js

Requirements

  • Node.js >= 20
  • npm
  • @pinecone-database/pinecone
  • Required environment variable: PINECONE_API_KEY
  • Optional runtime environment variables:
    • PINECONE_INDEX_NAME
    • PINECONE_CLOUD
    • PINECONE_REGION
    • PINECONE_MODEL
    • PINECONE_FIELD_MAP_TEXT
    • PINECONE_NAMESPACE_PREFIX
    • MEMORY_TENANT
    • PINECONE_IMPORT_INTEGRATION_ID
    • DUAL_BRAIN_MEMORY_HOME
  • Pinecone integrated index model: multilingual-e5-large

Optional for bulk import:

  • Object storage path (s3://, gs://, Azure Blob URL)
  • Integration ID for private buckets

Rules Index

  • Learning and promotion: learning.md
  • Runtime triggers and recall flow: operations.md
  • Local reflection template: reflections.md
  • Safety and redaction: boundaries.md
  • Scale and compaction strategy: scaling.md

Scope

This skill ONLY:

  • Maintains rule memory in ~/dual-brain-memory-guardian/.
  • Maintains experience memory in Pinecone.
  • Uses npm-based Pinecone SDK operations (upsertRecords, searchRecords, startImport, describeImport, describeIndexStats).

This skill NEVER:

  • Treats Pinecone recall as stronger than explicit Markdown contracts.
  • Stores sensitive raw secrets in vector memory.
  • Performs destructive heartbeat rewrites of uncertain content.

Feedback

  • If useful: clawhub star dual-brain-memory-guardian
  • Keep skills updated: clawhub sync
安全使用建议
This skill appears to do what it says: it stores local Markdown rules in ~/dual-brain-memory-guardian/ and episodic data in your Pinecone index. Before installing: 1) Run it in a disposable or test environment first and use a limited-scope Pinecone API key/namespace (the SKILL.md explicitly recommends this). 2) Review and, if desired, run the included verify script (npm run verify). 3) Expect that corrections, reflections, and error reports will be uploaded to Pinecone when triggers run; if you have sensitive content, do not use production secrets or real data until you confirm the gatekeeper's redaction behavior meets your needs. 4) Be aware that memory:forget-all will clear vector data permanently; confirm intent before running deletion commands. If you want greater assurance, inspect or run the scripts locally to see exact CLI behavior and logs before giving this skill access to production secrets.
能力标签
cryptorequires-walletrequires-oauth-token
能力评估
Purpose & Capability
Name/description (dual-brain memory using Markdown + Pinecone) aligns with required binaries (node, npm), primary credential (PINECONE_API_KEY), and included code (Pinecone client, memory store, CLI). Requested packages (@pinecone-database/pinecone, dotenv) and npm scripts are appropriate for the described functionality.
Instruction Scope
SKILL.md and operations.md instruct the agent to create local files under ~/dual-brain-memory-guardian/, run npm scripts that upsert/search/delete vector records, and proactively call triggers (session-start, on-correction, on-task-complete). This is consistent with a memory skill but means the agent will send captured corrections/reflections to Pinecone automatically when triggers run — the user should expect content uploads and local file writes. The repository includes a gatekeeper/redaction layer, but redaction is not a guarantee of perfect secret removal.
Install Mechanism
Install uses standard Node tooling: brew formula for Node on macOS/Linux and a pointer to the official Node download page for Windows; runtime dependencies are pulled from npm (registry). No obscure external download URLs or archive extracts from unknown hosts were found.
Credentials
Only PINECONE_API_KEY is required (declared as primaryEnv); several Pinecone-related optional env vars are listed for configuration. No unrelated credentials are requested. The code reads those Pinecone config env vars as expected. The gatekeeper attempts to redact/block secret-like patterns before upsert.
Persistence & Privilege
always is false and the skill is user-invocable (and may be invoked autonomously by the agent, which is the platform default). It writes local files under the user's home and persists vectors to Pinecone — expected for this skill but worth noting because persisted data (and deletions via memory:forget-all) affect external storage and are irreversible for vector data.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dual-brain-memory-guardian
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dual-brain-memory-guardian 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added more detailed environment variable requirements and options to documentation. - Enhanced installation instructions, including platform-specific Node.js setup methods. - Updated metadata with `primaryEnv` and platform-specific install steps.
v1.0.2
dual-brain-memory-guardian v1.0.2 - Enhanced skill guidance to explicitly cover error, regression, and root cause preservation scenarios. - 安装时增加“心跳”机制的运用,确保skill能正常使用 - Updated usage examples and trigger hints for broader coverage of error handling and diagnostics. - No changes to logic or code, documentation only.
v1.0.1
更新了全部索引和项目名,修复了skill功能没有实现的问题等等 建议v1.0.0版本让openclaw每次对话强制使用本skill或者重新安装
v1.0.0
Dual-Brain Memory Guardian 1.0.0 - Refactored to Dual-Brain architecture, combining strict Markdown rule memory (Left Brain) with Pinecone-based experience memory (Right Brain). - Integrated multilingual-e5-large embedding model for advanced semantic recall using the npm-based Pinecone runtime. - Introduced clear conflict and priority protocol: Markdown rules always take precedence over Pinecone recall. - Added explicit procedures for correction handling, post-task reflection, and the safe promotion of rules from Pinecone to Markdown. - Enhanced safety with redact-and-filter gate and strict data routing policies.
元数据
Slug dual-brain-memory-guardian
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

dual-brain-memory-guardian 是什么?

Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 132 次。

如何安装 dual-brain-memory-guardian?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dual-brain-memory-guardian」即可一键安装,无需额外配置。

dual-brain-memory-guardian 是免费的吗?

是的,dual-brain-memory-guardian 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

dual-brain-memory-guardian 支持哪些平台?

dual-brain-memory-guardian 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。

谁开发了 dual-brain-memory-guardian?

由 chenni666(@chenni666)开发并维护,当前版本 v1.0.3。

💬 留言讨论