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.
npx agentmods add commands/punkadillo/figma-code-composer/init-figma-composegit clone --depth 1 https://github.com/punkadillo/figma-code-composerWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00045 | $0.01270 |
| Opus 5 | $0.00023 | $0.00635 |
| Sonnet 5 | $0.00009 | $0.00254 |
| Haiku 4.5 | $0.00005 | $0.00127 |
Grade A, and why
init-figma-compose 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.
How it starts
The opening of the file, as written. The whole thing — 40 lines — stays where its author put it; the contents beside it link to each section on GitHub.
/init-figma-compose — figma-pipeline setup wizard
(Renamed from /init so it doesn't shadow Claude Code's built-in /init. Trigger phrases: /init-figma-compose, "set up figma-pipeline", "configure the pipeline", "run the figma wizard".)
Before running this: complete README § Prerequisites for your tool — at minimum the required Figma MCP setup, optionally Graphify. The wizard verifies these; it does not install them.
Run the wizard INLINE in this (main) thread — do NOT spawn it as a subagent. Follow .claude/agents/wizard.md as your step-by-step recipe and own every AskUserQuestion prompt yourself, here in the main conversation. Honour $ARGUMENTS (e.g. --re-detect). Rationale: the wizard is interactive and answer-dependent (each answer can change the next question). A spawned subagent that calls AskUserQuestion returns control to ask, and cannot be resumed for the follow-up answers (SendMessage to a returned subagent isn't available) — so a spawned wizard stalls after the first question. The main thread has no such limit. The only delegation is the read-only, non-interactive stack scan: spawn project-detector (it runs once and returns; nothing to resume).
The wizard recipe:
- Project identity — asks for project name + one-line description.
- Figma MCP verify (hard gate) — probes both namespaces (
mcp__figma__*andmcp__plugin_figma_figma__*), records the working prefix inconfig.figma.mcpToolNamespace. If MCP isn't reachable, the wizard aborts and points atREADME § Prerequisites § Required — Figma MCP— noconfig.jsonis written. Result: every subsequent/figma-buildstarts with a known-good MCP. - Stack detection — spawns
project-detectorto identify framework + CSS system + relevant paths. User confirms or overrides. - Design system OR methodology — design system first; if
none, then design methodology (atomic / feature-sliced / component-based / flat). - CSS choice — Tailwind v4/v3 / UnoCSS / vanilla CSS vars / CSS Modules / Sass / vanilla-extract / Panda / styled-components — with examples and a guided migration plan when the detected system differs.
- Paths + stories + tests + output-structure — derived per stack, with confirmation prompts.
- Tools — Claude Code / Cursor multi-select.
- Skills install/strip — prunes canonical
.figma-pipeline/skills/to the resolved install set and refreshes per-tool surfaces. 8.5. Brevit install (project dependency) — detects the project's package manager from the lockfile (package-lock.json→npm,pnpm-lock.yaml→pnpm,yarn.lock→yarn,bun.lockb→bun) and runs e.g.npm install brevit. Recordsconfig.brevit = { installed, version, enabled, mode, abbreviation }. On failure, recordsinstalled: falseand surfaces a one-liner; the wizard continues — a missing Brevit degrades gracefully (raw JSON fallback). Unlike the user-level detect-only tools (Figma MCP, Graphify), Brevit is a project npm dependency and thus in-scope for the wizard to install. - Graphify detection (optional) —
command -v graphify; records status inconfig.graphify. Detect-only: never installs the binary, never runsgraphify install, never builds the graph. If absent, surfaces a one-line pointer toREADME § Prerequisites § Optional — Graphify. Registration (graphify install --platform <tool>) and the build (/graphify .) are yours to run. - Patch target
.gitignore— appends the scaffold-generated paths (.figma-pipeline/config.json,graphify-out/,/tmp/figma-*/) so consumers never accidentally commit local-only state. Idempotent. 10.5. Optional design-system token build (greenfield, opt-in) — on greenfield projects (no existing tokens on disk), asks two questions: (1) Figma design-system URL (blank = skip step entirely; recordsconfig.figma.dsUrl), (2) "Build the token system now?" Yes → invokesfigma-coordinatorwith{ url: dsUrl, intent: "create", scope: "tokens-only" }and surfaces the token-builder report. No → records the URL only; the final report ends withNext: /figma-tokens <dsUrl>. Skipped on non-greenfield projects. Declining preserves the verify-don't-build posture.
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.
- 2d ago First seen · 40 lines · 45 tokens per session scan A 59fa78f43abc
init-figma-compose is a command published in the GitHub repository punkadillo/figma-code-composer (3 stars, last pushed 14d ago), licensed MIT. It adds 45 tokens to every session and 1,270 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-31.
Other commands, from other repositories
loop
Iteratively fix issues until all resolved or max iterations reached.
quality-gate
Command "quality-gate" from VoDaiLocz/kilo-kit-mcp, covering ✅ quality gate command, workflow, gates, gate 1: pre-execution and gate 2: per-behavior.
deep-audit.skeleton
Aciklama: Bu bolum Bootstrap tarafindan manifest verileriyle doldurulur. Gerekli manifest alanlari: project.description, stack.primary, project.structure, project.subprojects, stack.orm, stack.authmethod Ornek cikti.
open
SoDam-Design-Kit open 대시보드 — 검증 이력·판정서·스크린샷을 브라우저로 열람 + 재검증.
do-it-retrospective
开关本项目的本地行为反馈记录,或输出已记录问题的去敏复盘报告。参数为 on / off / status / report。.
fix-issue
!gh issue view $ARGUMENTS 2>/dev/null || echo "Could not fetch issue $ARGUMENTS".