kb-memory-review
Systematically cleans and updates project memory to ensure future sessions remain efficient and accurate.
Install
mkdir -p .claude/skills/kb-memory-review && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18512" && unzip -o skill.zip -d .claude/skills/kb-memory-review && rm skill.zipInstalls to .claude/skills/kb-memory-review
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
High-cost KB memory maintenance pass for repo-local project memory. Use when docs/context/memory-maintenance.md says review is due, after large epics, after repeated contradictions/stale-doc signals, or when the user asks to deep review, consolidate, compact, or reconcile KB memory. Starts from recorded signals and pointers instead of blind repo crawling.Key capabilities
- →Review and repair repo-local memory system
- →Start from signals and pointers for targeted review
- →Classify signal types and determine likely actions
- →Investigate signal sources and linked documents
- →Make minimal edits to restore current truth
How it works
The skill performs a maintenance pass on the repo's local memory system by triaging signals, investigating their sources, and applying actions like reconciling contradictions or consolidating overlaps. It makes minimal edits to restore truth and verifies the changes.
Inputs & outputs
When to use kb-memory-review
- →Reviewing project documentation
- →Compacting repository memory
- →Resolving stale documentation contradictions
About this skill
KB Memory Review
Review and repair the repo's local memory system so fresh sessions stay cheap and accurate.
This is not startup lookup. kb-map handles normal context routing. This skill is an explicit, higher-cost maintenance pass driven by docs/context/memory-maintenance.md.
Do not call this "Dreams" in user-facing output.
Use When
kb-completerecommended a memory review.docs/context/memory-maintenance.mdhas contradiction, overlap, stale-doc, bloat, or repeated-rediscovery signals.- A large epic/migration finished.
- Fresh sessions keep rediscovering the same facts.
- Project memory feels noisy, contradictory, bloated, or stale.
Do not run automatically from kb-start, kb-work, kb-finalize, or kb-complete. Those skills may recommend it; this skill runs only when explicitly invoked or accepted by the user.
Core Rule
Start from signals and pointers. Do not crawl the whole repo unless the user explicitly asks for a broad memory audit.
Preflight
- Resolve the active project root using the
kb-mapproject-root rule. - Read:
todo.mddocs/context/PROJECT.mddocs/context/landmines.mdwhen presentdocs/context/memory-maintenance.md
- If
docs/context/memory-maintenance.mdis missing, create it only if the user asked for memory review. Otherwise recommend runningkb-completeafter normal work so signals accumulate first. - If no signals exist and no explicit broad audit was requested, stop with:
No memory-review signals found. Normal kb-map refresh is enough.
Scope Modes
| Mode | Use When | Reads |
|---|---|---|
targeted | one or more signals exist, or user names a subsystem/file | signal sources, direct neighbors, PROJECT.md |
area | many signals cluster around one subsystem, research area, or docs folder | relevant architecture/research/decision docs plus linked handoffs/plans |
broad | user explicitly asks for full memory audit, or epic/migration produced widespread drift | indexes first, then sampled subsystem docs; avoid reading all code unless needed |
Default to targeted.
Signal Handling
For each signal in docs/context/memory-maintenance.md, classify the action:
| Signal Type | Likely Action |
|---|---|
contradiction | reconcile docs; add/update decision note when both sides had a reason |
overlap | consolidate, cross-link, or clarify scope boundaries |
stale-doc | run kb-map refresh or edit affected docs directly |
bloat | run kb-compact on the specific doc/section |
repeated-rediscovery | promote the fact into PROJECT.md, architecture, research, decisions, docs/solutions/, or a learned skill candidate |
landmine-stale | verify whether the owner surface is fixed; archive if verified, otherwise keep active or mark stale-review |
Do not fix by deleting useful context blindly. Preserve exact paths, commands, dates, IDs, decisions, rejected approaches, and verification commands.
Workflow
-
Triage signals
- Group signals by subsystem, doc area, and action type.
- Identify the smallest useful batch.
- If scope is broad, present the batch order and proceed with the first batch unless the user redirects.
-
Investigate
- Read each signal source.
- Read only directly linked docs needed to verify the conflict, overlap, stale claim, or bloat.
- Use code search only to verify current truth for disputed claims.
-
Choose action
- Context map or architecture drift: update
docs/context/PROJECT.mdordocs/context/architecture/*. - Operations drift: update
docs/context/operations/*. - Research drift/overlap: update or consolidate
docs/context/research/*. - Decision drift: update or create
docs/context/decisions/*. - Landmine drift: update
docs/context/landmines.md; resolved entries need proof, while unfixed stale entries stay visible for future sessions. - Solution-learning drift: invoke
ce-compound-refreshwith the narrowest scope. - Bloat only: invoke
kb-compacton the specific artifact. - Repeated rediscovery: add one durable pointer where future sessions will actually find it.
- Context map or architecture drift: update
-
Edit
- Make the smallest edits that restore current truth.
- Prefer cross-links over duplication when two docs remain distinct.
- Prefer consolidation when two docs answer the same question for the same audience.
-
Review
- Run
document-reviewwhen requirements, architecture, decision, research, or PROJECT docs changed substantially. - Run
kb-map lookup <reviewed area>afterward to verify a fresh session would find the right pointer.
- Run
-
Update maintenance index
- Set
Last deep review: YYYY-MM-DDif a meaningful review happened. - Move resolved signal entries from
## Signals Since Last Reviewto a## Reviewed Signalssection with a one-line result. - Leave unresolved signals in place with
Status: openand the blocker. - Reset counters only for resolved signal types. Unresolved signals still count.
- Set
Output
Report:
- Scope reviewed.
- Signals resolved, left open, or converted to follow-up.
- Files edited.
- Skills invoked (
kb-map refresh,kb-compact,ce-compound-refresh,document-review). - Whether fresh-session lookup now points to the right docs.
End with one of:
Memory review complete.Memory review partially complete: <open blockers>.No memory review needed: <reason>.
When not to use it
- →When performing a startup lookup, as kb-map handles normal context routing
- →When no memory-review signals are found and a broad audit is not requested
- →When automatically running from kb-start, kb-work, kb-finalize, or kb-complete
Limitations
- →High-cost maintenance pass for repo-local project memory
- →Does not run automatically; requires explicit invocation or acceptance
- →Starts from signals and pointers, not a blind repo crawl
How it compares
This skill provides a structured, signal-driven approach to memory maintenance, focusing on targeted repairs and verification, rather than a blind, full-repo crawl or ad-hoc manual fixes.
Compared to similar skills
kb-memory-review side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| kb-memory-review (this skill) | 0 | 16d | No flags | Advanced |
| notion-knowledge-capture | 10 | 8mo | No flags | Intermediate |
| history-insight | 0 | 6mo | Review | Beginner |
| log | 0 | 6mo | No flags | Beginner |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by Irtechie
View all by Irtechie →You might also like
notion-knowledge-capture
makenotion
Transforms conversations and discussions into structured documentation pages in Notion. Captures insights, decisions, and knowledge from chat context, formats appropriately, and saves to wikis or databases with proper organization and linking for easy discovery.
history-insight
team-attention
This skill should be used when user wants to access, capture, or reference Claude Code session history. Trigger when user says "capture session", "save session history", or references past/current conversation as a source - whether for saving, extracting, summarizing, or reviewing. This includes any mention of "what we discussed", "today's work", "session history", or when user treats the conversation itself as source material (e.g., "from our conversation").
log
dev-whitecrow
기록 스킬. 중요한 의사결정이나 순간을 Decision_Log나 History에 빠르게 기록합니다.
distill
dev-whitecrow
정제 스킬. Inbox의 날것의 생각(Raw Data)을 읽어 분석하고, 이를 The_Ark의 적절한 위치에 구조화하여 배치합니다. 온보딩 단계에 따라 다르게 작동합니다.
wiki-fileback
GYF0311
把对话中产生的洞察/决策/事实按主语写回 corpus,追加 timeline 或新建页面。触发词:记一下、存下来、笔记、把刚才那个放进去、fileback、存回知识库。
paper-connections-session-summary
IcyChlorine
Update durable workflow/docs and write a new Paper Connections session summary for the current worktree. Use near session close-out when the user asks to summarize lessons learned, create a new session summary, or says `总结沉淀`.