Chuyển đến nội dung
Skillpedia
Agent29k · #9483

memory-review

Skill này làm gì

Skill này khiến agent kiểm tra các ghi chú bộ nhớ mà nó lưu cho một dự án. Skill dành cho người muốn AI nhớ đúng điều và bỏ đi những điều cũ.

Khi nào nên dùng

  • ✓Khi file bộ nhớ của agent đã dài và cần được dọn dẹp.
  • ✓Khi bạn muốn tìm các bài học nên đưa thành quy tắc dự án.
  • ✓Khi bạn muốn kiểm tra các mục bộ nhớ có thông tin lỗi thời không.

Liên kết skill

https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/self-improving-agent/skills/memory-review/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/alirezarezvani/claude-skills/blob/main/engineering-team/self-improving-agent/skills/memory-review/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy rà soát các ghi chú bộ nhớ của tôi và cho biết mục nào đã lỗi thời hoặc nên trở thành quy tắc lâu dài.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent đọc file bộ nhớ chính và các file chủ đề của nó. Nó kiểm tra từng mục xem có bị lặp, có tham chiếu cũ không, hoặc có ứng viên nên đưa lên thành quy tắc không, rồi đưa ra danh sách hành động gợi ý.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết 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 candidates

What 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 (find to 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-status shows 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 --quick frequently (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
Câu hỏi thường gặp

Skill có tự thay đổi các mục bộ nhớ của tôi không?

Không. Skill đưa ra khuyến nghị về những gì nên đưa lên, cắt tỉa hoặc gộp, còn bạn quyết định nên làm gì.

File bộ nhớ có thể dài bao nhiêu?

Skill kiểm tra file bộ nhớ so với giới hạn 200 dòng khi khởi động.

Có chạy được phiên bản nhanh không?

Có. Tùy chọn nhanh chỉ đưa ra số đếm và ba ứng viên hàng đầu.

Chi tiết

Mô tả gốc của tác giả

Analyze auto-memory for promotion candidates, stale entries, consolidation opportunities, and health metrics. Use when the user runs /si:memory-review or asks what has been learned and what should be promoted or pruned.

repo: alirezarezvani/claude-skills

Độ phổ biến

Sao GitHub
29k
Vị trí xếp hạng
#9483
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự