Chuyển đến nội dung
Skillpedia
Agent81k · #1681

memory-bridge

Skill này làm gì

Skill này đưa các ghi chú bộ nhớ Claude Code của bạn vào một kho bộ nhớ chung có thể tìm kiếm. Skill dành cho người muốn ghi chú từ các phiên và dự án cũ dễ tìm.

Khi nào nên dùng

  • ✓Khi bạn muốn các ghi chú Claude Code cũ có thể tìm từ một nơi.
  • ✓Khi bạn muốn tìm bộ nhớ qua tất cả các dự án của mình.
  • ✓Khi bạn muốn xóa các mục bộ nhớ gần như trùng lặp.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-rag-memory/skills/memory-bridge/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/ruvnet/ruflo/blob/main/plugins/ruflo-rag-memory/skills/memory-bridge/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 nhập các ghi chú bộ nhớ Claude Code của tôi từ mọi dự án để tôi có thể tìm chúng cùng lúc.”

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

Cách hoạt động

Skill đọc các file bộ nhớ dạng markdown, tạo một vector cho mỗi file và lưu vào một không gian bộ nhớ. Skill bỏ qua các mục gần như giống hệt mục đã lưu, rồi cho phép bạn tìm trong toàn bộ.

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.

Memory Bridge

Import Claude Code's native auto-memory files into AgentDB for semantic search across sessions and projects.

What it does

Claude Code stores memories as markdown files in ~/.claude/projects/*/memory/*.md. This bridge:

  1. Reads all memory files (current project or all projects)
  2. Generates 384-dim ONNX embeddings (all-MiniLM-L6-v2)
  3. Stores in AgentDB's claude-memories namespace with HNSW indexing
  4. Deduplicates against existing entries (cosine similarity > 0.95)
  5. Enables unified semantic search across all memory sources

Steps

  1. Check bridge health: mcp__plugin_ruflo-core_ruflo__memory_bridge_status({}) Verify: Claude files count, AgentDB entries, SONA state, connection status.

  2. Import memories:

    • Current project: mcp__plugin_ruflo-core_ruflo__memory_import_claude({})
    • All projects: mcp__plugin_ruflo-core_ruflo__memory_import_claude({ allProjects: true })

    CLI alternative:

    node .claude/helpers/auto-memory-hook.mjs import-all
    
  3. Verify import: mcp__plugin_ruflo-core_ruflo__memory_bridge_status({}) Confirm entry counts match expected file counts.

  4. Deduplicate (if --dedupe): Search for near-duplicate entries (cosine > 0.95) and merge them, keeping the most recent version.

  5. Test unified search: mcp__plugin_ruflo-core_ruflo__memory_search_unified({ query: "test query", limit: 3 }) Results include source attribution: claude-code, auto-memory, or agentdb.

Auto-import

The bridge runs automatically on session-start via the SessionStart hook. Manual invocation is only needed for:

  • First-time import of all projects
  • After bulk memory changes outside normal sessions
  • Forcing re-embedding after model updates

Search compatibility

Use memory_search_unified to query bridged memories. This bridge does not expose a text-query Graph RAG command or the ruvector search --hybrid CLI flags; additional ruvector integrations require separate configuration and verification.

Câu hỏi thường gặp

Các ghi chú gốc nằm ở đâu?

Chúng vẫn ở nơi Claude Code lưu chúng. Skill sao chép chúng vào kho tìm kiếm.

Skill tránh trùng lặp bằng cách nào?

Skill bỏ qua các ghi chú gần như giống hệt một mục đã có, với độ tương đồng trên 0,95.

Tôi có thể kiểm tra việc nhập đã thành công chưa không?

Có. Lệnh kiểm tra trạng thái hiển thị số mục, để bạn so sánh với số file.

Chi tiết

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

Bridge Claude Code auto-memory into AgentDB with ONNX embeddings, deduplicate, and enable unified cross-project search

repo: ruvnet/ruflo

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1681
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ự