From scaffolding
3-tier persistent memory protocol for cross-session knowledge accumulation. Use when agents need to read, write, or manage memory files.
npx claudepluginhub komluk/scaffolding --plugin scaffoldingThis skill uses the workspace's default tool permissions.
3-tier persistent memory system for cross-session knowledge accumulation.
Integrates Mem0 persistent memory for Claude Code tasks using MCP tools. Retrieves relevant memories on new tasks, stores learnings like decisions and strategies, captures session states.
Creates web-based slidedecks for developers using Slidev with Markdown, Vue components, code highlighting, animations, interactive demos, and presenter notes. Use for technical presentations, conference talks, code walkthroughs, and workshops.
3-tier persistent memory system for cross-session knowledge accumulation.
| Tier | Path | Scope | Written By | Read By |
|---|---|---|---|---|
| Shared | .scaffolding/agent-memory/shared/KNOWLEDGE.md | Whole project | Any agent | All agents |
| Agent | .scaffolding/agent-memory/agents/{agent-name}/MEMORY.md | Per agent | Owning agent | Own agent + architect |
| Conversation | .scaffolding/conversations/{conversation_id}/agent-memory/context.md | Per conversation | Any agent in conversation | Agents in same conversation |
Memory is auto-injected into agent context via recall_for_agent() in the task execution pipeline. When a task starts, the system reads:
.scaffolding/agent-memory/shared/KNOWLEDGE.md (always).scaffolding/agent-memory/agents/{agent-name}/MEMORY.md (when agent_name is known).scaffolding/conversations/{id}/agent-memory/context.md (when conversation_id is provided)This means agents receive memory context automatically. Manual reading on first turn is optional but recommended for verifying latest data.
Before starting work, optionally read available memory for latest content (skip if files don't exist):
.scaffolding/agent-memory/shared/KNOWLEDGE.md.scaffolding/agent-memory/agents/{your-agent-name}/MEMORY.mdconversation_id is provided in task context: Read .scaffolding/conversations/{conversation_id}/agent-memory/context.mdWrite significant findings to the appropriate tier:
Save here:
Do NOT save:
Save here:
Do NOT save:
Save here:
Do NOT save:
Agents with disallowedTools: Write, Edit (architect, reviewer) cannot write to .scaffolding/agent-memory/ directly. These agents should report findings in their output, and writable agents in the same conversation chain can persist them.
[YYYY-MM-DD] for time-sensitive entriesIf memory files don't exist, create them with the appropriate header:
# Shared Knowledge
<!-- Cross-agent project knowledge. Max 200 lines. -->
# {Agent Name} Memory
<!-- Agent-specific patterns and lessons. Max 200 lines. -->
# Conversation {conversation_id} Context
<!-- Decisions and findings for this conversation chain. -->
Conversation memory is always available via file-based recall. When a task runs with a conversation_id, the system reads context.md and injects it into the agent's context. No database setup is required for conversation-tier memory.