From scaffolding
Stores reusable insights as vector-embedded entries for cosine-similarity recall across sessions. Use when an agent discovers patterns, decisions, or gotchas worth retrieving later.
How this skill is triggered — by the user, by Claude, or both
Slash command
/scaffolding:semantic-memory-storeThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Store knowledge as vector-embedded entries in an optional semantic memory service. When the service is available, entries are automatically embedded and retrievable via cosine similarity search by any agent in future sessions.
Store knowledge as vector-embedded entries in an optional semantic memory service. When the service is available, entries are automatically embedded and retrievable via cosine similarity search by any agent in future sessions.
This skill is optional. If no semantic memory service is configured, agents should degrade gracefully and rely on the file-based memory described in the agent-memory skill.
.scaffolding/conversations/)Before attempting to store or search, verify a semantic memory backend is reachable:
mcp__semantic-memory__* MCP tools are available, use those (see the semantic-memory-mcp skill).agent-memory skill. Do not block on missing infrastructure.When a semantic memory backend is available, store an entry with the following fields. The backend embeds the content and persists it for similarity search.
| Parameter | Required | Description |
|---|---|---|
content | Yes | Text to embed and store (keep concise; long content may be truncated) |
agent_name | No | Agent that created this memory (e.g. developer, debugger) |
content_type | No | One of: learning, error, pattern, decision (default: learning) |
tags | No | List of string tags for filtering |
task_id | No | Source task ID if applicable |
project_id | No | Associated project ID |
conversation_id | No | Associated conversation ID |
| Type | Use When |
|---|---|
learning | General knowledge, best practices, how-to |
error | Root cause analysis, error resolution steps |
pattern | Confirmed code pattern, architecture pattern |
decision | Architecture or design decision with rationale |
Store an entry with:
content: "SQLAlchemy async_session_maker bound to one event loop cannot be reused in a worker thread. Create a fresh engine+session per thread to avoid attached-to-different-loop errors."agent_name: debuggercontent_type: errortags: ["sqlalchemy", "async", "threading"]Store an entry with:
content: "Semantic memory uses a local all-MiniLM-L6-v2 model (384 dims) instead of a hosted embedding API. Zero cost, fast, runs on CPU. Trade-off: lower quality than a hosted model but no API dependency."agent_name: architectcontent_type: decisiontags: ["semantic-memory", "embedding", "architecture"]When a semantic memory backend is available, stored memories are automatically recalled by the agent execution pipeline. When a task starts, the pipeline:
## Semantic MemoryNo manual retrieval is needed. Agents that want to search for specific memories can use the semantic_search MCP tool described in the semantic-memory-mcp skill.
Semantic memory requires an optional backend service. If your project does not configure one, this skill is inert and file-based memory remains fully functional. When a backend is configured, it typically requires:
Consult your project's setup documentation for the exact configuration. Absence of any of these means the skill degrades gracefully to file-based memory.
When supported by the backend, content is deduplicated by hash. Storing the same content twice updates the existing entry (merges tags, updates timestamp) instead of creating a duplicate.
Search-before-store: hash dedup only catches byte-identical content. Backends that distil input into atomic memories (e.g. mem0) split one store call into several entries, so a slightly reworded fact silently bloats the store. Before storing, run a similarity search first; if a near-duplicate already exists, update or skip rather than adding a paraphrase.
| System | Mechanism | Best For |
|---|---|---|
| File-based (agent-memory skill) | Markdown files in .scaffolding/ | Structured, curated knowledge with manual organization |
| Semantic memory (this skill) | Vector store with embedding search | Discoverable knowledge via natural language similarity |
Use both when available: file-based memory for well-organized reference material, semantic memory for fuzzy-match discoverable insights. When semantic memory is unavailable, file-based memory alone is sufficient.
npx claudepluginhub komluk/scaffolding --plugin scaffoldingSearches vector memory for prior insights mid-task using semantic_search and semantic_recall tools. Activates when debugging, encountering unfamiliar patterns, or making design decisions.
Architects agent memory: short-term context windows, long-term vector stores, and CoALA cognitive frameworks (semantic/episodic/procedural memory).
Stores important decisions, patterns, bug fixes, and lessons into Cortex persistent memory. Use after resolving bugs, making architecture choices, or when the user asks to remember something.