/install dual-brain-memory-guardian
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:
- The user corrects your output or asks for a rewrite.
- You complete non-trivial work and need structured self-reflection.
- You need to recall similar historical pitfalls with fuzzy semantic matching.
- You need high-confidence behavior constraints that must not be violated.
- 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:
- Runtime execution flow lives in
operations.mdonly. - Learning criteria and promotion logic live in
learning.mdonly. - Safety and data boundaries live in
boundaries.mdonly. - Setup and wiring steps live in
setup.mdonly.
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:
- Left Brain (Markdown): explicit rules and durable preferences.
- 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:
memory:session-startmemory:auto-session-startmemory:on-correctionmemory:on-task-completememory:auto-task-completememory: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:
- On session/conversation start, call
memory:auto-session-startbefore substantial work. - On final response for non-trivial work, call
memory:auto-task-completebefore ending. - Keep
memory:on-correctionfor immediate correction capture events. - When an error happens, call
memory:on-correctionimmediately with what failed and why (root cause).
Fallback policy:
- If auto wrappers are unavailable, call
memory:session-startandmemory:on-task-completemanually.
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_NAMEPINECONE_CLOUDPINECONE_REGIONPINECONE_MODELPINECONE_FIELD_MAP_TEXTPINECONE_NAMESPACE_PREFIXMEMORY_TENANTPINECONE_IMPORT_INTEGRATION_IDDUAL_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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install dual-brain-memory-guardian - 安装完成后,直接呼叫该 Skill 的名称或使用
/dual-brain-memory-guardian触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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。