/flavian:indesign-conversionfrom Flavian
Converts Adobe InDesign .idml or PDF layouts into WordPress FSE block themes, mapping styles and swatches to theme.json tokens and generating block patterns.
Ships in Flavian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill converts an Adobe InDesign document into a complete WordPress Full Site Editing (FSE) block theme using the @flavian/pipeline InDesign stages. It parses an exported .idml (or a PDF fallback), maps the document's paragraph/character styles and swatches into theme.json design tokens, and generates FSE block patterns (one per spread), templates, header/footer parts, and a merged theme.json.
Key principle: the design system comes from the document. Swatches → color palette, paragraph styles → typography scale, frame geometry → spacing — then patterns reference those token slugs, never inline values.
Pair this skill with the indesign-to-wordpress agent, which runs the steps end-to-end and reviews the generation report for follow-ups.
.idml file, or only a PDF exported from InDesign.Do not use this for live Figma or Canva sources — use figma-to-fse-autonomous-workflow or canva-to-fse-autonomous-workflow instead.
.idml (strongly preferred). In InDesign: File → Export → Format: InDesign Markup (IDML). IDML preserves stories, frames, styles, swatches, and master spreads.File → Export → Adobe PDF. PDF reconstruction is lossy — text is rebuilt from glyph runs, styles are synthesized from font sizes, and every approximation is recorded as a fidelity warning. Use only when no .idml is available.pnpm install).--asset-dir at the IDML package's Links/ folder or a directory of extracted PDF assets.git checkout -b indesign-import/<slug> — never convert on main.flavian pipeline indesign <input.idml> --output themes/<slug>
# add --seed-content to also emit bin/seed-content.sh (a draft page per spread)
# add --asset-dir <dir> to stage real image bytes into assets/
This parses, maps tokens, and generates the theme in one step.themes/<slug>/indesign-pipeline-report.md (and the .json twin for tooling). Act on unmapped frames, font fallbacks, out-of-gamut colors, and missing alt text.theme.json is valid (the report says so).themes/<slug>/assets/ (if not already staged) and run bash themes/<slug>/bin/import-media.sh.themes/<slug>/
├── theme.json # base theme merged with the mapped tokens (schema-valid)
├── style.css, functions.php # theme header + bootstrap (registers the InDesign Imports category)
├── patterns/spread-1.php … # one block pattern per spread, category: indesign-imports
├── templates/ # index.html (stitches the patterns), page.html, 404.html
├── parts/header.html, footer.html # from master-spread chrome, or sensible defaults
├── bin/import-media.sh # WP-CLI media import for staged assets
├── indesign-pipeline-report.md # human-readable generation report
└── indesign-pipeline-report.json # machine-readable counterpart
core/heading / core/paragraph, grouped in core/group (role from the paragraph-style name: Heading N, Body, Caption).core/image, or core/cover when text sits on top of the image.core/columns.The pipeline ships a code fixture (no committed binaries) and an end-to-end smoke test that builds a two-spread brochure, runs the real CLI, and asserts the theme is valid:
node scripts/indesign-fse/smoke-test.mjs
# ✓ smoke: InDesign pipeline generated a valid theme (2 spreads, theme.json v3)
To convert your own document end-to-end and inspect a generated pattern:
flavian pipeline indesign ./brochure.idml --output themes/brochure
sed -n '1,20p' themes/brochure/patterns/spread-1.php
cat themes/brochure/indesign-pipeline-report.md
You can also drive the stages individually (useful for debugging):
node packages/pipeline/bin/parse-idml.mjs brochure.idml > ir.json
node packages/pipeline/bin/map-tokens.mjs ir.json --out-dir ./tokens
node packages/pipeline/bin/generate-theme.mjs ir.json --out-dir themes/brochure
packages/pipeline/config/font-map.json (often a Google font). The report lists every fallback — confirm each, or self-host the real font and update the font map..idml; treat PDF output as a starting point that needs review.alt="". Add meaningful alt text (the agent proposes some from surrounding story text) before shipping.indesign-to-wordpress (orchestrates + reviews the report)docs/pipelines/indesign.md, docs/pipeline/indesign-output-generator.mdfse-pattern-first-architecture, block-pattern-creation, visual-qa-verificationWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
indesign, wordpress-fse, idml, theme-generation, design-tokens
16 skills in this plugin
/block-pattern-creationUse when creating WordPress block patterns, registering patterns, organizing pattern categories, or building reusable UI components with blocks. Keywords: block patterns, register_block_pattern, pattern category, InnerBlocks, WordPress patterns, reusable blocks/canva-to-fse-autonomous-workflowUse when converting Canva HTML/CSS exports to WordPress FSE block themes. Orchestrates autonomous workflow from CSS token extraction through template generation. Keywords: Canva to WordPress, FSE conversion, HTML export, CSS design tokens, autonomous template generation/create-blog-articleCreate an SEO-optimized blog article for a Claude Code component with AI-generated cover image/figma-to-fse-autonomous-workflowUse when converting Figma designs to WordPress FSE block themes. Orchestrates autonomous workflow from design token extraction through pixel-perfect template generation. Keywords: Figma to WordPress, FSE conversion, design tokens, autonomous template generation, pixel-perfect FSE/fse-block-theme-developmentUse when creating FSE block themes, working with theme.json, creating templates or template parts, or building block patterns. Keywords: FSE, Full Site Editing, block theme, theme.json, templates, patterns, WordPress theme development/fse-pattern-first-architectureEnforces pattern-first architecture for WordPress FSE themes - use PHP patterns for images, not inline HTML. Auto-triggered when creating FSE templates with images.npx claudepluginhub pmdevsolutions/flavian --plugin flavianOther plugins' skills for the same job