memory-management
यह क्या करती है
यह स्किल एजेंट को स्थायी मेमोरी में पैटर्न और ज्ञान सहेजने, और उसे अर्थ के आधार पर खोजने में मार्गदर्शन देती है। यह उन लोगों के लिए है जो चाहते हैं कि उनके एजेंट पिछले कार्यों से सीखें और जो काम कर चुका है उसे दोबारा इस्तेमाल करें।
कब इस्तेमाल करें
- ✓जब आप कोई सफल समाधान सहेजना चाहें ताकि बाद में दोबारा इस्तेमाल हो सके।
- ✓जब आपको नए काम से मिलता पिछला काम खोजना हो।
- ✓जब कई एजेंटों को अपना सीखा हुआ साझा करना हो।
Skill का लिंक
https://github.com/ruvnet/ruflo/blob/main/.agents/skills/memory-management/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“JWT लॉगिन के लिए जो तरीका हमने अपनाया, उसे दोबारा इस्तेमाल होने वाले पैटर्न के रूप में सहेजिए, और जब मैं authentication के बारे में पूछूँ तो मिलते-जुलते पैटर्न ढूँढिए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट हर पैटर्न को एक key और namespace के नीचे सहेजता है, आपके पूछने पर अर्थ के आधार पर मेमोरी खोजता है, और मेल खाने वाली entries लौटाता है।
तकनीकी सामग्री (मूल 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
- Check memory for existing patterns before starting
- Use hierarchical topology for coordination
- Store successful patterns after completion
- Document any new learnings
अक्सर पूछे जाने वाले सवाल
namespace क्या है?
Namespace एक नामित समूह है, जो संबंधित मेमोरी entries को एक साथ रखता है।
क्या मैं अर्थ के आधार पर खोज सकता हूँ?
हाँ। स्किल में एक semantic search कमांड है, जो मिलते-जुलते आइटम खोजता है।
इसे कब छोड़ें?
स्किल कहती है कि उन एक-बार के कामों के लिए इसे छोड़ दें जिनमें कुछ सीखने की ज़रूरत नहीं।
जानकारी
लेखक का मूल विवरण
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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
agent-adaptive-coordinator
81kआपके एजेंट को काम बदलने पर AI एजेंटों के समूह को बाँटने और फिर से संतुलित करने में मदद करती है, और काम के हिसाब से लेआउट चुनती है।
agent-agent
81kआपके एजेंट को बड़े लक्ष्य को क्रमबद्ध कार्यों की योजना में बदलना सिखाती है, और स्थिति बदलने पर योजना फिर से बनाना भी।
agent-agentic-payments
81kAI खरीदारी के लिए खर्च के आदेश मैनेज करने में मदद करती है, जिसमें खर्च की सीमा, समय अवधि, व्यापारी नियम और signed मंज़ूरियाँ शामिल हैं।
agent-analyze-code-quality
81kआपके एजेंट को कोड की गुणवत्ता जाँचने में मदद करती है, बिना फ़ाइलें बदले code smells, technical debt और refactoring के सुझाव खोजकर।
मिलती-जुलती skills
add-model-provider
394kयह आपके एजेंट को सुरक्षित कमांड से OpenClaw में नया AI मॉडल प्रोवाइडर जोड़ने, API कीज़ को सादे टेक्स्ट से बचाने और लाइव टेस्ट चलाने देती है।
acp-router
394kयह आपके एजेंट को OpenClaw के ज़रिए Claude Code या Cursor जैसे कोडिंग असिस्टेंट को काम भेजने देती है, ताकि काम उसी टूल में चले।
browser-automation
394kयह आपके एजेंट को लॉगिन, टैब और अटकी वेब पेज से उबरने समेत, वेबसाइट पर चरण-दर-चरण काम करना सिखाती है।