KB

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.zip

Installs 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.
357 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

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

You give it
Signals from docs/context/memory-maintenance.md or a user request for memory review
You get back
A report on scope reviewed, signals resolved, files edited, and verification of lookup

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-complete recommended a memory review.
  • docs/context/memory-maintenance.md has 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

  1. Resolve the active project root using the kb-map project-root rule.
  2. Read:
    • todo.md
    • docs/context/PROJECT.md
    • docs/context/landmines.md when present
    • docs/context/memory-maintenance.md
  3. If docs/context/memory-maintenance.md is missing, create it only if the user asked for memory review. Otherwise recommend running kb-complete after normal work so signals accumulate first.
  4. 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

ModeUse WhenReads
targetedone or more signals exist, or user names a subsystem/filesignal sources, direct neighbors, PROJECT.md
areamany signals cluster around one subsystem, research area, or docs folderrelevant architecture/research/decision docs plus linked handoffs/plans
broaduser explicitly asks for full memory audit, or epic/migration produced widespread driftindexes 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 TypeLikely Action
contradictionreconcile docs; add/update decision note when both sides had a reason
overlapconsolidate, cross-link, or clarify scope boundaries
stale-docrun kb-map refresh or edit affected docs directly
bloatrun kb-compact on the specific doc/section
repeated-rediscoverypromote the fact into PROJECT.md, architecture, research, decisions, docs/solutions/, or a learned skill candidate
landmine-staleverify 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

  1. 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.
  2. 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.
  3. Choose action

    • Context map or architecture drift: update docs/context/PROJECT.md or docs/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-refresh with the narrowest scope.
    • Bloat only: invoke kb-compact on the specific artifact.
    • Repeated rediscovery: add one durable pointer where future sessions will actually find it.
  4. 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.
  5. Review

    • Run document-review when 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.
  6. Update maintenance index

    • Set Last deep review: YYYY-MM-DD if a meaningful review happened.
    • Move resolved signal entries from ## Signals Since Last Review to a ## Reviewed Signals section with a one-line result.
    • Leave unresolved signals in place with Status: open and the blocker.
    • Reset counters only for resolved signal types. Unresolved signals still count.

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.

SkillInstallsUpdatedSafetyDifficulty
kb-memory-review (this skill)016dNo flagsAdvanced
notion-knowledge-capture108moNo flagsIntermediate
history-insight06moReviewBeginner
log06moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

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.

10115

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").

02

log

dev-whitecrow

기록 스킬. 중요한 의사결정이나 순간을 Decision_Log나 History에 빠르게 기록합니다.

00

distill

dev-whitecrow

정제 스킬. Inbox의 날것의 생각(Raw Data)을 읽어 분석하고, 이를 The_Ark의 적절한 위치에 구조화하여 배치합니다. 온보딩 단계에 따라 다르게 작동합니다.

00

wiki-fileback

GYF0311

把对话中产生的洞察/决策/事实按主语写回 corpus,追加 timeline 或新建页面。触发词:记一下、存下来、笔记、把刚才那个放进去、fileback、存回知识库。

00

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 `总结沉淀`.

00

Search skills

Search the agent skills registry