本文へスキップ
Skillpedia
エージェント48k · #5197

memory-systems

できること

このスキルは、AIが時間をかけて、また会話をまたいで重要な情報を覚えておけるように、さまざまな種類の「メモリ」を設計するのに役立ちます。これにより、AIはより賢く、一貫した対応ができるようになります。

使う場面

  • ✓さまざまな会話をまたいで、AIに物事を覚えておいてほしいとき。
  • ✓人や物(エンティティ)についての詳細を、AIが一貫して覚えているようにしたいとき。
  • ✓過去のやり取りから学習する必要があるシステムを構築するとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/memory-systems/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/memory-systems/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“昨日話した内容を、AIに覚えてもらうにはどうすればいいですか?”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルを使うと、AIが情報をどのように保存するかを設計できます。短期的なメモリ(短期記憶のようなもの)や、より永続的なメモリ(ナレッジグラフやデータベースなど)を使い、必要なときに情報を取り出せるようにできます。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

When to Use This Skill

Design short-term, long-term, and graph-based memory architectures

Use this skill when working with design short-term, long-term, and graph-based memory architectures.

Memory System Design

Memory provides the persistence layer that allows agents to maintain continuity across sessions and reason over accumulated knowledge. Simple agents rely entirely on context for memory, losing all state when sessions end. Sophisticated agents implement layered memory architectures that balance immediate context needs with long-term knowledge retention. The evolution from vector stores to knowledge graphs to temporal knowledge graphs represents increasing investment in structured memory for improved retrieval and reasoning.

When to Use

Activate this skill when:

  • Building agents that must persist across sessions
  • Needing to maintain entity consistency across conversations
  • Implementing reasoning over accumulated knowledge
  • Designing systems that learn from past interactions
  • Creating knowledge bases that grow over time
  • Building temporal-aware systems that track state changes

Core Concepts

Memory exists on a spectrum from immediate context to permanent storage. At one extreme, working memory in the context window provides zero-latency access but vanishes when sessions end. At the other extreme, permanent storage persists indefinitely but requires retrieval to enter context.

Simple vector stores lack relationship and temporal structure. Knowledge graphs preserve relationships for reasoning. Temporal knowledge graphs add validity periods for time-aware queries. Implementation choices depend on query complexity, infrastructure constraints, and accuracy requirements.

Detailed Topics

Memory Architecture Fundamentals

The Context-Memory Spectrum Memory exists on a spectrum from immediate context to permanent storage. At one extreme, working memory in the context window provides zero-latency access but vanishes when sessions end. At the other extreme, permanent storage persists indefinitely but requires retrieval to enter context. Effective architectures use multiple layers along this spectrum.

The spectrum includes working memory (context window, zero latency, volatile), short-term memory (session-persistent, searchable, volatile), long-term memory (cross-session persistent, structured, semi-permanent), and permanent memory (archival, queryable, permanent). Each layer has different latency, capacity, and persistence characteristics.

Why Simple Vector Stores Fall Short Vector RAG provides semantic retrieval by embedding queries and documents in a shared embedding space. Similarity search retrieves the most semantically similar documents. This works well for document retrieval but lacks structure for agent memory.

Vector stores lose relationship information. If an agent learns that "Customer X purchased Product Y on Date Z," a vector store can retrieve this fact if asked directly. But it cannot answer "What products did customers who purchased Product Y also buy?" because relationship structure is not preserved.

Vector stores also struggle with temporal validity. Facts change over time, but vector stores provide no mechanism to distinguish "current fact" from "outdated fact" except through explicit metadata and filtering.

The Move to Graph-Based Memory Knowledge graphs preserve relationships between entities. Instead of isolated document chunks, graphs encode that Entity A has Relationship R to Entity B. This enables queries that traverse relationships rather than just similarity.

Temporal knowledge graphs add validity periods to facts. Each fact has a "valid from" and optionally "valid until" timestamp. This enables time-travel queries that reconstruct knowledge at specific points in time.

Benchmark Performance Comparison The Deep Memory Retrieval (DMR) benchmark provides concrete performance data across memory architectures:

Memory System DMR Accuracy Retrieval Latency Notes
Zep (Temporal KG) 94.8% 2.58s Best accuracy, fast retrieval
MemGPT 93.4% Variable Good general performance
GraphRAG ~75-85% Variable 20-35% gains over baseline RAG
Vector RAG ~60-70% Fast Loses relationship structure
Recursive Summarization 35.3% Low Severe information loss

…

よくある質問

AIにおける短期記憶と長期記憶の違いは何ですか?

短期記憶は、1日分の記憶のようなものです。会話が続いている間は保持されますが、その後は失われます。長期記憶は、アーカイブのようなものです。会話が終わった後も、長期間情報を保存しておけます。

「ナレッジグラフ」を使うのはなぜですか?

ナレッジグラフを使うと、AIは情報同士のつながりを理解できます。たとえば「誰が誰を知っているか」や「何が何に関連しているか」といった関係性を把握できるため、より複雑な推論が可能になります。

「メモリアーキテクチャ」とは何ですか?

AIのために情報を整理し、保存するさまざまな方法のことです。短期的なメモリと長期的なメモリを組み合わせて、情報へのアクセスや一貫性を最適化します。

詳細

作者による元の説明

Design short-term, long-term, and graph-based memory architectures. Use when building agents that must persist across sessions, needing to maintain entity consistency across conversations, or implementing reasoning over accumulated knowledge.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5197
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル