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.mdCopy 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
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
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")
- Identify the information type (user/feedback/project/reference)
- Check if relevant topic file exists
- If yes β append to existing topic file
- If no β create new topic file with frontmatter
- Update MEMORY.md index with one-line pointer
- Confirm to user: "Saved to memory: [summary]"
Recall (Trigger: session start, or "what do you remember about X")
- Read
.agents/memory/MEMORY.mdindex - Scan for relevant entries matching the current task
- If match found β read the referenced topic file
- Apply recalled context silently (don't recite memories unless asked)
Search (Trigger: "do I have any notes about X")
- Grep across
.agents/memory/*.mdfor the search term - Return matching entries with file references
- 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
Comments
- β¦
More skills from this repository
batch-operations
8.2kHelps your agent make the same change across many files at once, such as renaming a function or replacing an old import everywhere.
brainstorming
8.2kTeaches your agent to ask clarifying questions before building anything new or complex, so it understands your goal first.
code-review-checklist
8.2kGives your agent a checklist for reviewing code for correctness, security, performance, testing and documentation, including AI-specific risks.
code-review-graph
8.2kHelps your agent review code in large projects using a structural map, so it reads only the files affected by a change.
Similar skills
add-model-provider
394kLets your agent connect a new AI model provider to OpenClaw using safe setup commands, keep API keys out of plain text, and run a live test.
acp-router
394kHelps your agent send a task to a coding assistant such as Claude Code or Cursor through OpenClaw, so the work runs in that tool.
browser-automation
394kTeaches your agent to control web pages step by step, including logins, tabs, and recovery when a page stops responding.