memory-proactive

GitHub

提供主动式分层记忆召回与通用领域路由功能。通过tiered_context_injector.py结合会话、治理及知识笔记等多路径注入上下文,并利用domain_memory.py按项目、股票等通用领域隔离记忆,防止主题干扰,支持灵活参数配置。

skills/memory-proactive/SKILL.md mage0535/hermes-memory-installer

Trigger Scenarios

需要主动检索相关上下文以增强对话连贯性时 用户希望按特定领域(如项目、股票)分类或查询记忆时 系统需在交互前整合多层记忆信息时

Install

npx skills add mage0535/hermes-memory-installer --skill memory-proactive -g -y
More Options

Use without installing

npx skills use mage0535/hermes-memory-installer@memory-proactive

指定 Agent (Claude Code)

npx skills add mage0535/hermes-memory-installer --skill memory-proactive -a claude-code -g -y

安装 repo 全部 skill

npx skills add mage0535/hermes-memory-installer --all -g -y

预览 repo 内 skill

npx skills add mage0535/hermes-memory-installer --list

SKILL.md

Frontmatter
{
    "name": "memory-proactive",
    "description": "Proactive layered recall and generic domain-aware routing."
}

Memory Proactive

This skill describes the current proactive recall surfaces that remain useful in the local repository.

Layered Context Injection

Primary engine: tiered_context_injector.py

It combines multiple recall paths before the next interaction:

  • recent session recall from shared SQLite state
  • governance-backed object and hub recall
  • knowledge note recall
  • optional live Hindsight recall when the query profile needs it

Example:

python3 scripts/tiered_context_injector.py --query "user preferences"

Useful knobs:

  • --min-score 0.3
  • --max-results 10
  • --recall "project status" "system config"
  • --domains project,stock

Generic Domain Routing

Helper: domain_memory.py

This is a lightweight legacy helper for splitting local memory into generic domains so one topic does not crowd out everything else.

Example domains:

  • project
  • stock
  • system
  • marketing
  • relationship
  • general

Example:

python3 scripts/domain_memory.py check project "Milestone planning note"
python3 scripts/domain_memory.py status

Guidance

  • use generic domains, not user- or project-specific hardcoded labels
  • keep recall queries portable across agent runtimes
  • treat this skill as an optional helper layer, not a required production contract

Version History

  • cf22e8b Current 2026-07-05 14:36

Same Skill Collection

skills/memory-starter-kit/SKILL.md
skills/memory-archivist/SKILL.md

Metadata

Files
0
Version
8afe662
Hash
0fd81a34
Indexed
2026-07-05 14:36

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-07-22 05:27
浙ICP备14020137号-1 $お客様$