Skip to content
Skillpedia
Agents8.2k Β· #12536

memory-system

What it does

This skill gives your AI a memory folder that lasts between chat sessions. It stores preferences, conventions and decisions so you do not have to repeat them. It is for people who work with an AI over many days.

When to use it

  • βœ“When you are tired of explaining your preferences at the start of every session.
  • βœ“When you want the AI to remember project rules and past decisions.
  • βœ“When you want a short memory index that points to more detailed notes.

Skill link

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

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/memory-system/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œRemember that I prefer short answers and that this project uses TypeScript, and keep that for future sessions.”

5 new skills a week. 1 minute to read.

How it works

The skill keeps a short index file that points to topic files with more detail. The AI reads the index at the start of a session, then opens the topic files it needs.

Technical content (original SKILL.md)

Original text by the author, straight from 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
FAQ

Where is the memory stored?

It is stored in a memory folder inside the project, with an index file and topic files.

How big can the index get?

The skill limits the index to 200 lines, with short entries that point to the details.

What types of memory does it use?

It uses entry types such as user, feedback, project and reference.

Details

Original description by the author

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

Popularity

GitHub stars
8.2k
Ranking position
#12536
License
MIT
Updated
10/18/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills