Memory Type System
结构化记忆类型系统 — 四类型分类 + frontmatter 规范 + 写入/召回/漂移防护全流程。适用于所有 Agent 的长期记忆管理。解决记忆混乱、召回不准、膨胀失控问题。灵感源自 Claude Code Memory Type Taxonomy(memoryTypes.ts)。
Install
npx skills add kadaliao/claude-code-skills-collection --skill memory-type-systemgit clone --depth 1 https://github.com/kadaliao/claude-code-skills-collection.git /tmp/claude-code-skills-collection
mkdir -p ~/.claude/skills
cp -r /tmp/claude-code-skills-collection/memory-type-system ~/.claude/skills/memory-type-systemPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Memory Type System ## 四种记忆类型 ### 1. user(用户画像) - **内容**: 用户角色/目标/职责/知识/偏好 - **何时写**: 了解到用户角色、偏好、职责、知识水平时 - **如何用**: 根据用户画像调整工作方式(资深工程师 vs 初学者) - **示例**: "用户是数据科学家,正在调查日志系统" → 用数据视角解释 ### 2. feedback(反馈纠正) - **内容**: 用户对你工作方式的纠正和确认 - **何时写**: 用户纠正你("不要这样")**或确认**非显而易见的做法("对,就这样") - **⚠️ 纠正容易察觉,确认很安静 — 留意它们** - **格式要求**: ``` 规则本身 **Why:** 原因(事故/偏好/上下文) **How to apply:** 何时何处应用 ``` - **示例**: "测试不要 mock 数据库 — 上季度 mock 通过但线上迁移失败" ### 3. project(项目状态) - **内容**: 进行中的工作/目标/决策/里程碑(不可从代码推导的) - **何时写**: 了解到谁在做什么、为什么、什么时间前 - **⚠️ 相对日期→绝对日期**("周四" → "2026-03-05") - **格式要求**: ``` 事实/决策 **Why:** 动机(约束/截止日期/利益相关者要求) **How to apply:** 如何影响你的建议 ``` ### 4. reference(外部指针) - **内容**: 外部系统/工具的位置和用途 - **何时写**: 了解到 bug 在哪里追踪、文档在哪里、仪表板在哪里 - **示例**: "管道 bug 追踪在 Linear 项目 INGEST" ## 绝对不记 - 代码模式/架构/文件结构(grep 可查) - Git 历史(git log 权威) - 调试方案(fix 在代码里) - 已有规则文件中的内容 - 临时任务状态 - 活动日志/汇总(问"哪部分出乎意料",记那个) ## 记忆 Frontmatter 规范 每条记忆一个文件,frontmatter 格式: ```markdown --- name: 记忆名称 description: 一行描述(用于未来召回时判断相关性,要具体) type: user|feedback|project|reference --- 记忆正文 ``` ## 召回验证 基于记忆行动前: - 提到文件路径 → 检查存在 - 提到函数名 → grep 确认 - 提到项目状态 → 对照当前代码 - 矛盾时 → 信当前,更新记忆 > "记忆说 X 存在" ≠ "X 现在存在" ## MEMORY.md 索引规范 - MEMORY.md 是**索引**,不是记忆本身 - 每条一行,≤150 字符:`- [Title](file.md) — 一句话钩子` - 上限 200 行 / 25KB - 不要把记忆内容直接写在 MEMORY.md 里
Details
- Skill name
memory-type-system- Repository
- kadaliao/claude-code-skills-collection
- Path
memory-type-system/SKILL.md- Repo updated
- 31 March 2026
FAQ
What does the Memory Type System skill do?
结构化记忆类型系统 — 四类型分类 + frontmatter 规范 + 写入/召回/漂移防护全流程。适用于所有 Agent 的长期记忆管理。解决记忆混乱、召回不准、膨胀失控问题。灵感源自 Claude Code Memory Type Taxonomy(memoryTypes.ts)。
How do I install the Memory Type System skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add kadaliao/claude-code-skills-collection --skill memory-type-system. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Memory Type System popular?
It lives in kadaliao/claude-code-skills-collection, which has 9 GitHub stars and 8 forks.
Related skills
Adversarial Verification
9kadaliao/claude-code-skills-collection
对抗性验证技能 — 验证代码变更/部署/任务交付物的正确性。不是确认"它能工作",而是尝试"把它搞坏"。用于:(1) 完成非平凡任务后自验 (2) 审查 PR/MR (3) 部署后验证 (4) bobooo 说"验证一下"。灵感源自 Claude Code Verification Agent 设计。
Coordinator Orchestrator
9kadaliao/claude-code-skills-collection
多 Agent 协调者模式 — 你是指挥官,不是执行者。调度 Worker 做研究/实现/验证,你负责综合和决策。适用于:(1) 复杂任务需要多步骤并行 (2) 需要研究→综合→实现→验证的工作流 (3) bobooo 说"用 CC 做"时的编排模式。灵感源自 Claude Code Coordinator Mode。
Lightweight Explorer
9kadaliao/claude-code-skills-collection
轻量探索模式 — 用最少 token 完成代码搜索和调研。核心理念:只读搜索不需要加载全部工具和项目规则。适用于:(1) 搜索代码库找文件/函数 (2) 调研项目架构 (3) 多文件分析 (4) 回答"代码里哪里有 X"类问题。灵感源自 Claude Code Explore Agent 设计。
Smart Memory Guard
9kadaliao/claude-code-skills-collection
智能记忆管理 — 防膨胀、防漂移、分类写入。解决记忆文件无限增长、过时记忆误导行动、什么都记导致噪音太多的问题。适用于所有 OpenClaw Agent。触发条件:(1) 写入 MEMORY.md 前自动执行分类检查 (2) 基于记忆行动前验证漂移 (3) heartbeat 时检查膨胀 (4) 被主人说"记忆太乱了"时。灵感源自 Claude Code Memory 系统设计。
Dataroom Prep
10Founders-Edge/toolkit
Help a founder build and organize a fundraising dataroom before they start raising. Use this skill whenever someone asks what goes in a dataroom, to build or set up a dataroom, to organize their dataroom, what documents investors will ask for, or how to prepare for diligence. Triggers on: "prep my dataroom", "build a dataroom", "what goes in a dataroom", "organize my dataroom", "what docs do investors need", "get ready for diligence", "set up our data room". This is the build-side partner to the diligence-review skill: diligence-review finds the gaps, dataroom-prep assembles the folder and tel
Task Concurrency Patterns
9kadaliao/claude-code-skills-collection
任务并发与依赖管理模式 — 多 Agent/多步骤任务的并发安全、读写分离、依赖编排。适用于:(1) 多 Worker 并行任务 (2) 复杂项目拆分执行 (3) 需要 blocks/blockedBy 依赖关系的工作流。灵感源自 Claude Code Task System + Coordinator Concurrency Rules。
Browse the most popular Claude skills, all productivity & notes skills, or write your own with the skills generator.