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

memory-management

Skill này làm gì

Skill này hướng dẫn agent lưu các mẫu và kiến thức vào bộ nhớ bền vững, rồi tìm kiếm theo ý nghĩa. Phù hợp với người muốn agent học từ các tác vụ trước và tái sử dụng những gì đã hiệu quả.

Khi nào nên dùng

  • ✓Khi bạn muốn lưu một giải pháp thành công để tái sử dụng sau này.
  • ✓Khi bạn cần tìm công việc trước đây tương tự với một tác vụ mới.
  • ✓Khi nhiều agent cần chia sẻ những gì chúng đã học.

Liên kết skill

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/memory-management/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/.agents/skills/memory-management/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

“Lưu cách chúng ta đã làm đăng nhập JWT như một mẫu có thể tái sử dụng, rồi tìm các mẫu tương tự khi tôi hỏi về xác thực.”

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

Cách hoạt động

Agent lưu từng mẫu dưới một khóa và namespace, tìm trong bộ nhớ theo ý nghĩa khi bạn hỏi, và lấy các mục khớp.

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 Management Skill

Purpose

AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.

When to Trigger

  • need to store successful patterns
  • searching for similar solutions
  • semantic lookup of past work
  • learning from previous tasks
  • sharing knowledge between agents
  • building knowledge base

When to Skip

  • no learning needed
  • ephemeral one-off tasks
  • external data sources available
  • read-only exploration

Commands

Store Pattern

Store a pattern or knowledge item in memory

npx @claude-flow/cli memory store --key "[key]" --value "[value]" --namespace patterns

Example:

npx @claude-flow/cli memory store --key "auth-jwt-pattern" --value "JWT validation with refresh tokens" --namespace patterns

Semantic Search

Search memory using semantic similarity

npx @claude-flow/cli memory search --query "[search terms]" --limit 10

Example:

npx @claude-flow/cli memory search --query "authentication best practices" --limit 5

Retrieve Entry

Retrieve a specific memory entry by key

npx @claude-flow/cli memory get --key "[key]" --namespace [namespace]

Example:

npx @claude-flow/cli memory get --key "auth-jwt-pattern" --namespace patterns

List Entries

List all entries in a namespace

npx @claude-flow/cli memory list --namespace [namespace]

Example:

npx @claude-flow/cli memory list --namespace patterns --limit 20

Delete Entry

Delete a memory entry

npx @claude-flow/cli memory delete --key "[key]" --namespace [namespace]

Initialize HNSW Index

Initialize HNSW vector search index

npx @claude-flow/cli memory init --enable-hnsw

Memory Stats

Show memory usage statistics

npx @claude-flow/cli memory stats

Export Memory

Export memory to JSON

npx @claude-flow/cli memory export --output memory-backup.json

Scripts

Script Path Description
memory-backup .agents/scripts/memory-backup.sh Backup memory to external storage
memory-consolidate .agents/scripts/memory-consolidate.sh Consolidate and optimize memory

References

Document Path Description
HNSW Guide docs/hnsw.md HNSW vector search configuration
Memory Schema docs/memory-schema.md Memory namespace and schema reference

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
Câu hỏi thường gặp

Namespace là gì?

Namespace là một nhóm được đặt tên, giữ các mục bộ nhớ liên quan lại với nhau.

Tôi có thể tìm kiếm theo ý nghĩa không?

Có. Skill có một lệnh tìm kiếm ngữ nghĩa để tìm các mục tương tự.

Khi nào tôi nên bỏ qua nó?

Skill khuyên bỏ qua với các tác vụ một lần mà không có gì cần học.

Chi tiết

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

AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management. Use when: need to store successful patterns, searching for similar solutions, semantic lookup of past work, learning from previous tasks, sharing knowledge between agents, building knowledge base. Skip when: no learning needed, ephemeral one-off tasks, external data sources available, read-only exploration.

repo: ruvnet/ruflo

Độ phổ biến

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