/mddesign:session-handofffrom mddesign
Preserves session state across clears, reboots, and IDE switches. On start, reads planning files, scratch, and MemPalace to synthesize a catchup preamble. On stop, dispatches memory-keeper for HITL promotion and writes a handoff note.
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.
Bridges sessions. The user's session ends; the next session picks up exactly where the last one left off.
Triggered automatically by the SessionStart hook. Manually invokable via /mddesign:handoff catchup.
Read task_plan.md if it exists. Note the active phase id and its bullets.Read findings.md if it exists. Note any ## Design Context block.Read progress.md if it exists. Note the most recent ### Phase <id> Result and the most recent ### Handoff <timestamp> entry..agents/memory/scratch/**/*.md./memory-router with a query like "recent decisions for project ".Build a one-paragraph (4-6 sentence) "where we left off" that names:
### Phase ResultPrint this preamble to the user as your first message.
*.tsx|*.vue|*.svelte) but no DESIGN.md, print: "No DESIGN.md found. Run /mddesign:harvest to generate one."task_plan.md does not exist, print: "No task_plan.md. Use planning-with-files to create one before starting work."code-memory-router slash command is not registered, print: "code-memory-router not detected. Memory operations will fall back to scratch only."Triggered automatically by the Stop hook. Manually invokable via /mddesign:handoff promote.
Call the Agent tool with subagent_type: memory-keeper. Pass:
progress.md (last 50 lines)findings.md.agents/memory/scratch/Memory-keeper returns a list of promotion candidates with tier classifications.
For each WHY candidate:
before_mempalace_write) to require approval.memory-layer skill performs the actual /memory-router invocation.Append to progress.md:
### Handoff <ISO timestamp>
**Active phase at session end:** <id>
**Status:** <status>
**Promoted to WHY:** <count> entries
**Open questions:**
- <list>
**Resume next session by:**
- <one-line action>
This block is what SessionStart catchup reads first next time.
| Subcommand | What it does |
|---|---|
/mddesign:handoff (no arg) | Runs catchup. |
/mddesign:handoff catchup | Runs catchup. |
/mddesign:handoff promote | Runs Stop promotion. Useful before a planned /clear. |
task_plan.md directly. Read only.progress.md always lives under ### Handoff <timestamp> for easy grep.User ends Tuesday session mid-Phase 3. Stop fires. Memory-keeper proposes 2 WHY candidates ("decided X for reason Y" and "rejected approach Z"). User approves both. Plugin writes:
### Handoff 2026-04-23T18:42:11Z
**Active phase at session end:** phase-3-build-cta
**Status:** in_progress, button component scaffolded but a11y not yet checked
**Promoted to WHY:** 2 entries
**Open questions:**
- Should the focus ring use colors.primary or colors.accent?
**Resume next session by:**
- Read findings.md "## Design Context", then run /mddesign:critique to check the button against DESIGN.md tokens.
Wednesday morning, user opens a new session. /clear happened or the laptop rebooted. SessionStart fires. Catchup synthesises:
Last session ended in Phase 3 (build-cta), button scaffolded but a11y not yet checked. Decisions promoted: chose primary color for CTA based on contrast vs accent. Open question: focus ring color (primary vs accent). Suggested next step: read findings.md "## Design Context" then
/mddesign:critique.
User reads, says "ok continue". The agent already has every piece of context it needs.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (othmanadi/mddesign) — no native marketplace selected
npx claudepluginhub p/othmanadi-mddesign5 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./memory-layerOther plugins' skills for the same job