memory-review – skill Agent & Tự động hóa cho agent AI
Phân tích auto-memory để tìm ứng viên thăng cấp, mục cũ, cơ hội hợp nhất và chỉ số sức khỏe. Dùng khi người dùng chạy /si:memory-review hoặc hỏi đã học được gì và nên thăng cấp hay cắt tỉa gì.
Cài skill memory-review bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-review-18679.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /memory-review – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-review-18679.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $memory-review – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-review-18679.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /memory-review – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/memory-review-18679.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /memory-review – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
/si:memory-review — Analyze Auto-Memory
Performs a comprehensive audit of Claude Code's auto-memory and produces actionable recommendations.
Usage
/si:memory-review # Full review
/si:memory-review --quick # Summary only (counts + top 3 candidates)
/si:memory-review --stale # Focus on stale/outdated entries
/si:memory-review --candidates # Show only promotion candidatesWhat It Does
Step 1: Locate memory directory
# Find the project's auto-memory directory
MEMORY_DIR="$HOME/.claude/projects/$(pwd | sed 's|/|%2F|g; s|%2F|/|; s|^/||')/memory"
# Fallback: check common path patterns
# ~/.claude/projects/<user>/<project>/memory/
# ~/.claude/projects/<absolute-path>/memory/
# List all memory files
ls -la "$MEMORY_DIR"/If memory directory doesn't exist, report that auto-memory may be disabled. Suggest checking with /memory.
Step 2: Read and analyze MEMORY.md
Read the full MEMORY.md file. Count lines and check against the 200-line startup limit.
Analyze each entry for:
1. Recurrence indicators
- Same concept appears multiple times (different wording)
- References to "again" or "still" or "keeps happening"
- Similar entries across topic files
2. Staleness indicators
- References files that no longer exist (
findto verify) - Mentions outdated tools, versions, or commands
- Contradicts current CLAUDE.md rules
3. Consolidation opportunities
- Multiple entries about the same topic (e.g., three lines about testing)
- Entries that could merge into one concise rule
4. Promotion candidates — entries that meet ALL criteria:
- Appeared in 2+ sessions (check wording patterns)
- Not project-specific trivia (broadly useful)
- Actionable (can be written as a concrete rule)
- Not already in CLAUDE.md or
.claude/rules/
Step 3: Read topic files
If MEMORY.md references or the directory contains additional files (debugging.md, patterns.md, etc.):
- Read each one
- Cross-reference with MEMORY.md for duplicates
- Check for entries that belong in the main file (high value) vs. topic files (details)
Step 4: Cross-reference with CLAUDE.md
Read the project's CLAUDE.md (if it exists) and compare:
- Are there MEMORY.md entries that duplicate CLAUDE.md rules? (→ remove from memory)
- Are there MEMORY.md entries that contradict CLAUDE.md? (→ flag conflict)
- Are there MEMORY.md patterns not yet in CLAUDE.md that should be? (→ promotion candidate)
Also check .claude/rules/ directory for existing scoped rules.
Step 5: Generate report
Output format:
📊 Auto-Memory Review
Memory Health:
MEMORY.md: {{lines}}/200 lines ({{percent}}%)
Topic files: {{count}} ({{names}})
CLAUDE.md: {{lines}} lines
Rules: {{count}} files in .claude/rules/
🎯 Promotion Candidates ({{count}}):
1. "{{pattern}}" — seen {{n}}x, applies broadly
→ Suggest: {{target}} (CLAUDE.md / .claude/rules/{{name}}.md)
2. ...
🗑️ Stale Entries ({{count}}):
1. Line {{n}}: "{{entry}}" — {{reason}}
2. ...
🔄 Consolidation ({{count}} groups):
1. Lines {{a}}, {{b}}, {{c}} all about {{topic}} → merge into 1 entry
2. ...
⚠️ Conflicts ({{count}}):
1. MEMORY.md line {{n}} contradicts CLAUDE.md: {{detail}}
💡 Recommendations:
- {{actionable suggestion}}
- {{actionable suggestion}}When to Use
- After completing a major feature or debugging session
- When
/si:memory-statusshows MEMORY.md is over 150 lines - Weekly during active development
- Before starting a new project phase
- After onboarding a new team member (review what Claude learned)
Tips
- Run
/si:memory-review --quickfrequently (low overhead) - Full review is most valuable when MEMORY.md is getting crowded
- Act on promotion candidates promptly — they're proven patterns
- Don't hesitate to delete stale entries — auto-memory will re-learn if needed
Skill liên quan
- memory-status – Bảng điều khiển sức khỏe bộ nhớ: số dòng, file chủ đề, dung lượng, mục cũ và khuyến…
- merge – Hợp nhất nhánh của agent thắng cuộc vào base, lưu trữ các nhánh thua và dọn dẹp…
- datadog-automation – Tự động hóa tác vụ Datadog qua Rube MCP (Composio): truy vấn metric, tìm log, quản lý…
- datawebot – Tìm sản phẩm bán trên các cửa hàng trực tuyến, liệt kê giá của người bán kèm liên kết…
- spark-memory-thermal-ops – Quản lý bộ nhớ hợp nhất và nhiệt độ trong các tác vụ ML chạy lâu trên NVIDIA DGX Spark…
- notebooklm – Skill tự động hóa trình duyệt để điều khiển NotebookLM của Google. Dùng khi người dùng…
- delegating-to-agents – Ủy thác công việc có ranh giới rõ ràng cho các AI agent khác, đồng thời giữ ngữ cảnh…
- office-hours – /c-level-agents:office-hours [topic] — Phỏng vấn founder kiểu YC gồm 6 câu hỏi trước khi…