implement-ui

implement-ui is a command for Claude Code from MadAppGang/claude-code. It costs 19 tokens per session (12,020 once invoked), scanned A, original, MIT.

A delegated workflow for building new user-interface components from a Figma file, screenshot, or mockup, followed by visual checking and fixes.

In plain words
What is it for?
Use it to create React and TypeScript UI components from design references, have specialised agents implement them, and validate the visual result.
Why use it?
It organises design interpretation, implementation, and review so the resulting interface can be compared with its reference.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Codex.

Good fit Use it to create React and TypeScript UI components from design references, have specialised agents implement them, and validate the visual result.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/madappgang/claude-code/implement-ui
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.

Clone the repo
git clone --depth 1 https://github.com/MadAppGang/claude-code

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implement-ui

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/claude-code/implement-ui.svg)](https://agentmods.dev/commands/madappgang/claude-code/implement-ui)
Your own site
<a href="https://agentmods.dev/commands/madappgang/claude-code/implement-ui"><img src="https://agentmods.dev/badge/commands/madappgang/claude-code/implement-ui.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 12,020 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.12020
Opus 5 $0.00010 $0.06010
Sonnet 5 $0.00004 $0.02404
Haiku 4.5 $0.00002 $0.01202

Measured 5d ago against content hash 8e016064e2d7, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

implement-ui 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 5d 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.

plugins/frontend/commands/implement-ui.md · 1,583 lines

How it starts

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

Mission

Implement new UI components from scratch based on a design reference (Figma, screenshot, mockup) using specialized UI development agents with intelligent validation and adaptive agent switching for optimal results.

CRITICAL: Orchestrator Constraints

You are an ORCHESTRATOR, not an IMPLEMENTER.

✅ You MUST:

  • Use Task tool to delegate ALL work to agents
  • Use Bash to run git commands (status, diff)
  • Use Read/Glob/Grep to understand context
  • Use Tasks to track workflow progress
  • Use AskUserQuestion to gather inputs and preferences
  • Coordinate agent workflows with smart switching logic

❌ You MUST NOT:

  • Write or edit ANY code files directly (no Write, no Edit tools)
  • Implement UI components yourself
  • Fix issues yourself
  • Create new files yourself
  • Modify existing code yourself

Delegation Rules:

  • ALL UI implementation → ui-developer agent
  • ALL design validation → designer agent
  • OPTIONAL expert fixes → ui-developer-codex agent (smart switching)

If you find yourself about to use Write or Edit tools, STOP and delegate to the appropriate agent instead.

User Inputs

The command starts by gathering the following information from the user.

Multi-Agent Orchestration Workflow

PRELIMINARY: Check for Code Analysis Tools (Recommended)

Before starting UI implementation, check if the code-analysis plugin is available:

Try to detect if code-analysis plugin is installed by checking if codebase-detective agent or semantic-code-search tools are available.

If code-analysis plugin is NOT available:

Inform the user with this message:

💡 Recommendation: Install Code Analysis Plugin

For optimal UI component integration and finding existing design patterns,
we recommend installing the code-analysis plugin.

Benefits:
- 🔍 Find existing UI components and patterns to match your design system
- 🕵️ Discover styling conventions (Tailwind classes, color schemes, spacing)
- 📊 Locate similar components to maintain consistency
- 🎯 Identify where to place new components in the project structure

Installation (2 commands):
/plugin marketplace add MadAppGang/claude-code
/plugin install code-analysis@mag-claude-plugins

Repository: https://github.com/MadAppGang/claude-code

You can continue without it, but investigation of existing UI patterns will be less efficient.

Read the full file on GitHub · 1,583 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. 5d ago First seen · 1,583 lines · 19 tokens per session scan A 8e016064e2d7

Subscribe to this mod's changes

implement-ui is a command published in the GitHub repository MadAppGang/claude-code (279 stars, last pushed 5mo ago), licensed MIT. It adds 19 tokens to every session and 12,020 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-09-03.