figma-code-composer: Agent for Claude Code

.claude/agents/wizard.md

wizard is an agent for Claude Code from punkadillo/figma-code-composer. It costs 82 tokens per session (10,145 once invoked), scanned D, original, MIT.

An interactive setup wizard for a Figma-to-code project pipeline. It identifies the project stack, connects the Figma integration, records methodology and CSS choices, and creates the pipeline configuration file.

In plain words
What is it for?
Initialising a Figma Compose project, detecting its technology stack, configuring the design workflow, registering project skills, and verifying the Figma connection settings.
Why use it?
It gathers setup decisions in order and checks required configuration before the pipeline is used. This reduces missing or inconsistent project setup.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter; reads .claude/ paths; mentions subagents.

This is punkadillo/figma-code-composer's own configuration. It tells Claude Code how to work on figma-code-composer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything figma-code-composer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to punkadillo/figma-code-composer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/punkadillo/figma-code-composer/main/.claude/agents/wizard.md
Clone the repo
git clone --depth 1 https://github.com/punkadillo/figma-code-composer

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 wizard

README.md
[![agentmods](https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/wizard/github.svg)](https://agentmods.dev/agents/punkadillo/figma-code-composer/wizard)
Your own site
<a href="https://agentmods.dev/agents/punkadillo/figma-code-composer/wizard"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/wizard/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wizard

Your own site · 80×15
<a href="https://agentmods.dev/agents/punkadillo/figma-code-composer/wizard"><img src="https://agentmods.dev/badge/agents/punkadillo/figma-code-composer/wizard.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 82 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 10,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 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.00082 $0.10145
Opus 5.5 $0.00033 $0.04058
Sonnet 5.5 $0.00016 $0.02029
Haiku 4.5 $0.00008 $0.01014

Measured 2mo ago against content hash 2046f45f47cf, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

wizard scanned grade D with 3 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 2mo 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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

3. **Touches the user's home dir / shell rc / tool config** (`~/.claude/settings.json`, `~/.zshrc`, `~/.config/figma-mcp/`, …). One project's wizard reconfiguring every other project on the machine is a surprising side-e

Reads MCP configurationmediumAgent snooping

mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.

Note on `.mcp.json`: structurally safe to commit (just URL + type — Figma auth tokens live in `~/.config/figma-mcp/`), but most teams treat MCP wiring as per-developer. Defaulting to ignored. If the user previously commi

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

It deletes only dirs under `.figma-pipeline/skills/` not in the keep-set, scopes every target to a basename under that dir, syncs `skills-lock.json`, and **refuses** (non-zero, deletes nothing) if the keep-set is empty o
.claude/agents/wizard.md · 447 lines

How it starts

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

Role

You are the setup wizard. Produce one artifact: .figma-pipeline/config.json. Everything else is delegation or verification.

Execution model — run inline in the main thread, not as a resumable subagent. /init-figma-compose runs this recipe inline in the main conversation thread, where AskUserQuestion is owned directly. Do NOT spawn a wizard subagent to drive the interactive flow: a spawned subagent returns control when it asks a question and cannot be resumed for the follow-up answers (SendMessage to a returned subagent isn't available), so it stalls after question one. The single thing you delegate is the read-only, non-interactive stack scan — spawn project-detector (Step 3); it runs once and returns, nothing to resume. (The Agent tool in this file's allowlist exists solely for that one project-detector spawn.)

Binding: @.figma-pipeline/config.schema.json (config must validate) + @.figma-pipeline/protocols/skills.md (the user's stack choices auto-resolve to a skill set).

Prompt cadence — ONE question at a time

Every prompt is a single AskUserQuestion call with exactly one question. Never group multiple questions into one call, even when the tool allows it. Reasons:

  1. Conversational. Each answer can affect what gets asked next — e.g., picking the Atomic DS skips the methodology question entirely. Grouped calls force the user to answer questions that should have been skipped.
  2. Detector-aware skipping. Step 5.6 questions are conditional on confidence: high detection results. Asking one at a time lets the wizard skip cleanly.
  3. Lower cognitive load. A long batched form is harder to commit to than a chain of small decisions.

Concretely: where a step describes multiple questions (Q1 + Q2 in Step 1, the four confirmations in Step 3, etc.), issue N separate AskUserQuestion calls in sequence, waiting for each answer before posing the next. Each call's questions array has exactly one element. Multi-select (e.g., Step 5.5 test tracks, Step 6 tools) is one question with multiSelect: true — still one call.

Read the full file on GitHub · 447 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. 2mo ago First seen · 447 lines · 82 tokens per session scan D 2046f45f47cf

Subscribe to this mod's changes

wizard is an agent published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 2mo ago), licensed MIT. It adds 82 tokens to every session and 10,145 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it D with 3 findings (reads agent configuration directories, reads mcp configuration, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

wizard compared with agents from other repositories

wizard next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
wizardpunkadillo/figma-code-composerAgent32mo agoMITD82Claude Code
style-analyzerdrobins25/craftAgent73yesterdayMITA203Claude Code
designeralvin-reyes/better-agentic-ideAgent452d agoMITA28Claude Code
designera-lottes/aSPARKAgent252d agoMITA64Claude Code
impeccable-asset-producergaia-research/gaia-skill-heavenAgent4yesterdayMITA28Claude Code
impeccable-asset-producertph-kds/deckforgeAgent412d agoMITA28Claude Code
ux-researcherpranav8494/team-of-agentsAgent71mo agoMITA41Claude Code