计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
memory-management【效率与协作】Save, recall, update, or delete persistent memory across sessions. TRIGGER when: user says "remember this", "save context", "forget", "what do you know about me", "recall", or asks to persist any information for future conversations.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Manage the user's persistent memory system — a structured knowledge base that survives across sessions.
Before any operation, verify the memory directory exists:
~/.claude/memory/ exists — if not, create it with mkdir -p ~/.claude/memory/~/.claude/memory/MEMORY.md exists — if not, create it with:# Memory Index
<!-- Each entry: - [Title](filename.md) — one-line description (under 150 chars) -->
| Type | Purpose | Example |
|---|---|---|
user | Who the user is — role, expertise, preferences | "Senior backend engineer, prefers Go, new to React" |
feedback | How to work with this user — corrections and confirmations | "Don't add trailing summaries after code changes" |
project | Ongoing work context — goals, deadlines, decisions | "Auth rewrite driven by legal compliance, not tech debt" |
reference | Pointers to external systems and resources | "Pipeline bugs tracked in Linear project INGEST" |
$ARGUMENTS contains "save" or user asks to remember somethingMEMORY.md index. Search for existing memories on the same topic using Grep. If a match exists, update it instead of creating a new one.2026-04-10).git log)CLAUDE.md{type}_{topic}.md (e.g., project_auth-rewrite.md)---
name: descriptive-kebab-name
description: >
One-line description optimized for relevance matching in future conversations.
Be specific — "user prefers Go for backend services" not "user preferences".
type: user | feedback | project | reference
created: YYYY-MM-DD
updated: YYYY-MM-DD
---
Lead with the core fact or rule.
**Why:** The reason or context behind this (a past incident, strong preference, constraint).
**How to apply:** When and where this memory should influence behavior.
MEMORY.md: - [Title](filename.md) — one-line hook$ARGUMENTS contains "recall" or user asks what you rememberMEMORY.md to get the full index.$ARGUMENTS contains "list" or user asks to see all memoriesMEMORY.md and present the full index.user: 3, feedback: 5, project: 2, reference: 1$ARGUMENTS contains "remove", "forget", or "delete"MEMORY.md and memory files.MEMORY.md.MEMORY.md must stay under 200 lines. If approaching the limit, prompt the user to triage old entries.updated date in frontmatter. Update it on every edit.MEMORY.md entry and vice versa. If you find orphans during any operation, fix them.MEMORY.md is corrupted or missing entries, rebuild it by scanning ~/.claude/memory/*.md files.MEMORY.md doesn't exist, remove the dangling reference.