pluginagentmarketplace/custom-plugin-ai-agents66 installs
agent-memory
Implement agent memory - short-term, long-term, semantic storage, and retrieval
How do I install this agent skill?
npx skills add https://github.com/pluginagentmarketplace/custom-plugin-ai-agents --skill agent-memoryIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The agent-memory skill provides a framework for implementing various memory types (short-term, long-term, semantic) in AI agents. The skill is primarily documentation and configuration-based, with a benign Python script for validating the skill structure. No security vulnerabilities or malicious patterns were identified.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerpass
7 files scanned · No issues
What does this agent skill do?
Agent Memory
Give agents the ability to remember and learn across conversations.
When to Use This Skill
Invoke this skill when:
- Adding conversation history
- Implementing long-term memory
- Building personalized agents
- Managing context windows
Parameter Schema
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
task | string | Yes | Memory goal | - |
memory_type | enum | No | buffer, summary, vector, hybrid | hybrid |
persistence | enum | No | session, user, global | session |
Quick Start
from langchain.memory import ConversationBufferWindowMemory
# Simple buffer (last k messages)
memory = ConversationBufferWindowMemory(k=10)
# With summarization
from langchain.memory import ConversationSummaryBufferMemory
memory = ConversationSummaryBufferMemory(llm=llm, max_token_limit=2000)
# Vector store memory
from langchain.memory import VectorStoreRetrieverMemory
memory = VectorStoreRetrieverMemory(retriever=vectorstore.as_retriever())
Memory Types
| Type | Use Case | Pros | Cons |
|---|---|---|---|
| Buffer | Short chats | Simple | No compression |
| Summary | Long chats | Compact | Loses detail |
| Vector | Semantic recall | Relevant | Slower |
| Hybrid | Production | Best of all | Complex |
Multi-Layer Architecture
class ProductionMemory:
def __init__(self):
self.short_term = BufferMemory(k=10) # Recent
self.summary = SummaryMemory() # Compressed
self.long_term = VectorMemory() # Semantic
Troubleshooting
| Issue | Solution |
|---|---|
| Context overflow | Add summarization |
| Slow retrieval | Cache, reduce k |
| Irrelevant recall | Improve embeddings |
| Memory not persisting | Check storage backend |
Best Practices
- Use multi-layer memory for production
- Set token limits to prevent overflow
- Add metadata (timestamps, importance)
- Implement TTL for old memories
Related Skills
rag-systems- Vector retrievalllm-integration- Context managementai-agent-basics- Agent architecture
References
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/pluginagentmarketplace/custom-plugin-ai-agents/agent-memory">View agent-memory on skillZs</a>