360 Secure SkillHub
360 安全技能中心

Agent Memory Kit

以 Markdown 模板和 shell 辅助脚本搭建 AI 智能体分层记忆系统:情景日志、语义知识、程序文档与反馈循环,并提供压缩前快照、上下文快照、每日日志等模板,帮助智能体跨会话记住做事的步骤。

分类:知识
ryancampbell
ryancampbell
热度 52.92
最近更新 2026-10-24 22:33:22

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add ryancampbell/agent-memory-kit
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
数据出网未确认

Agent Memory Kit

Type: Practice / Framework Dependencies: None (markdown only)


Description

A structured memory system for AI agents. Prevents the "forgot how to do things" problem by separating memory into episodic (what happened), semantic (what I know), and procedural (how to do things) layers.

Installation

# Create memory folder structure
mkdir -p memory/procedures

# Copy templates
cp templates/ARCHITECTURE.md memory/
cp templates/feedback.md memory/
cp templates/procedure-template.md memory/procedures/

Usage

  1. Read README.md to understand the system
  2. Add memory loading to your wake routine (AGENTS.md)
  3. Use templates when logging events, creating procedures, tracking feedback

Files

File Purpose
README.md Full documentation
templates/ARCHITECTURE.md Memory system overview (copy to memory/)
templates/feedback.md Success/failure tracking template
templates/procedure-template.md How-to document template
templates/daily-template.md Daily log template
templates/compaction-survival.md NEW: Pre-compaction flush guide
templates/context-snapshot-template.md NEW: Quick context save template
helpers/check-compaction.sh NEW: Token limit checker

Key Concepts

  • Episodic memory: Daily logs of WHAT happened
  • Semantic memory: Curated knowledge (MEMORY.md)
  • Procedural memory: HOW to do things
  • Feedback loops: Learn from success/failure

The Rule

Always capture the HOW, not just the WHAT. Future-you needs the steps.