/mddesign:memory-layerfrom mddesign
Three-tier memory layer (scratch/WHERE/WHY) that routes notes through code-memory-router. Saves session notes, queries locational and decision memory, and gates WHY promotions via human-in-the-loop approval.
Ships in mddesign. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Three-tier wrapper on top of code-memory-router plus a local file-tier scratchpad.
| Tier | Purpose | Backend | Lifetime |
|---|---|---|---|
| scratch | Volatile session notes, in-flight findings | .agents/memory/scratch/<topic>.md (file-tier) | Session, until promoted or /mddesign:handoff promote |
| WHERE | Locational queries (where is X, which file, which directory) | QMD via /memory-router | Project lifetime |
| WHY | Decisions, rationale, post-mortems, "we picked X because" | MemPalace drawers via /memory-router | Forever |
/mddesign:memory save <text> (default tier: scratch)task_plan.md is the default topic. If no plan exists, use general.<text> plus an ISO timestamp to .agents/memory/scratch/<topic>.md. Create parent directories if needed./mddesign:memory save --tier why <text>/memory-router invocation (named checkpoint: before_mempalace_write)./memory-router with the canonical "save to MemPalace" pattern documented in code-memory-router's SKILL.md. Pass the text plus a project tag derived from CWD basename..agents/memory/scratch/<topic>.md: "PROMOTED to MemPalace at ." The original scratch entry stays in place for the rest of the session for context continuity./mddesign:memory recall <query>Routing rule:
Routing target:
/memory-router and let the router dispatch to QMD./memory-router and let the router dispatch to MemPalace..agents/memory/scratch/**/*.md for the query.Always print the source tier next to each result so the user sees provenance.
On Stop, the memory-keeper subagent runs and proposes promotions. This skill is the executor: when memory-keeper returns a list of WHY candidates, this skill drives /mddesign:memory save --tier why for each (each one HITL gated). Anything not promoted stays in scratch and is available for next session if session-handoff is configured.
task_plan.md, findings.md, or progress.md directly. Memory is a separate file space.code-memory-router. If you cannot reach it, fail loudly and tell the user to install code-memory-router..agents/memory/scratch/. Never put memory in task_plan.md or findings.md.code-memory-router skill (the user's, required) — routes WHERE to QMD and WHY to MemPalacememory_20250818) is reserved for v0.2 once it is exposed via MCP for cross-IDE use. v0.1.0 ships file-tier scratch as the substitute that works today on every coding agent.User runs /mddesign:memory save Decided to use Postgres over SQLite for the memory store, scaling concern.
This skill:
task_plan.md to find the active phase id (e.g., phase-2-data-model)..agents/memory/scratch/phase-2-data-model.md:
## 2026-04-23T10:30:00Z
Decided to use Postgres over SQLite for the memory store, scaling concern.
Later in the session the user says /mddesign:memory recall why postgres. This skill:
/memory-router to query MemPalace..agents/memory/scratch/**/*.md.[source: scratch] next to it.On Stop, memory-keeper flags this entry as a WHY candidate. The user approves. This skill promotes via /memory-router. Next session, /mddesign:memory recall why postgres returns from MemPalace with [source: WHY].
What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/design-bridgeContinuously bridges DESIGN.md into the active planning phase. When the user is working on a UI phase, reads the project's DESIGN.md, extracts the relevant token slice, and appends it to findings.md under "## Design Context" so the agent sees design constraints in its attention window. Never edits DESIGN.md, never edits task_plan.md. Idles when DESIGN.md is absent./design-harvestHarvests a DESIGN.md from an existing codebase, critiques it against the actual code, and applies safe quick-win fixes. Three modes harvest / critique / fix. Shells out to `npx @google/design.md lint` for structural validation; never reimplements Google's linter. The on-ramp that makes DESIGN.md adoptable for every existing repo, not just greenfield projects./Generated from the plugin's indexed repository (othmanadi/mddesign) — no native marketplace selected
npx claudepluginhub p/othmanadi-mddesignOther plugins' skills for the same job