Langsung ke konten
Skillpedia
Agen8.2k Β· #12536

memory-system

Fungsinya

Skill ini memberi AI Anda folder memori yang bertahan antar sesi chat. Ia menyimpan preferensi, konvensi, dan keputusan agar Anda tidak perlu mengulanginya. Skill ini untuk orang yang bekerja dengan AI selama berhari-hari.

Kapan dipakai

  • βœ“Saat Anda lelah menjelaskan preferensi Anda di awal setiap sesi.
  • βœ“Saat Anda ingin AI mengingat aturan proyek dan keputusan sebelumnya.
  • βœ“Saat Anda ingin indeks memori singkat yang menunjuk ke catatan yang lebih rinci.

Link skill

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/memory-system/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/memory-system/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œIngat bahwa saya lebih suka jawaban singkat dan proyek ini memakai TypeScript, dan simpan untuk sesi berikutnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill menyimpan berkas indeks singkat yang menunjuk ke berkas topik dengan rincian lebih lengkap. AI membaca indeks di awal sesi, lalu membuka berkas topik yang dibutuhkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

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
Pertanyaan umum

Di mana memori disimpan?

Disimpan di folder memori di dalam proyek, dengan berkas indeks dan berkas topik.

Seberapa besar indeksnya boleh menjadi?

Skill membatasi indeks hingga 200 baris, dengan entri singkat yang menunjuk ke rinciannya.

Jenis memori apa saja yang dipakai?

Ia memakai jenis entri seperti user, feedback, project, dan reference.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
8.2k
Peringkat
#12536
Lisensi
MIT
Diperbarui
18/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa