memoire
The memoire server provides a comprehensive suite of tools for design system management, Figma integration, code generation, and AI-powered analysis.
Figma Integration: Pull design systems (tokens, components, styles) from a connected Figma file, capture screenshots, inspect selected nodes, browse the file tree, and execute arbitrary JavaScript via the Figma Plugin API.
Spec Management: List, create, retrieve, and validate component, page, and dataviz specs with Zod schema validation.
Code Generation: Generate shadcn/ui + Tailwind component code (React/Vue/Svelte) from saved specs, organized by atomic design level.
Token Management: Get, update, and sync design tokens to a Tailwind config theme extension, with optional push back to Figma.
AI Visual Analysis: Analyze Figma designs with AI vision for general quality, WCAG accessibility compliance, or spec-compliance.
Design System Audit: Run structured audits covering contrast, touch targets, focus indicators, token coverage, and naming conventions.
Design Extraction: Scrape any public URL to extract its design system as a structured
DESIGN.mddocument or raw token JSON.Agent Orchestration: Use a natural language interface to classify, plan, and execute multi-step design workflows.
User Research: Load project-specific insights, personas, and themes to ground design decisions.
Text Layout Measurement: Predict text dimensions, line counts, and overflow risk without a browser or Figma connection.
Health & Usage Monitoring: Check Figma WebSocket bridge health and track AI token usage and estimated session costs.
Extracts design tokens, components, and styles from Figma files via WebSocket bridge, REST API, or plugin, enabling design system synchronization and code generation workflows.
Extracts design systems from Linear's website URLs to generate design documentation and specifications for code generation workflows.
Extracts design tokens, components, and styles from Penpot files using API authentication, providing an alternative design tool integration for design system extraction.
Generates production-ready React components from design specifications with proper props, variants, and component architecture.
Generates production-ready React components using shadcn/ui patterns and includes a shadcn registry server for component management and distribution.
Generates Storybook stories alongside React components for component documentation, testing, and development workflow integration.
Extracts design systems from Stripe's website URLs to generate design documentation and specifications for code generation workflows.
Generates TypeScript-typed React components with proper type definitions and interfaces for type-safe development.
Validates component specifications using Zod schemas to ensure data integrity and consistency throughout the design-to-code pipeline.
memi is a local design intelligence layer for product teams using Codex, Claude Code, Cursor, Hermes, OpenCode, OpenClaw, ECC-style agent stacks, MCP clients, shadcn/ui, Tailwind, Figma, FigJam, interface craft critique, and research-backed UX audits.
It turns an app into evidence an agent can use: tokens, components, screenshots, routes, Figma context, UX tenets and traps, interface craft dimensions, user research, Atomic Design specs, shadcn registry items, and repeatable run receipts.
Homepage: memoire.cv Package: @memi-design/cli on npm Compatibility: shadcn registry and v0 design systems
Install and prove it in five minutes
npm i -g @memi-design/cli
memi agent brief . --intent "Improve this interface" --json
memi diagnose
memi ux audit --json
memi craft audit --json
memi tokens --from ./src --report
memi shadcn export --out public/r
memi agent install universal --project .
memi mcp start --no-figmaThat loop gives a coding agent enough interface understanding to stop guessing: a design-agent brief, app-quality findings, UX risks, interface craft critique, extracted tokens, registry output, an installable Agent Skills package, and a Figma-independent MCP server.
Related MCP server: custom-browser-mcp
What v2 is
Version 2 is the package release that moves memi from a design-system CLI into an agent-native interface-understanding stack.
Layer | What it does | First command |
App quality | Audits real apps for UI debt, state gaps, accessibility risk, Tailwind drift, and UX traps. |
|
Design-agent brief | Creates a cost-aware preflight contract with evidence commands, design rules, compatibility installs, and handoff requirements. |
|
UX audit | Scores UX tenets and trap risks from code, screenshots, routes, or local artifacts. |
|
Interface craft | Scores visual design, focusing mechanism, hierarchy, spacing rhythm, conventions, responsive resilience, and user context. |
|
Token memory | Extracts CSS variables, Tailwind v4 |
|
Registry output | Exports shadcn-native registry files that work with shadcn, v0, npm, GitHub, and static hosts. |
|
Agent kits | Installs skills and MCP config for Codex, Claude Code, Cursor, Hermes, OpenCode, OpenClaw, and universal |
|
MCP server | Gives any MCP client Figma-independent design tools over stdio. |
|
Research design | Turns research stores and simulation reports into Atomic Design specs and FigJam-ready source. |
|
Why teams install it
Modern UI agents can write code, but they usually do not know the product system. memi gives them the missing context before the patch:
Which tokens and components already exist.
Which routes, states, and screenshots define the current interface.
Which UX issues are evidence-backed, not taste.
Which interface craft dimensions need stronger hierarchy, rhythm, polish, or conventions.
Which shadcn registry items can be exported or installed.
Which research evidence should change the spec.
Which agent harness should receive which memory.
Which artifacts prove the change was safe.
The wedge is simple: run memi before broad frontend work so every agent starts from the product system instead of a blank prompt.
The mandate loop
v2.3 turns memi from an audit you can run into a gate a team can require. Every finding cites file:line and re-runs identically — checkers check, gates gate, and no LLM sits in the enforcement path.
memi init --team # committed policy + loudly-accepted baseline + gitignore rules + agent kit
memi ci # full-tree scan, PR-scoped blame, SARIF annotations, step summary — exit 1 on new debt
memi baseline status # accepted debt stays visible while it burns down
memi report --badge # one self-contained design-health.html + SVG badgeDeterministic: same commit + same
memoire.policy.json= same result. Scores stamp the policy hash; runs under different rules are reported "not comparable" instead of pretending.Fair to PRs: whole-tree stats keep ratio thresholds valid, but a PR is only blamed for files it touched. Aggregate rules gate through score budgets, never per-file blame.
Honest by construction: baselines suppress loudly (counts in every report), unassessable dimensions say "not-assessed" instead of inventing a score, and every finding carries provenance (
static-scantoday).
One workflow line wires it into GitHub: uses: sarveshsea/memi@v2 — SARIF PR annotations, a score summary, and a report artifact. Recipes for every other CI in docs/CI_RECIPES.md; the rollout path for teams in docs/TEAM_ROLLOUT.md.
Public proof repo
Use sarveshsea/design-sandbox as the reference workspace for memi v2. It is a small Next.js 16 + Tailwind 4 + shadcn repo wired with MCP, Agent Skills, Claude Code subagents, memoire.agent.yaml, UX audit commands, token extraction, and no-hex verification.
git clone https://github.com/sarveshsea/design-sandbox.git
cd design-sandbox
pnpm install
npm i -g @memi-design/cli
pnpm memi:agent
pnpm memi:diagnose
pnpm memi:ux
memi craft audit . --json
pnpm verifyThis is the public "show me how it works in a real repo" path for design engineers, product teams, and agent-stack builders.
Agent stack installs
memi suite init --project .
memi daemon start --project . --port auto
memi daemon status --json
memi agent brief . --intent "Improve this interface" --json
memi agent install universal --project .
memi agent install hermes
memi agent install openclaw --project .
memi agent install claude-code --project .
memi agent install cursor --project .
memi agent install codex
memi agent install codex-plugin
memi agent install opencode --project .
npx skills add sarveshsea/memi --skill memoire-design-toolingStack | Install path | What to use it for |
Universal Agent Skills |
| Standard skill package for |
Hermes |
| Transcript-first product design runs with design memory and research context. |
OpenClaw |
| Workspace-local design evidence, UI audit, and shadcn registry workflows. |
Claude Code |
| Project MCP config for |
Cursor |
| Cursor MCP config for token, registry, and UX inspection. |
Codex skill |
| Skill-only context for design audits and frontend changes. |
Codex plugin |
| Full Codex plugin with bundled skill and MCP wiring. |
OpenCode |
| Workspace skill pack for local frontend agents. |
Public Codex marketplace install:
codex plugin marketplace add sarveshsea/memi --ref main --sparse .agents/plugins --sparse plugins/memoireMore copy-paste workflows: Agent stack guide and Agent recipes.
Design-agent brief
Use this as the first command when an agent is about to touch UI:
memi agent brief . --intent "Polish the onboarding flow" --json
memi agent brief http://localhost:3000 --intent "Audit the dashboard route" --json
memi agent brief . --mode research --intent "Design from interview findings" --json
memi agent brief https://example.com --mode full --agent hermes --intent "Benchmark this interface" --jsonThe brief is local-first by default. It returns the mission, evidence commands, design rules, cost controls, compatibility installs, MCP command, Agent Skills command, and final handoff checklist. MCP clients can request the same object through prepare_design_agent_brief.
Full interface understanding loop
memi agent brief http://localhost:3000 --intent "Improve this route" --json
memi diagnose http://localhost:3000
memi ux audit http://localhost:3000 --json
memi craft audit http://localhost:3000 --json
memi design-doc http://localhost:3000 --spec
memi tokens --from ./src --save --report
memi shadcn doctor
memi shadcn export --out public/r
memi suite run design-audit --project . --jsonThe loop reads code, runtime routes, screenshots, tokens, specs, research memory, and Figma when available. It writes file-backed evidence under .memoire/, then agents can use that evidence to plan, implement, and verify UI changes.
Read the full protocol: Interface Understanding.
Research-backed product design
memi research synthesize
memi simulate plan --hypothesis "Evidence-linked acceptance criteria reduce launch risk" --json
memi simulate run-matrix --adapter local --hypothesis "Faster setup reduces churn" --json
memi research design --intent "Design an evidence-backed planning board" --json
memi research design --write-specs --mermaid-jam --json
memi mermaid-jam export --from research --jsonUse this when a product change should be grounded in user research, interviews, survey data, support notes, competitive analysis, or scenario simulations. memi keeps the boundary explicit: research evidence -> design package -> Atomic Design specs -> FigJam-ready source -> codegen only after approval.
shadcn registry workflows
memi tokens --from ./src --report
memi shadcn export --out public/r
memi publish --name @you/ds
memi add Button --from @you/dsInstall through shadcn or v0:
npx shadcn@latest add https://your-site.com/r/button.json
memi shadcn serve --port 4014Featured example registries live in examples, including SaaS, docs, dashboard, auth, AI chat, ecommerce, landing page, and tweakcn-inspired themes.
Figma and FigJam
memi connect
memi pull
memi tokens
memi research design --write-specs --mermaid-jam --open --jsonFigma is optional. Most teams can start with code, screenshots, and routes. When Figma is connected, memi adds token pulls, component inspection, screenshots, and FigJam-ready planning artifacts to the same evidence loop.
memi Studio
The macOS app lives in sarveshsea/memi-studio. This npm package owns the engine/runtime it embeds: MCP tools, agent kits, harness metadata, project memory, the Figma bridge, research workflows, and local Studio web/TUI compatibility.
memi studio web --port 1422
memi studio tui
memi studio logs --follow
memi studio run --harness codex --action design-doc --prompt "Audit this UI and generate a design spec"Install the signed app:
brew install --cask sarveshsea/memi/memi-studioStudio interface references and adapted components are documented in NOTICE. The public reference set includes Hermes WebUI, Hermes Agent, and the MIT Warp UI framework boundary around warpui_core and warpui; Warp AGPL application/client code is not copied into memi.
What ships in the package
Path | Why it is included |
| CLI and MCP runtime. |
| Official MCP Registry descriptor for |
| Standard Agent Skills package for |
| Native kit templates for Hermes, OpenClaw, Codex, OpenCode, Claude Code, Cursor, and universal skills. |
| Codex plugin bundle and skill wiring. |
| Explicit Figma plugin assets, installed only through user commands. |
| Built-in research, agent, design, and integration notes. |
| Package docs for interface understanding, agent stacks, release gates, and growth operations. |
| Registry catalog and visual proof assets. |
Trust defaults
No npm install-time lifecycle scripts.
Figma plugin installation is explicit with
memi setup plugin.The default packaged Figma plugin disables raw JavaScript execution.
MCP startup has a Figma-independent mode:
memi mcp start --no-figma.Agent kit installs support
--dry-run --jsonbefore writing files.Public package gates check release metadata, tarball size, production audit, MCP smoke, Codex plugin smoke, skills install discovery, and npm publish dry-run.
Docs map
Start here | When you need |
The shortest path from install to proof. | |
Zero to a shared, enforced design gate: policy, baseline, CI, debt burn-down. | |
| |
Ship your design system on infra you control; DTCG token interop. | |
The full evidence loop for UI agents. | |
ECC, Hermes, OpenClaw, Codex, Claude Code, Cursor, OpenCode, MCP, and skills workflows. | |
Copy-paste prompts and setup commands. | |
Installable registry examples and preset catalogs. | |
Public proof repos, hashtags, GitHub topics, and distribution surfaces. | |
Category, distribution, and package-quality strategy. | |
Operating plan for npm growth. | |
Publish and public-release checks. | |
No-Figma proof examples. |
Full command reference
Command | What it does |
| One-command shared design gate: policy, baseline, gitignore, agent kit. |
| CI design gate: scan, PR scope, baseline filter, SARIF + step summary. |
`memi baseline accept | status` |
| Compose one self-contained design-health artifact + SVG badge. |
| Diagnose UI debt from code, route, or URL. |
| Audit UX tenet coverage and trap risks. |
| Audit interface craft across visual design, hierarchy, conventions, and user context. |
| Extract tokens, modes, aliases, repeated literal candidates, and reports. |
| Export shadcn registry files. |
| Extract a design system from a route or public URL. |
| Create component, page, dataviz, design, or IA specs. |
| Generate React + TypeScript + Tailwind from specs. |
| Synthesize research data into themes and personas. |
| Generate research-backed design packages and specs. |
| Run product scenario simulations. |
| Write FigJam-ready Mermaid/markdown source. |
| Install agent kits and MCP config. |
| Start the MCP server for registry-safe clients. |
`memi suite init | doctor |
`memi daemon start | status |
`memi studio web | tui |
Install without npm
curl -fsSL https://memoire.cv/install.sh | sh
irm https://memoire.cv/install.ps1 | iex
brew install sarveshsea/memi/memoire
docker run --rm -it -v "$PWD:/work" -w /work ghcr.io/sarveshsea/memi --helpManual archives are attached to GitHub Releases. Keep skills/, notes/, plugin/, and runtime resources next to the binary because memi loads them at runtime.
License
MIT. See NOTICE for Studio interface references, optional adapters, and attribution notes.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/sarveshsea/memi'
If you have feedback or need assistance with the MCP directory API, please join our Discord server