← 返回
未分类 Key

Dual-Brain-Memory-Guardian

Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls.
chenniX
未分类 community v1.0.1 2 版本 100000 Key: 需要
★ 0
Stars
📥 183
下载
💾 0
安装
2
版本
#latest

概述

---

name: dual-brain-memory-guardian

description: Dual-brain memory skill for correction handling, rewrite quality, post-task reflection, and semantic recall of historical pitfalls.

metadata: {"openclaw":{"requires":{"bins":["node","npm"],"env":["PINECONE_API_KEY"]},"os":["linux","darwin","win32"],"skillKey":"dual-brain-memory-guardian-1.0.1"}}

user-invocable: true


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.

Common trigger hints: correction, rewrite, reflection, pitfall, memory recall, behavior constraints.

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.

Fallback policy:

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

Quick Reference

TopicFile
------------
Skill contractSKILL.md
Setupsetup.md
Runtime operationsoperations.md
Reflection templatereflections.md
Heartbeat behaviorheartbeat-rules.md
Safety boundariesboundaries.md
Pinecone config/runtimesrc/pinecone/
CLI entrypointscripts/memory-cli.js

Requirements

  • Node.js >= 20
  • npm
  • @pinecone-database/pinecone
  • Environment variable: PINECONE_API_KEY
  • 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

版本历史

共 2 个版本

  • v1.0.1 详细请看https://clawhub.ai/chenni666/dual-brain-memory-guardian 当前
    2026-04-04 22:20 安全 安全
  • v1.0.0 Initial release
    2026-04-04 04:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

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

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,060 📥 798,779
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,362 📥 318,870