Chuyển đến nội dung
Skillpedia
Agent8.2k · #12536

memory-system

Skill này làm gì

Skill này cho AI của bạn một thư mục bộ nhớ tồn tại giữa các phiên trò chuyện. Nó lưu sở thích, quy ước và quyết định để bạn không phải lặp lại. Dành cho người làm việc với AI trong nhiều ngày.

Khi nào nên dùng

  • ✓Khi bạn mệt vì phải giải thích sở thích của mình ở đầu mỗi phiên.
  • ✓Khi bạn muốn AI nhớ các quy tắc dự án và quyết định trước đó.
  • ✓Khi bạn muốn một chỉ mục bộ nhớ ngắn gọn trỏ đến các ghi chú chi tiết hơn.

Liên kết skill

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/memory-system/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/vudovn/ag-kit/blob/main/.agents/skills/memory-system/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ớ rằng tôi thích câu trả lời ngắn và dự án này dùng TypeScript, và giữ điều đó cho các phiên sau.”

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

Cách hoạt động

Skill giữ một file chỉ mục ngắn trỏ đến các file chủ đề có nhiều chi tiết hơn. AI đọc chỉ mục khi bắt đầu phiên, rồi mở các file chủ đề mà nó cầ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.

Memory System — Persistent Cross-Session Memory

Enables agents to remember across sessions. Never re-discover what was already learned.

Overview

The Memory System provides persistent, searchable memory that survives across sessions. Instead of re-explaining preferences, conventions, and past decisions every time, agents read a structured MEMORY.md index and topic files.

Token Impact: +1,000 tokens to load index, but saves 3,000-10,000 tokens by eliminating re-discovery.


Architecture

.agents/memory/
├── MEMORY.md              ← Lightweight index (max 200 lines)
├── user-preferences.md    ← Topic file: user role, style, tools
├── project-conventions.md ← Topic file: coding standards, patterns
├── tech-decisions.md      ← Topic file: past architectural decisions
├── feedback-history.md    ← Topic file: what user liked/disliked
└── [topic-name].md        ← Additional topic files as needed

MEMORY.md Index Format

The index is a lightweight pointer file — short entries that reference topic files for details.

Rules:

  • Maximum 200 lines total
  • Each entry: ~150 characters max
  • Format: - [type] summary → topic-file.md
  • Types: [user] [feedback] [project] [reference]

Example:

# Memory Index

## User
- [user] Prefers dark mode, uses Windows 11, PowerShell → user-preferences.md
- [user] Senior DevOps engineer, 8 years experience → user-preferences.md
- [user] Primary language: English, sometimes Turkish → user-preferences.md

## Project
- [project] Always use bun instead of npm → project-conventions.md
- [project] Tailwind v4 preferred, no v3 → tech-decisions.md
- [project] No purple/violet colors in UI → project-conventions.md

## Feedback
- [feedback] User likes concise responses, no filler → feedback-history.md
- [feedback] User dislikes verbose explanations → feedback-history.md
- [feedback] User prefers tables over bullet lists → feedback-history.md

## Reference
- [reference] Squid proxy runs on port 3128 → infrastructure-notes.md
- [reference] Git workflow: feature branches → main → project-conventions.md

Topic File Format

Each topic file has frontmatter and structured content:

---
type: user | feedback | project | reference
created: 2026-04-01
updated: 2026-04-01
---

# User Preferences

## Development Environment
- OS: Windows 11
- Shell: PowerShell
- Editor: Cursor / Windsurf
- Package Manager: bun (NOT npm)

## Communication Style
- Prefers concise responses
- Likes tables for comparisons
- Dislikes verbose explanations

Memory Taxonomy

Type What to Store Example
user Role, preferences, tools, communication style "Senior DevOps, prefers dark mode"
feedback What user liked/disliked about agent output "User said 'too verbose', prefers tables"
project Coding standards, tech choices, conventions "Use bun not npm, Tailwind v4"
reference Non-sensitive infrastructure notes, public URLs, configs "Prod API hostname and port"

What NOT to Save

Don't Save Why
Secrets, credentials, tokens, passwords, private keys, or API keys Memory is persistent and may be shared across sessions
Information derivable from code Read package.json instead of memorizing deps
Temporary debug context Clutters memory, not useful later
Exact code snippets Code changes — memory becomes stale
File paths that may move Use glob patterns or descriptions instead
Entire conversation transcripts Memory is for distilled insights only

Operations

Save (Trigger: user says "remember", "save", "don't forget")

  1. Identify the information type (user/feedback/project/reference)
  2. Check if relevant topic file exists
  3. If yes → append to existing topic file
  4. If no → create new topic file with frontmatter
  5. Update MEMORY.md index with one-line pointer
  6. Confirm to user: "Saved to memory: [summary]"

Recall (Trigger: session start, or "what do you remember about X")

  1. Read .agents/memory/MEMORY.md index
  2. Scan for relevant entries matching the current task
  3. If match found → read the referenced topic file
  4. Apply recalled context silently (don't recite memories unless asked)

Search (Trigger: "do I have any notes about X")

  1. Grep across .agents/memory/*.md for the search term
  2. Return matching entries with file references
  3. Offer to read full top
Câu hỏi thường gặp

Bộ nhớ được lưu ở đâu?

Nó được lưu trong một thư mục bộ nhớ bên trong dự án, gồm một file chỉ mục và các file chủ đề.

Chỉ mục có thể lớn đến mức nào?

Skill giới hạn chỉ mục ở 200 dòng, với các mục ngắn trỏ đến chi tiết.

Nó dùng những loại bộ nhớ nào?

Nó dùng các loại mục như user, feedback, project và reference.

Chi tiết

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

Persistent cross-session memory management. Enables agents to remember user preferences, project conventions, and past decisions across different sessions using a structured MEMORY.md index and topic files.

repo: vudovn/ag-kit

Độ phổ biến

Sao GitHub
8.2k
Vị trí xếp hạng
#12536
Giấy phép
MIT
Cập nhật
18/10/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ự