Agent skill
store-memory
Store information in the hierarchical memory system. Supports three tiers: working (ephemeral), episodic (recent events), and semantic (permanent patterns). Use for learning from observations. Keywords: memory, store, learn, remember, episodic, semantic, pattern.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/store-memory
Metadata
Additional technical details for this skill
- domain
- general
- category
- memory
- confidence
- 0.9
- mcp servers
-
[]
- requires approval
- NO
SKILL.md
Store Memory
Preconditions
Before applying this skill, verify:
- Memory system is initialized (Qdrant available)
- Content to store is meaningful
- Appropriate tier is selected
Actions
1. Classify Memory Tier
Determine which memory tier to use:
- Working: Temporary context, 1-hour TTL, max 20 items
- Episodic: Recent events, 7-30 day retention, time-decayed
- Semantic: Permanent patterns, never expires
2. Extract Structured Facts
Use LLM to extract key facts from content:
input: $raw_content
max_length: 4000
temperature: 0.1
output: list[str]
3. Store in Memory Tier
For Working Memory:
memory.add_working(
content=content,
metadata={"source": source, "timestamp": now}
)
For Episodic Memory:
memory.add_episodic(
content=content,
user_id=user_id,
metadata={"event_type": type, "timestamp": now}
)
For Semantic Memory:
memory.add_semantic(
content=content,
user_id=user_id,
metadata={"pattern_type": type, "confidence": confidence}
)
Success Criteria
The skill succeeds when:
- Content successfully stored
- Memory retrievable via search
- Metadata properly indexed
Failure Handling
If storage fails:
- Check Qdrant connectivity
- Verify content is not empty
- Fall back to working memory if persistent storage unavailable
Examples
Input Context:
{
"tier": "episodic",
"content": "Pod nginx-abc123 crashed due to OOM. Increased memory limit from 512Mi to 1Gi.",
"user_id": "k8s-monitor",
"event_type": "remediation_success",
"source": "remediator"
}
Expected Output:
{
"stored": true,
"tier": "episodic",
"memory_id": "mem_abc123",
"facts_extracted": 2
}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?