New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started

mddesign-skill

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mddesign-skill

Agent orchestration plugin combining planning files, DESIGN.md, memory routing, team dispatch, session handoff, and design critique.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source
MDDesign

MDDesign

Glue layer for AI coding agents. Composes planning-with-files, Google's DESIGN.md, memory routing, agent teams, and session handoff into one orchestrator. Cross-IDE. No replacements.

License IDE Support Version

What it does

You already use planning-with-files. You already use DESIGN.md (or want to). You already manage memory and agent dispatch by hand. MDDesign is the missing layer that wires them together so your agent sees the right design tokens at the right moment, dispatches the right subagent for the right phase, and never loses context after /clear.

It does not replace any underlying tool. It composes them.

Commands

CommandWhat it does
/mddesign:setupDetect missing dependencies, print exact install steps for your platform
/mddesign:doctorSix-probe diagnostic. Use when something is broken
/mddesign:composeOne-shot wiring check at the start of a project
/mddesign:harvestScan your codebase, write a structurally valid DESIGN.md at project root
/mddesign:critiqueFive-pass audit: structural / drift / a11y / completeness / consistency
/mddesign:fix <id>Apply one finding from the critique. HITL gated. Re-lints after every edit.
/mddesign:injectManually inject DESIGN.md tokens into the active phase's findings.md
/mddesign:handoffForce a session catchup or memory promotion. Survives /clear.
/mddesign:memoryThree-tier memory: scratch / WHERE (QMD) / WHY (MemPalace)
/mddesign:teamDispatch a phase to a specialist subagent via PhaseSpec v1

What you get over raw planning-with-files

  • Design tokens follow you. Every UI prompt sees the relevant slice of DESIGN.md injected into findings.md. No more agents inventing hex codes.
  • Code-to-DESIGN.md harvest. Most repos do not have a DESIGN.md. /mddesign:harvest scans your existing code and writes one. The on-ramp for every existing project, not just greenfield.
  • Sessions survive /clear. Stop hook stamps a handoff. SessionStart hook reads the last stamp + the most recent decisions from MemPalace and rebuilds context in one paragraph.
  • Decisions persist forever. Three-tier memory: scratch (file-tier, fast), WHERE (QMD, locational), WHY (MemPalace, decisions). Promotions to WHY are HITL gated.
  • Specialist subagents on demand. Hand a phase to a design-archeologist for harvest, a memory-keeper for classification, an executor for the rest. PhaseSpec v1 is the only handoff format.

Quickstart

1. Install

# Add the marketplace
/plugin marketplace add OthmanAdi/MDDesign

# Install the plugin
/plugin install mddesign@mddesign

2. Verify dependencies

/mddesign:setup

This walks you through every missing dependency with exact install steps. Safe to run multiple times.

Required:

Optional but recommended:

  • code-memory-router skill (powers WHY/WHERE tiers)
  • MemPalace MCP (powers WHY tier persistence)
  • QMD MCP (powers WHERE tier search)

3. Use it

# In any project
/mddesign:compose          # check the wiring
/mddesign:harvest          # generate DESIGN.md from your existing code
/mddesign:critique         # audit it for drift, a11y, completeness

That is the whole inner loop.

How the pieces fit

your existing code
   │
   ▼
/mddesign:harvest ──► DESIGN.md  (Google Labs spec, lint-validated)
                        │
                        ▼
                   /mddesign:critique  ──► DESIGN.md.critique.md
                        │
                        ▼
on every UI phase, design-bridge auto-injects the relevant token slice
into findings.md "## Design Context" — your agent reads it on every turn

                        │
                        ▼
       /mddesign:team dispatch  ──► specialist subagent (PhaseSpec v1)
                        │
                        ▼
       /mddesign:memory   scratch  ◄── session ends, Stop hook fires
                          WHERE   ◄── QMD via code-memory-router
                          WHY     ◄── MemPalace, HITL gated

                        │
                        ▼
         /mddesign:handoff  ── SessionStart catchup pulls last
                              decisions back into context

Full architecture: docs/architecture.md.

Core preservation rules

These are load-bearing. MDDesign exists because it does not violate them.

  • planning-with-files core untouched. Never write to task_plan.md.
  • DESIGN.md only written under explicit user action (/mddesign:harvest or /mddesign:fix).
  • Memory is a layer on top of code-memory-router, never a replacement.
  • Subagents share state via markdown on disk. No in-memory shared store.
  • Structural DESIGN.md validation delegated to npx @google/design.md lint. Never reimplement Google's linter.

IDE support

IDESync dirSkillsAgentsCommandsHooks
Claude Code(canonical)yesyesyesyes
Cursor.cursor/yesyesyesmanual
Codex CLI.codex/yesyesyesmanual
Windsurf.windsurf/yesyesyesmanual
Cline.clinerules/yesnonon/a
OpenCode.opencode/yesyesyesmanual

Mirrors regenerated by python scripts/sync-ide-folders.py before each release.

Example

A walkthrough is in examples/basic-react-app/ showing what task_plan.md, findings.md (with the auto-injected ## Design Context block), and a harvested DESIGN.md actually look like for a small React project.

Project layout

MDDesign/
├── README.md
├── LICENSE                          Apache-2.0
├── CONTRIBUTING.md
├── CHANGELOG.md
├── .claude-plugin/
│   ├── plugin.json
│   └── marketplace.json
├── hooks/
│   ├── hooks.json
│   ├── session-start/
│   ├── prompt-submit/
│   ├── pre-tool-use/
│   └── stop/
├── skills/
│   ├── design-bridge/SKILL.md       runtime: DESIGN.md → findings.md
│   ├── design-harvest/SKILL.md      harvest + critique + fix
│   ├── memory-layer/SKILL.md        three-tier memory
│   ├── session-handoff/SKILL.md     catchup + promote
│   └── team-dispatch/SKILL.md       PhaseSpec v1 dispatch
├── commands/                        slash commands (10)
├── agents/                          subagent definitions
├── docs/architecture.md
├── examples/basic-react-app/        walkthrough
├── tests/                           smoke tests (bash + PowerShell)
└── scripts/sync-ide-folders.py

Contributing

See CONTRIBUTING.md. Short version: feature-branch PRs, no Co-Authored-By, smoke tests must pass on both bash and PowerShell.

License

Apache-2.0. Same as Google Labs DESIGN.md and planning-with-files.

Keywords

pi-package

FAQs

Package last updated on 03 Sep 2026

Related posts