360 Secure SkillHub
360 安全技能中心

Memory Extractor

该 Skill 用于把最近会话轮次中的可长期复用信息提取为 user、feedback、project、reference 四类记忆,并提供记忆清单脚本扫描指定记忆目录,附带便携提示模板;强调按主题组织、优先更新已有主题、避免保存易漂移的代码状态事实。

2020必胜
2020必胜
热度 35.50
最近更新 2026-04-03 21:41:30
分类:知识依赖:代码执行 / 读写文件 / 内部调用大模型应用场景:笔记整理 / 摘要总结

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add memory-extractor
Metadata
name
memory-extractor
description
Extract durable memories from recent conversation turns into user, feedback, project, and reference categories while avoiding stale code-state facts.

Memory Extractor

Use this skill when you want to persist durable collaboration context from the latest conversation turns.

Use It For

  • capturing user preferences
  • saving feedback about how to work
  • recording non-code project constraints or deadlines
  • storing pointers to external systems

Avoid It For

  • storing code structure or file locations
  • saving short-lived task state that belongs in a plan
  • duplicating an existing memory topic without checking first

Quick Start

Build a manifest of existing memories:

python3 {baseDir}/scripts/memory_manifest.py --memory-root /path/to/memory

Then use the portable prompt in references/prompt-template.md.

Four Types

  • user
  • feedback
  • project
  • reference

Rules

  • save only durable signals
  • avoid code-state facts that can drift
  • prefer updating an existing topic file
  • organize by topic, not chronology

Supporting Files