agent-memory-systems – skill Agent & Tự động hóa cho agent AI
Thiết kế bộ nhớ, truy xuất và lưu giữ theo tenant cho agent. Dùng khi lập kế hoạch RAG, lịch sử hội thoại, vector store hoặc ghi nhớ xuyên các phiên làm việc.
Cài skill agent-memory-systems 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/agent-memory-systems-1ff73.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /agent-memory-systems – 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/agent-memory-systems-1ff73.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $agent-memory-systems – 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/agent-memory-systems-1ff73.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /agent-memory-systems – 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/agent-memory-systems-1ff73.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /agent-memory-systems – 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.
Agent Memory Systems
Choose semantic records for facts/preferences, episodic records for events, and procedural records for reusable methods. Keep retrieval quality separate from storage volume and bind persistent access to verified identity.
Procedure
1. Establish the actual task, authenticated tenant/user, permission to retain content, retention limits and existing store/model versions.
2. Read the guide's tenant-scoped contract and relevant storage/chunking sections. Select an adapter supported by the installed SDK; the guide's historical sketches are not deployable integrations.
3. Specify record IDs, source evidence, timestamps, namespace, retrieval limits and conflict/version policy. Preserve originals and propose consolidation without deletion.
4. Test cross-identity rejection, stale/conflicting records, bounded retrieval and failed writes with isolated fixtures. Benchmark retrieval against held-out questions before expanding storage.
5. Deliver the architecture and evidence-backed change plan, listing unresolved adapters and hosted cost/data destinations. Apply only the persistence or provider operations actually authorized.
Detailed Guide
Read [the detailed guide](references/detailed-guide.md) before executing this skill. It retains the complete procedure and reference material. Treat its safety, prerequisites, and validation requirements as mandatory. For focused work, load the relevant sections; for end-to-end work, read the guide completely.
When to Use
- Design memory namespaces and retention for an agent serving distinct tenants or users.
- Diagnose retrieval of stale, conflicting or unauthorized conversation records.
- Plan an embedding/store migration while preserving source records and verifying isolation.
Example
Request: “Our support agent forgets preferences between sessions. Design memory for two customer tenants without sharing their history.”
Output: Load the tenant-scoped contract and background-extraction sections. Propose a semantic namespace per verified tenant/user, records with source IDs and revisions, and bounded retrieval. Retain conflicting preferences until the owner resolves them; include tests that tenant B cannot retrieve or consolidate tenant A records. Identify the existing persistent adapter and consent/retention evidence before any write.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Skill liên quan
- agent-observability – Gắn công cụ theo dõi (tracing), chỉ số token, độ trễ và chi phí cho AI agent. Dùng để…
- agent-orchestration-improve-agent – Cải thiện có hệ thống các agent hiện có thông qua phân tích hiệu năng, kỹ thuật prompt…
- agent-workflow-designer – Thiết kế quy trình đa agent sẵn sàng cho production, chọn mô hình phù hợp (tuần tự, song…
- agenthub – Plugin cộng tác đa agent, khởi chạy N subagent song song cùng cạnh tranh trên một tác vụ…
- expert-prompt-migrator – Công cụ chuẩn hóa bất kỳ prompt chuyên gia/vai trò nào thành định dạng di động và chuyển…
- context-engineering – Tối ưu thiết lập ngữ cảnh cho agent. Dùng khi bắt đầu phiên mới, khi chất lượng đầu ra…
- agent-orchestration-multi-agent-optimize – Tối ưu hệ thống đa agent với profiling phối hợp, phân phối khối lượng công việc và điều…
- agent-orchestrator – Meta-skill điều phối tất cả agent trong hệ sinh thái. Tự động quét skill, ghép theo năng…