微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

elite-human-memory

elite-human-memory · v1.0.1
安全 unknown 级 作者 cliftonwknox 公开目录收录
996 下载 0 安装 3.1k 收藏 6 浏览

简介

elite-human-memory

原始描述

Portable Clawhub-compatible human-like memory system with layered storage (Working/Episodic/Semantic + optional Vector index), rich metadata schema, auto-pro...

通过你的 Agent 添加

安装目录:elite-human-memory/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/elite-human-memory/
Codex CLI~/.codex/skills/elite-human-memory/
DeepSeek Harness~/.agents/skills/elite-human-memory/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

技能正文


name: elite-human-memory description: Portable Clawhub-compatible human-like memory system with layered storage (Working/Episodic/Semantic + optional Vector index), rich metadata schema, auto-promotion heuristics, conflict detection & resolution, and semantic retrieval. Platform-agnostic design suitable for publishing and multi-agent use.

Elite Human Memory — Portable Edition

This version prioritizes broad compatibility and portability. It preserves the human-like, selective, and contextual philosophy while avoiding tight coupling to any single agent framework. Ideal for Clawhub, custom agents, or cross-platform deployments.

Memory Layers

Working Memory
Current conversation only. Transient and not persisted beyond the session.

Episodic Memory
Daily raw memory files stored at:
memory/daily/YYYY-MM-DD.md (or user-configurable path)

Semantic Memory
Curated long-term memory stored in:
memory/MEMORY.md

Vector Index (Optional / Portable)
Embeddings generated from MEMORY.md and recent episodic files.
Can be implemented with any vector database (Chroma, FAISS, LanceDB, or even a simple embedding cache).
Stored in: memory/vectors/ or external vector store.

This enables semantic search alongside traditional metadata filtering. If no vector capability is available, fall back to keyword + metadata search.

Conflict Ledger
Detected contradictions are logged in:
memory/conflicts/

Context Schema (Metadata)

Every memory entry should include:

  • When: Timestamp + recency weight
  • Where: Channel/context (Telegram, CLI, web, Discord, etc.)
  • Why: Trigger or reason it was recorded
  • State: active | stale | superseded | resolved
  • Scope: global | project | person | temporary
  • Validity:
    • confidence: high / medium / low
    • last_verified: date
    • expires: optional date
  • Related: Links to other memories, people, or projects
  • Source: Path + line number or reference (for traceability)

Auto-Promotion Heuristics

The agent should evaluate daily memory entries for promotion using the following weighted signals:

Strong signals (high weight):

  • Explicitly referenced by the user in later conversations
  • Repeated across 3+ days or sessions
  • Tied to a core project, goal, or person
  • User corrects or reinforces the memory

Supporting signals (medium weight):

  • High confidence rating
  • Clear future utility
  • Related to an active decision or preference

Promotion Rules:

  • If 2+ strong signals → Propose promotion
  • If 1 strong + 2 supporting signals → Propose promotion
  • If only supporting signals → Log for weekly review only

User Control:

  • Default behavior: Always propose before promoting
  • Optional mode: auto_promote = true (for trusted, low-risk memories)

Conflict Detection & Resolution

When two memories contain contradictory information, the agent should:

  1. Detect the conflict during write or weekly maintenance.
  2. Log it in memory/conflicts/ with:
    • Both conflicting statements
    • Context and sources
    • Severity (high / medium / low)
  3. Resolve using one of these methods:
    • Ask the user for clarification
    • Propose a resolution with reasoning
    • Auto-resolve low-severity conflicts with a note (e.g. “Temporarily preferred X over Y”)

All resolutions must update the State field of the affected memories and record the decision in the conflict log.

Retrieval Strategy

When the user asks about history, decisions, preferences, or past context, the agent should follow this order:

  1. Semantic Search (Primary)
    Query the vector index (or embedding similarity) over MEMORY.md and recent daily files for relevant memories.

  2. Metadata Filtering (Secondary)
    Apply filters on scope, state, confidence, date, and related entities.

  3. Keyword / Full-text Fallback
    Traditional search when vector capabilities are unavailable.

  4. Response Guidelines

    • Use natural confidence language
    • Mention if a memory may be stale or conflicting
    • Include Source: references when helpful

Platform Integration Notes

This skill is designed to be framework-agnostic:

  • Use file system operations for storage and retrieval
  • Integrate with any available embedding model or vector store for semantic search
  • Can coexist with simpler key-value memory systems (map rich contextual memory here, simple facts elsewhere)
  • Works in Hermes, Clawhub-published agents, LangChain, AutoGen, or custom loops

Behavioral Triggers

Auto-read memory when:

  • User asks about past decisions, preferences, people, projects, or dates
  • The current context feels incomplete or contradictory

Auto-write memory when:

  • User gives explicit “remember this” instructions
  • Clear decisions or repeated preferences appear
  • New long-running context is established

Auto-maintenance:

  • Weekly review (can be manually triggered or scheduled via cron/agent loop)

Storage Layout (Example)

memory/
├── daily/
│   └── YYYY-MM-DD.md              # Episodic / daily memory
├── conflicts/
│   └── YYYY-MM-DD.md              # Conflict logs and resolutions
├── MEMORY.md                      # Curated long-term semantic memory
└── vectors/                       # Optional embeddings (or use external DB)

Paths are examples — make them configurable for the target environment.

Notes

  • This skill is optimized for portability and easy publishing on Clawhub.
  • Vector search (when available) significantly improves retrieval quality.
  • Auto-promotion and conflict detection reduce manual maintenance burden while keeping the user in control.
  • No hard dependencies on proprietary tools or specific runtimes.

See references/two-track-approach.md for the parallel Hermes-optimized vs portable versioning strategy used in this skill family.


Version: 1.0.0 (Portable / Clawhub Compatible)
Status: Ready for publishing and cross-platform use

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill