init

init is a command for Claude Code from mahmoudilyan/marmoui. It costs 39 tokens per session (1,240 once invoked), scanned A, original, MIT.

A command that initializes a project's visual design rules by detecting existing colors, fonts, spacing, corner shapes, and layout patterns, then writing them to DESIGN.md when that file is missing. DESIGN.md is a shared reference for keeping later interface work consistent.

In plain words
What is it for?
Use it at the start of a UI project to inspect the codebase, ask about details it cannot detect, and create a design reference for future interface work.
Why use it?
It removes the need to rediscover a project's visual choices and avoids overwriting an existing design file without permission.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool; mentions Codex.

Part of the marmo-ui plugin — 2 skills, 5 commands, 1 hook shipped together

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 commands/mahmoudilyan/marmoui/init
Clone the repo
git clone --depth 1 https://github.com/mahmoudilyan/marmoui

Made for: Claude Code.

Or install marmo-ui, the plugin that ships this one along with the rest of its 2 skills, 5 commands, 1 hook.

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 init

README.md
[![agentmods](https://agentmods.dev/badge/commands/mahmoudilyan/marmoui/init.svg)](https://agentmods.dev/commands/mahmoudilyan/marmoui/init)
Your own site
<a href="https://agentmods.dev/commands/mahmoudilyan/marmoui/init"><img src="https://agentmods.dev/badge/commands/mahmoudilyan/marmoui/init.svg" alt="Measured on agentmods" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,240 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.1 $0.00039 $0.01240
Opus 5 $0.00019 $0.00620
Sonnet 5 $0.00008 $0.00248
Haiku 4.5 $0.00004 $0.00124

Measured 6d ago against content hash 343a01f0fe3f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

init 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 6d 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.

tools/claude-plugin/plugins/marmo-ui/commands/init.md · 106 lines

How it starts

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

/marmo-ui:init

Bootstrap this project's design identity. If a DESIGN.md (or design.md) already exists at the project root, read it, report its brand name + primary color, and stop — never overwrite without an explicit ask. Otherwise: detect what you can, interview for what you can't, then write DESIGN.md.

The file follows the Stitch DESIGN.md structure (YAML frontmatter with design tokens, prose body with usage rules) so any agent — Claude, Cursor, Codex, Gemini — can generate on-brand UI from it. For Pro tenants the same file is what workspace ingestion uploads to the MCP.

Step 1 — Detect before asking

Scan the project and pre-fill every token you can. Do not ask about anything you detected:

  • Colors:root custom properties in global CSS, tailwind.config.* theme.extend.colors, existing tokens.css / tokens.json.
  • Typographynext/font imports, @fontsource/* deps, Google Fonts <link>s, fontFamily in Tailwind config.
  • Radius / spacing--radius-* / --space-* custom properties, Tailwind borderRadius / spacing extensions.
  • Layout — presence of a sidebar shell (SidebarProvider, app-shell pattern) vs. topbar marketing layout in existing routes.
  • Dark mode.dark class usage, next-themes, prefers-color-scheme blocks.

Step 2 — Interview for the gaps

Ask only the unanswered essentials, in one batch (AskUserQuestion if available; plain questions otherwise). Main questions, in priority order:

  1. Brand name — what should the system be called?
  2. Primary color — one hex value (or "pick for me" → propose 3 anchored options).
  3. Fonts — display + body (or "system" / "pick for me").
  4. Layout — app-with-sidebar, topbar-marketing, or both?
  5. Corner rounding — sharp (2–4px), soft (6–10px), or pill-heavy?
  6. Spacing density — compact, comfortable, or airy?
  7. Dark mode — required, later, or never?

Accept partial answers; infer skipped fields from the brand color's temperature and the project's genre, and state every inference in your reply so the user can redirect.

Read the full file on GitHub · 106 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. 6d ago First seen · 106 lines · 39 tokens per session scan A 343a01f0fe3f

Subscribe to this mod's changes

init is a command published in the GitHub repository mahmoudilyan/marmoui (41 stars, last pushed 1mo ago), licensed MIT. It adds 39 tokens to every session and 1,240 once invoked, about $0.0002 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-30.