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

memory-management

できること

このスキルは、パターンと知識を永続的なメモリに保存し、意味によって検索するようエージェントに導きます。エージェントが以前の作業から学び、うまくいったことを再利用してほしい人のためのものです。

使う場面

  • ✓うまくいった解決策を、後で再利用できるように保存したいとき。
  • ✓新しい作業に似た過去の作業を見つけたいとき。
  • ✓複数のエージェントが学んだことを共有する必要があるとき。

スキルのリンク

https://github.com/ruvnet/ruflo/blob/main/.agents/skills/memory-management/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“JWTのログインに使った方法を再利用できるパターンとして保存し、認証について尋ねたときには似たパターンを見つけてください。”

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

仕組み

エージェントは、各パターンをキーとネームスペースの下に保存し、頼まれたときに意味によってメモリを検索し、一致する項目を取り出します。

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

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

Memory Management Skill

Purpose

AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management.

When to Trigger

  • need to store successful patterns
  • searching for similar solutions
  • semantic lookup of past work
  • learning from previous tasks
  • sharing knowledge between agents
  • building knowledge base

When to Skip

  • no learning needed
  • ephemeral one-off tasks
  • external data sources available
  • read-only exploration

Commands

Store Pattern

Store a pattern or knowledge item in memory

npx @claude-flow/cli memory store --key "[key]" --value "[value]" --namespace patterns

Example:

npx @claude-flow/cli memory store --key "auth-jwt-pattern" --value "JWT validation with refresh tokens" --namespace patterns

Semantic Search

Search memory using semantic similarity

npx @claude-flow/cli memory search --query "[search terms]" --limit 10

Example:

npx @claude-flow/cli memory search --query "authentication best practices" --limit 5

Retrieve Entry

Retrieve a specific memory entry by key

npx @claude-flow/cli memory get --key "[key]" --namespace [namespace]

Example:

npx @claude-flow/cli memory get --key "auth-jwt-pattern" --namespace patterns

List Entries

List all entries in a namespace

npx @claude-flow/cli memory list --namespace [namespace]

Example:

npx @claude-flow/cli memory list --namespace patterns --limit 20

Delete Entry

Delete a memory entry

npx @claude-flow/cli memory delete --key "[key]" --namespace [namespace]

Initialize HNSW Index

Initialize HNSW vector search index

npx @claude-flow/cli memory init --enable-hnsw

Memory Stats

Show memory usage statistics

npx @claude-flow/cli memory stats

Export Memory

Export memory to JSON

npx @claude-flow/cli memory export --output memory-backup.json

Scripts

Script Path Description
memory-backup .agents/scripts/memory-backup.sh Backup memory to external storage
memory-consolidate .agents/scripts/memory-consolidate.sh Consolidate and optimize memory

References

Document Path Description
HNSW Guide docs/hnsw.md HNSW vector search configuration
Memory Schema docs/memory-schema.md Memory namespace and schema reference

Best Practices

  1. Check memory for existing patterns before starting
  2. Use hierarchical topology for coordination
  3. Store successful patterns after completion
  4. Document any new learnings
よくある質問

ネームスペースとは何ですか?

関連するメモリの項目を1つにまとめる、名前付きのグループです。

意味によって検索できますか?

はい。スキルには、似た項目を探す意味検索のコマンドがあります。

いつスキップすべきですか?

学ぶ必要がない一回限りの作業では使わないよう、スキルは述べています。

詳細

作者による元の説明

AgentDB memory system with HNSW vector search. Provides 150x-12,500x faster pattern retrieval, persistent storage, and semantic search capabilities for learning and knowledge management. Use when: need to store successful patterns, searching for similar solutions, semantic lookup of past work, learning from previous tasks, sharing knowledge between agents, building knowledge base. Skip when: no learning needed, ephemeral one-off tasks, external data sources available, read-only exploration.

repo: ruvnet/ruflo

人気

GitHubのスター
81k
ランキング
#1533
ライセンス
MIT
更新日
2026/11/2

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

0

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

コメント

  • …

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

似ているスキル