المهارات memory-systems
🧠

memory-systems

آمن

Design AI memory architectures with layered persistence

متاح أيضًا من: muratcankoylan,Asmayaseen,ChakshuGautam

AI agents lose all context when sessions end without proper memory systems. This skill provides battle-tested patterns for building layered memory from working context to temporal knowledge graphs.

يدعم: Claude Codex Code(CC)
🥉 74 برونزي
1

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

2

رفع في Claude

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

3

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

اختبرها

استخدام "memory-systems". Design a file-system memory structure for a writing assistant that tracks user documents, writing preferences, and revision history

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

  • memory/
  • ├── users/
  • │ └── {user_id}/
  • │ ├── profile.json (preferences, style settings)
  • │ ├── documents/
  • │ │ └── {doc_id}/
  • │ │ ├── current.md
  • │ │ └── revisions/
  • │ │ └── {timestamp}.md
  • │ └── vocabulary.json (custom terms, frequently used phrases)
  • └── indexes/
  • └── user-documents.json (doc_id to user mapping)

استخدام "memory-systems". Query: Find all team members with Python skills who are available for tasks starting next week

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

  • Entity Query Result:
  • - Alice Chen (Senior Developer) - Python, Django, FastAPI - Available from 2024-02-05
  • - Marcus Rodriguez (Backend Engineer) - Python, PostgreSQL - Available from 2024-02-06
  • - Sarah Kim (Full Stack) - Python, React, TypeScript - Available immediately

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

آمن
v1 • 2/25/2026

Educational documentation skill for AI memory architecture design. All 28 static analysis findings are false positives from pattern matching on documentation text. The skill contains no executable code, no network calls, no command execution, and no cryptographic operations. It provides conceptual guidance on memory layers, knowledge graphs, and retrieval patterns.

1
الملفات التي تم فحصها
229
الأسطر التي تم تحليلها
0
النتائج
1
إجمالي عمليات التدقيق
لا توجد مشكلات أمنية
تم تدقيقه بواسطة: claude

درجة الجودة

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

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

Customer Support Agent with Memory

Build a support agent that remembers customer preferences, past tickets, and product purchases across sessions using entity memory and temporal tracking

Research Assistant with Knowledge Accumulation

Create a research agent that builds a growing knowledge graph of papers, concepts, and relationships, enabling complex cross-domain reasoning queries

Personal AI Assistant with Long-Term Context

Develop a personal assistant that learns user preferences, tracks ongoing projects, and maintains consistent entity references across months of interactions

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

Basic Memory Layer Design
I need to add memory to my AI agent that persists across sessions. The agent helps users track their fitness goals and workout history. Design a two-layer memory system using file-system storage that tracks: (1) user profiles with goals, (2) workout session history with dates and exercises. Show the directory structure and JSON schemas for each layer.
Vector RAG with Metadata Filtering
My agent needs semantic search over 10,000+ customer support tickets while filtering by product category, date range, and resolution status. Design a vector RAG system with metadata filtering. Specify the embedding strategy, metadata schema, and query format that combines semantic similarity with metadata filters.
Entity Memory with Relationship Tracking
Build an entity memory system for a project management agent. The agent must track: team members (with roles and skills), projects (with deadlines and status), and tasks (with assignees and dependencies). Design the entity schema, relationship types, and query functions to answer: 'Who is available for a React task next week?' and 'What projects depend on the authentication refactor?'
Temporal Knowledge Graph Implementation
Design a temporal knowledge graph for a healthcare agent that tracks patient conditions, medications, and lab results with validity periods. Each fact must support time-travel queries. Provide: (1) the triple schema with valid_from and valid_until timestamps, (2) Cypher queries for 'What medications was patient X on in March 2024?' and 'When did diagnosis Y become active?', (3) consolidation logic for updating facts when new lab results arrive.

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

  • Match memory architecture to query complexity: file-system for simple persistence, vector RAG for semantic search, knowledge graphs for relationship reasoning, temporal graphs for time-aware queries
  • Implement periodic memory consolidation to merge redundant facts, archive obsolete data, and rebuild indexes before retrieval performance degrades
  • Use just-in-time memory loading with strategic context injection rather than stuffing all memories into context at once

تجنب

  • Storing all memories in the context window - causes context bloat, increases latency, and wastes attention on irrelevant information
  • Using vector-only storage for relationship-heavy data - loses entity connections and prevents graph traversal queries
  • Never consolidating memories - leads to unbounded growth, duplicate facts, and contradictory information from different time periods

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

When should I use a knowledge graph instead of a vector store for agent memory?
Use a knowledge graph when your queries require relationship traversal (What products did customers who bought X also purchase?), entity consistency tracking, or multi-hop reasoning. Use vector stores for semantic similarity search over documents without relationship structure.
How do I prevent memory from growing unboundedly over time?
Implement consolidation triggers: periodic schedule (weekly), retrieval threshold (too many outdated results), or explicit request. Consolidation merges related facts, updates validity periods, archives obsolete data, and rebuilds indexes.
What is a temporal knowledge graph and when do I need one?
A temporal knowledge graph adds validity periods (valid_from, valid_until) to facts, enabling time-travel queries like What was the users address on date X? Use it when facts change over time and you need to reconstruct historical state or prevent outdated information conflicts.
Can I implement agent memory without a database?
Yes. File-system memory uses directories and JSON files for organization. It is simple, transparent, and portable. However, it lacks semantic search and relationship tracking, requiring manual organization and explicit retrieval logic.
How do I integrate retrieved memories into the agent context effectively?
Use just-in-time loading triggered by relevance signals. Inject memories in attention-favored positions (beginning and end of context). Summarize older memories to preserve key facts without consuming token budget. Prioritize recent and high-confidence memories.
What are the privacy implications of persistent agent memory?
Persistent memory retains sensitive user data indefinitely. Implement data retention policies, allow user-initiated memory deletion, encrypt memory at rest, and avoid storing credentials or PII unless absolutely necessary. Consider session-scoped memory for sensitive contexts.

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

المؤلف

sickn33

الترخيص

MIT

مرجع

main

بنية الملفات

📄 SKILL.md