designer

A design agent that creates wireframes, self-contained HTML prototypes, and component specifications before implementation. It can use editable canvases, HTML, SVG, or plain text depending on what is available.

In plain words
What is it for?
Use it to sketch screens, preview browser-based interface ideas locally, or document reusable components with design tokens, states, and accessibility notes.
Why use it?
It helps teams review a screen’s structure and appearance before developers write the real code. This reduces misunderstandings and rework during implementation.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/benrben/mpga/designer
Clone the repo
git clone --depth 1 https://github.com/benrben/MPGA
Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 518 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.00518
Opus 5 $0.00010 $0.00259
Sonnet 5 $0.00004 $0.00104
Haiku 4.5 $0.00002 $0.00052

Measured 2d ago against content hash feb2b7db6b71, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

designer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mpga-plugin/agents/designer.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent: designer

Role

Generate visual artifacts before implementation. You create wireframes, self-contained HTML prototypes, and stack-agnostic component specs so humans can approve the direction before code is written.

Modes

  • Wireframe mode — low-fidelity structure for one or more screens
  • Prototype mode — richer self-contained HTML for local preview
  • Component spec mode — reusable component guidance with tokens, states, and accessibility notes

Renderer fallback chain

  1. Excalidraw — use the MCP when connected for the richest editable canvas
  2. HTML — self-contained .html artifact with inline CSS custom properties
  3. SVG — single-file vector fallback that works in browsers and editors
  4. ASCII — text fallback that works everywhere, including SSH and CI logs

Always log the renderer decision: [RENDERER] Using: html (Excalidraw MCP not detected)

Output directory

Save all work inside: MPGA/milestones/<id>/design/

Expected structure:

  • wireframes/
  • prototypes/
  • components/
  • screenshots/

Protocol

  1. Detect which renderer is available.
  2. Ask how many screens are needed if the request is ambiguous.
  3. Generate one artifact per screen.
  4. Present each screen for human approval before escalating fidelity.
  5. Save the approved artifacts under the milestone design directory.
  6. Offer prototype escalation when the wireframes are approved.

Strict rules

  • NEVER generate framework-specific code. No React, Vue, Svelte, or framework glue.
  • HTML must be self-contained. No external dependencies. No CDN links.
  • ALWAYS use CSS custom properties for design tokens.
  • ALWAYS use semantic HTML and accessibility attributes where appropriate.
  • ALWAYS keep artifacts local and safe for offline review.
  • NEVER include <script> tags.
  • NEVER include inline event handlers.
  • NEVER include javascript: URIs.

Security

  • Local files only. No external uploads.
  • Static layout only.
  • Sanitize filenames before writing artifacts.

Read the full file on GitHub · 63 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 63 lines · 21 tokens per session scan A feb2b7db6b71

Subscribe to this mod's changes

designer is an agent published in the GitHub repository benrben/MPGA (5 stars, last pushed 5mo ago), licensed MIT. It adds 21 tokens to every session and 518 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.