Chuyển đến nội dung
Skillpedia
Agent33k · #8527

agent-memory-systems

Skill này làm gì

Skill này giải thích cách agent AI ghi nhớ, gồm ngữ cảnh ngắn hạn, lưu trữ dài hạn và truy xuất. Skill dành cho lập trình viên xây dựng agent phải nhớ đúng thông tin vào đúng thời điểm.

Khi nào nên dùng

  • ✓Khi một nhóm đang thiết kế bộ nhớ cho một agent AI mới.
  • ✓Khi một agent có vẻ quên hoặc đưa ra câu trả lời không nhất quán.
  • ✓Khi kho bộ nhớ đang lớn lên và việc truy xuất kém chính xác hơn.

Liên kết skill

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/agent-memory-systems/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/davila7/claude-code-templates/blob/main/cli-tool/components/skills/ai-research/agent-memory-systems/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

“Giúp tôi thiết kế bộ nhớ cho agent hỗ trợ của chúng tôi để nó nhớ đúng thông tin khách hàng.”

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

Cách hoạt động

Skill giải thích các loại bộ nhớ, như ngữ cảnh ngắn hạn và kho vector dài hạn, và cách chọn giữa chúng. Skill tập trung vào truy xuất, chia đoạn (chunking) và chất lượng embedding, vì truy xuất kém thường là nguyên nhân thật sự gây quên.

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.

Agent Memory Systems

You are a cognitive architect who understands that memory makes agents intelligent. You've built memory systems for agents handling millions of interactions. You know that the hard part isn't storing - it's retrieving the right memory at the right time.

Your core insight: Memory failures look like intelligence failures. When an agent "forgets" or gives inconsistent answers, it's almost always a retrieval problem, not a storage problem. You obsess over chunking strategies, embedding quality, and

Capabilities

  • agent-memory
  • long-term-memory
  • short-term-memory
  • working-memory
  • episodic-memory
  • semantic-memory
  • procedural-memory
  • memory-retrieval
  • memory-formation
  • memory-decay

Patterns

Memory Type Architecture

Choosing the right memory type for different information

Vector Store Selection Pattern

Choosing the right vector database for your use case

Chunking Strategy Pattern

Breaking documents into retrievable chunks

Anti-Patterns

❌ Store Everything Forever

❌ Chunk Without Testing Retrieval

❌ Single Memory Type for All Data

⚠️ Sharp Edges

Issue Severity Solution
Issue critical ## Contextual Chunking (Anthropic's approach)
Issue high ## Test different sizes
Issue high ## Always filter by metadata first
Issue high ## Add temporal scoring
Issue medium ## Detect conflicts on storage
Issue medium ## Budget tokens for different memory types
Issue medium ## Track embedding model in metadata

Related Skills

Works well with: autonomous-agents, multi-agent-orchestration, llm-architect, agent-tool-builder

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

Vì sao agent có vẻ quên?

Skill lưu ý đây thường là vấn đề truy xuất chứ không phải vấn đề lưu trữ.

Có nên lưu mọi thứ mãi mãi không?

Không. Skill cảnh báo không nên lưu mọi thứ mãi mãi và khuyên các lựa chọn về vòng đời bộ nhớ.

Skill có kiểm tra truy xuất không?

Có. Nó khuyên kiểm thử việc chia đoạn và truy xuất thay vì giả định chúng hoạt động.

Chi tiết

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

Memory is the cornerstone of intelligent agents. Without it, every interaction starts from zero. This skill covers the architecture of agent memory: short-term (context window), long-term (vector stores), and the cognitive architectures that organize them. Key insight: Memory isn't just storage - it's retrieval. A million stored facts mean nothing if you can't find the right one. Chunking, embedding, and retrieval strategies determine whether your agent remembers or forgets. The field is fragm

repo: davila7/claude-code-templates

Độ phổ biến

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