← Back to Skills Marketplace
chenni666

dual-brain-memory-guardian

by chenni666 · GitHub ↗ · v1.0.3 · MIT-0
linuxdarwinwin32 ⚠ suspicious
132
Downloads
1
Stars
0
Active Installs
4
Versions
Install in OpenClaw
/install dual-brain-memory-guardian
Description
Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls.
README (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
Usage Guidance
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.
Capability Tags
cryptorequires-walletrequires-oauth-token
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dual-brain-memory-guardian
  3. After installation, invoke the skill by name or use /dual-brain-memory-guardian
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug dual-brain-memory-guardian
Version 1.0.3
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 4
Frequently Asked Questions

What is dual-brain-memory-guardian?

Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls. It is an AI Agent Skill for Claude Code / OpenClaw, with 132 downloads so far.

How do I install dual-brain-memory-guardian?

Run "/install dual-brain-memory-guardian" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is dual-brain-memory-guardian free?

Yes, dual-brain-memory-guardian is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does dual-brain-memory-guardian support?

dual-brain-memory-guardian is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).

Who created dual-brain-memory-guardian?

It is built and maintained by chenni666 (@chenni666); the current version is v1.0.3.

💬 Comments