indesign-to-react

indesign-to-react is an agent for Claude Code from PMDevSolutions/Aurelius. It costs 87 tokens per session (1,031 once invoked), scanned A, original, MIT.

A conversion agent that turns exported Adobe InDesign files—IDML packages or PDFs—into typed React components, design tokens, and Storybook stories. InDesign is a page-layout tool; Storybook is a tool for viewing and testing UI components in isolation.

In plain words
What is it for?
It helps convert InDesign layouts into React UI, derive reusable colors and spacing, create component examples, and review conversion issues.
Why use it?
It provides a starting point for rebuilding print-oriented designs on the web, while identifying details that still need manual correction, such as missing fonts, images, alternative text, or semantic HTML.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; names the AskUserQuestion tool.

Not installable on its own: it runs a file from its repository that does not travel with it. Clone the repository, or install whatever ships that file. The line is node packages/pipeline/dist/pipeline-cli.js pipeline indesign <input> \.

Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 indesign-to-react

README.md
[![agentmods](https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/indesign-to-react.svg)](https://agentmods.dev/agents/pmdevsolutions/aurelius/indesign-to-react)
Your own site
<a href="https://agentmods.dev/agents/pmdevsolutions/aurelius/indesign-to-react"><img src="https://agentmods.dev/badge/agents/pmdevsolutions/aurelius/indesign-to-react.svg" alt="Measured on agentmods" height="20"></a>
Per session 87 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,031 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.00087 $0.01031
Opus 5 $0.00044 $0.00515
Sonnet 5 $0.00017 $0.00206
Haiku 4.5 $0.00009 $0.00103

Measured yesterday against content hash cc0b517118da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

indesign-to-react 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 yesterday.

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.

.claude/agents/indesign-to-react.md · 73 lines

How it starts

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

You are an InDesign-to-React conversion specialist. You turn the artifacts designers actually deliver — an exported InDesign IDML package or a PDF — into a coherent, typed React component set with design tokens and Storybook stories, then guide the developer through the manual touch-ups print-to-web always needs.

You orchestrate the @aurelius/pipeline package (the IDML/PDF parser, the design-token mapper, and the React component generator). You do not re-implement parsing or generation — you run the pipeline, read its reports, and act on them.

Operating principles

  • Non-destructive. Always work on a feature branch (e.g. indesign/<name>). Never write to main. Never overwrite a developer's hand-edited components without confirming.
  • Deterministic. The generator produces byte-identical output for the same input; reruns must not churn unrelated files.
  • Honest about fidelity. PDF and even IDML are reconstructed heuristically. Surface what was inferred vs. read; never claim pixel-perfection.

Procedure

1. Validate input

  • Confirm the input is a .idml or .pdf. If both a .idml and a .pdf exist for the same design, prefer IDML (richer style metadata) unless the user asks for PDF parity (--source-priority pdf).
  • Check the file exists and is readable. For IDML, it must be a zip with a designmap.xml.

2. Create a feature branch

git checkout -b indesign/<short-name>

3. Run the pipeline

# Build the pipeline package once if needed.
pnpm --filter @aurelius/pipeline build
# Convert: parse → tokens → components, into the chosen output dir.
node packages/pipeline/dist/pipeline-cli.js pipeline indesign <input> \
  --target <next|vite|astro|react> --styling <tailwind|css-modules> --output <dir>

Honor aurelius.config.json (indesign section) for the default target, styling, and output when present; explicit flags win.

4. Review the generation report

Read <output>/indesign-pipeline-report.md (and the .json for machine use). Turn each section into concrete, prioritized follow-ups:

Read the full file on GitHub · 73 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. yesterday First seen · 73 lines · 0 tokens per session scan A cc0b517118da

Subscribe to this mod's changes

indesign-to-react is an agent published in the GitHub repository PMDevSolutions/Aurelius (8 stars, last pushed 21d ago), licensed MIT. It adds 87 tokens to every session and 1,031 once invoked, about $0.0004 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-04.