본문으로 건너뛰기
Skillpedia
에이전트8.2k · #12536

memory-system

하는 일

이 스킬은 채팅 세션이 끝나도 남는 메모리 폴더를 AI에게 줍니다. 선호, 관례, 결정을 저장해서 매번 반복해서 설명하지 않게 합니다. 여러 날에 걸쳐 AI와 함께 일하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓세션을 시작할 때마다 내 선호를 설명하는 것이 지겨울 때.
  • ✓AI가 프로젝트 규칙과 과거 결정을 기억하기를 원할 때.
  • ✓자세한 메모로 이어지는 짧은 메모리 인덱스를 원하는 경우.

스킬 링크

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

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

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.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“제가 짧은 답변을 선호하고 이 프로젝트는 TypeScript를 쓴다는 것을 기억해 두고, 다음 세션에도 유지해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

이 스킬은 자세한 내용이 담긴 주제 파일로 연결되는 짧은 인덱스 파일을 유지합니다. AI는 세션 시작 시 인덱스를 읽고, 필요한 주제 파일만 엽니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 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
자주 묻는 질문

메모리는 어디에 저장되나요?

프로젝트 안의 메모리 폴더에 인덱스 파일과 주제 파일로 저장됩니다.

인덱스는 얼마나 커질 수 있나요?

스킬은 인덱스를 200줄로 제한하며, 항목은 짧게 쓰고 세부 내용으로 연결합니다.

어떤 종류의 메모리를 쓰나요?

사용자, 피드백, 프로젝트, 참고 같은 항목 유형을 사용합니다.

상세 정보

작성자의 원본 설명

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

인기도

GitHub 스타
8.2k
순위
#12536
라이선스
MIT
업데이트
2026. 10. 18.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬