brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
manage-memoryOrganize, extract, prune, and verify Claude Code persistent memory files. Covers MEMORY.md as a concise index, topic extraction to dedicated files, staleness detection, accuracy verification against project state, and the 200-line truncation constraint. Use when MEMORY.md is approaching the 200-line limit, after a session produces durable insights worth pre…
Independent GitHub snapshot · Automated classification · Original documentation governs
維 Claude Code 之持記憶目以跨會話保精、簡、用。MEMORY.md 每對話載入系統提示——200 行後截——故此文件當為瘦索引指向題文件為細。
~/.claude/projects/<project-path>/memory/)讀 MEMORY.md 並列記憶目諸文件:
wc -l <memory-dir>/MEMORY.md
ls -la <memory-dir>/
查行計對 200 行限。列現題文件。
得:總行、題文計、MEMORY.md 節之明圖。
敗:記憶目不存→造。MEMORY.md 不存→造最小版附 # Project Memory 頭與 ## Topic Files 節。
比記憶聲 vs 當項態。常陳式:
以 Grep 點查關鍵聲:
# Example: verify a skill count claim
grep -c "^ - id:" skills/_registry.yml
# Example: verify a file still exists
ls path/claimed/in/memory.md
得:陳項列附當正值。
敗:不能驗聲(如引不可查之外態)→留而加 (unverified) 註非默存或誤信息。
新項寫前用此濾:
例外:用者明請憶→即存,無需多證。
得:濾之可加項列,各合持+非重+驗+可行準。
敗:不確是否值留→偏於於 MEMORY.md 短留——易後修剪較重發現易。
MEMORY.md 節 ~10-15 行以上→提至專題文件:
<memory-dir>/<topic-name>.md 附述頭## Topic Files
- [topic-name.md](topic-name.md) — Brief description of contents
題文件命約:
viz-architecture.md,非 VizArchitecture.mdpatterns.md,非 session-2024-12.mdpatterns.md 非各事一文件得:MEMORY.md 於 200 行下。各題文件自含可無 MEMORY.md 脈讀。
敗:題文件 < 5 行→或不值提——留於 MEMORY.md 內。
施諸變:除陳項、加新項、更計、確 Topic Files 節列諸專文件。
MEMORY.md 結當循此式:
# Project Memory
## Section 1 — High-level context
- Bullet points, concise
## Section 2 — Another topic
- Key facts only
## Topic Files
- [file.md](file.md) — What it covers
指:
code、bold)為易掃得:MEMORY.md 於 200 行下、精、諸題文件之工鏈。
敗:提後仍 > 200 行→識最少用節並提。各節為候——即項結構覽亦可至題文件留 1 行總。
終查:
wc -l <memory-dir>/MEMORY.md
# Check for broken links
for f in $(grep -oP '\[.*?\]\(\K[^)]+' <memory-dir>/MEMORY.md); do
ls <memory-dir>/$f 2>/dev/null || echo "BROKEN: $f"
done
# Check for orphan files
ls <memory-dir>/*.md | grep -v MEMORY.md
得:行計 < 200、無斷鏈、無孤文件、點查聲精。
敗:修斷鏈(更或除)。孤文件→或 MEMORY.md 加引或刪(若不相關)。
.md(各文件由 MEMORY.md 鏈)patterns.md、viz-architecture.md)遠較日文件於取用write-claude-md — CLAUDE.md 捕項指;記憶捕跨會學prune-agent-memory — manage-memory 之反:審、歸、擇忘write-continue-here — 寫結構繼續文件為會交;補記憶為短期脈橋read-continue-here — 會始讀並動繼續文件;交之消費側create-skill — 新技或生值憶式heal — 自癒或於整步更記憶meditate — 冥想會或出值持之見