المهارات agentdb-memory-patterns
🧠

agentdb-memory-patterns

آمن 📁 الوصول إلى نظام الملفات

AIエージェント向け永続メモリの実装

متاح أيضًا من: DNYoussef

会話間でコンテキストを忘れるAIエージェントは、ユーザー体験の低下につながります。このスキルは、永続ストレージ用のAgentDBメモリパターンを提供し、エージェントがやり取りを記憶し、経験から学習し、セッション間でコンテキストを維持できるようにします。

يدعم: Claude Codex Code(CC)
📊 71 كافٍ
1

تنزيل ZIP المهارة

2

رفع في Claude

اذهب إلى Settings → Capabilities → Skills → Upload skill

3

فعّل وابدأ الاستخدام

اختبرها

استخدام "agentdb-memory-patterns". セッションメモリをセットアップしてユーザーメッセージを保存

النتيجة المتوقعة:

Session memory initialized at .agentdb/reasoningbank.db

Stored message:
- Role: user
- Content: 'What is the capital of France?'
- Timestamp: 1737472800000

To retrieve context later, call retrieveWithReasoning() with the query embedding.

استخدام "agentdb-memory-patterns". 言語のユーザー設定を保存

النتيجة المتوقعة:

Fact stored successfully:
- Category: user_preference
- Key: language
- Value: English
- Confidence: 1.0
- Source: explicit

This preference will persist across sessions.

استخدام "agentdb-memory-patterns". データベース統計を確認

النتيجة المتوقعة:

Database Statistics:
- Total patterns: 1,247
- Average confidence: 0.82
- Last consolidated: 2 hours ago
- Vector dimensions: 768
- Quantization: scalar (4x memory reduction)

التدقيق الأمني

آمن
v6 • 1/21/2026

All static findings evaluated as false positives. The skill provides documentation for AgentDB persistent memory patterns. Scanner flagged CLI command examples, database file references, and metadata URL as risks, but these are legitimate components of a database documentation skill with no actual code execution or credential access.

2
الملفات التي تم فحصها
1,036
الأسطر التي تم تحليلها
1
النتائج
6
إجمالي عمليات التدقيق

عوامل الخطر

📁 الوصول إلى نظام الملفات (2)
تم تدقيقه بواسطة: claude عرض سجل التدقيق →

درجة الجودة

38
الهندسة المعمارية
100
قابلية الصيانة
87
المحتوى
30
المجتمع
100
الأمان
91
الامتثال للمواصفات

ماذا يمكنك بناءه

ステートフルなチャットアシスタントの構築

過去の会話、ユーザー設定、コンテキストを記憶し、セッション間でパーソナライズされた応答を提供するチャットエージェントを作成します。

パターンベース学習エージェントの実現

成功したやり取りからパターンを保存し、将来の類似コンテキストに適用することで学習するエージェントを実装します。

多階層メモリシステムの作成

即時コンテキスト、セッション状態、永続的知識を分離する階層メモリアーキテクチャを持つエージェントを構築します。

جرّب هذه الموجهات

基本的なセッションメモリのセットアップ
Set up AgentDB with session memory for my AI agent. Initialize a database at .agentdb/reasoningbank.db and show me how to store conversation messages and retrieve them for context.
長期的な設定の保存
Help me implement long-term memory for storing user preferences like language, tone, and frequently used commands. Show how to persist these across sessions and retrieve them efficiently.
パターン学習の統合
Implement pattern learning for my agent. When the agent successfully handles a request, store the trigger and response pattern. Then show how to retrieve and apply these patterns to similar future requests.
統合機能付き階層メモリ
Create a complete hierarchical memory system with immediate (last 10 messages), short-term (session context), and long-term (important facts) tiers. Include automatic memory consolidation to prune low-quality patterns.

أفضل الممارسات

  • 量子化(scalarまたはbinary)を有効にして、精度を大きく損なうことなくメモリ使用量を4〜32倍削減
  • サブミリ秒の取得パフォーマンスを実現するため、1000以上のパターンのキャッシュを設定
  • 複数のパターンを挿入する際はバッチ操作を使用して、500倍高速なパフォーマンスを実現
  • 低品質のパターンを削除してパフォーマンスを維持するため、定期的なメモリ統合をスケジュール

تجنب

  • フィルタリングせずにすべてのメッセージを保存 - メモリの肥大化とクエリの低速化につながる
  • データの永続性が必要な本番環境でインメモリモードを使用
  • 定期的な統合をスキップ - 低品質のパターンが蓄積し、検索品質が低下
  • データベースファイルのセキュリティを考慮せずに機密情報を保存

الأسئلة المتكررة

AgentDBとは何ですか?従来のデータベースとどう違いますか?
AgentDBは、AIエージェント向けに設計された永続ベクトルデータベースです。ベクトル類似検索とリレーショナルストレージを組み合わせ、構造化されたメタデータも保存しながら、埋め込みに基づく高速なパターンマッチングを可能にします。
ReasoningBankからAgentDBに移行するにはどうすればよいですか?
ソースと宛先のパスを指定してmigrateToAgentDB関数を使用します。移行により、検証付きですべてのパターンが自動的に転送されます。例: migrateToAgentDB('.swarm/memory.db', '.agentdb/reasoningbank.db')
このスキルをClaude Codeで直接使用できますか?
はい。'npx agentdb@latest mcp'を実行してMCPサーバーを起動し、'claude mcp add agentdb npx agentdb@latest mcp'を使用してClaude Codeと統合します。
ベクトル検索からどのようなパフォーマンスが期待できますか?
HNSWインデックスが有効な場合、ベクトル類似検索は100マイクロ秒未満で完了します。キャッシュを使用したパターン取得は、サブミリ秒のパフォーマンスを実現します。バッチ挿入は、約2ミリ秒で100のパターンを処理します。
このスキルでパターン学習はどのように機能しますか?
パターン学習は、成功したやり取りパターン(トリガー条件と応答)をデータベースに保存します。新しいリクエストを処理する際、システムは類似のパターンを取得し、自動的に適用するか、使用を提案できます。
パターン学習にはどのような学習アルゴリズムが利用できますか?
Decision Transformer(系列モデリング)、Q-Learning(価値ベース)、SARSA(オンポリシー)、Actor-Critic(ポリシー勾配)、Active Learning、Adversarial Training、Curriculum Learning、Federated Learning、Multi-task Learningを含む9つの学習アルゴリズムが利用可能です。

تفاصيل المطور

المؤلف

ruvnet

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md