Skip to content

feat(pipeline): InDesign as a first-class Flavian workflow — agent, skill, CLI, docs (#66)#93

Merged
PAMulligan merged 1 commit into
mainfrom
66-indesign-pipeline-claude-code-agent-skill-and-documentation-for-the-indesign-to-wordpress-workflow
May 31, 2026
Merged

feat(pipeline): InDesign as a first-class Flavian workflow — agent, skill, CLI, docs (#66)#93
PAMulligan merged 1 commit into
mainfrom
66-indesign-pipeline-claude-code-agent-skill-and-documentation-for-the-indesign-to-wordpress-workflow

Conversation

@PAMulligan
Copy link
Copy Markdown
Collaborator

Sub-issue of #61 — the closes candidate for the epic. Ships the user-facing surface that turns the underlying InDesign pipeline (#62#65) into something developers actually use.

What's included

Agent — .claude/agents/indesign-to-wordpress.md

Orchestrates parse → map-tokens → generate, then reads the generation report and proposes concrete follow-ups (unmapped frames, font fallbacks to confirm, image alt text to add). Non-destructive: works on a feature branch, never main. PreToolUse theme-location guard + PostToolUse validators (block markup, token audit, security, WPCS). Referenced from CUSTOM-AGENTS-GUIDE.md.

Skill — .claude/skills/indesign-conversion/SKILL.md

When-to-use, prerequisites (exported .idml or PDF), expected outputs, common gotchas (CMYK→sRGB shifts, missing fonts, oversized print images), and a runnable worked example against the committed code fixture. Referenced from skills/README.md.

CLI — bin/flavian.mjs

flavian pipeline indesign <input> [--seed-content] [--output <dir>]
  • Honors flavian.config.json (output path, base theme, namespace; CLI flags override) — see flavian.config.example.json
  • Emits a machine-readable indesign-pipeline-report.json alongside the Markdown report
  • flavian pipeline indesign --help prints documented usage
  • Registered as the flavian bin + pnpm flavian script

Documentation

  • docs/pipelines/indesign.md — exporting from InDesign (IDML & PDF), expected output, fidelity expectations, troubleshooting
  • README Pipelines section now lists InDesign alongside Figma and Canva
  • Agent/skill indexes and counts updated; v2.0.0 release-notes draft updated

CI smoke test

scripts/indesign-fse/smoke-test.mjs builds a two-spread brochure fixture in code (no committed binaries), runs the real CLI end-to-end, and asserts the generated theme is valid (theme.json v3, one pattern per spread, indesign-imports category). Wired into pipeline-tests.yml.

Acceptance criteria

  • indesign-to-wordpress agent exists, follows the Flavian agent shape, referenced from the agents index
  • indesign-conversion SKILL.md exists with a runnable example
  • flavian pipeline indesign --help prints documented usage
  • docs/pipelines/indesign.md published and linked from the README
  • README's Pipelines section lists InDesign
  • End-to-end smoke test in CI runs the pipeline against the committed fixture and asserts the theme is valid

Tests

  • pnpm --filter @flavian/pipeline test100 passing (adds a JSON-report test)
  • node scripts/indesign-fse/smoke-test.mjs → ✓ valid theme (2 spreads, theme.json v3)
  • Agent/skill config validation passes

Notes

🤖 Generated with Claude Code

The user-facing surface for the InDesign pipeline (#62#65): an agent, a
skill, a unified CLI, docs, and a CI smoke test.

- Agent .claude/agents/indesign-to-wordpress.md — orchestrates parse → map
  tokens → generate, reviews the report, proposes concrete follow-ups
  (unmapped frames, font fallbacks, alt text). Non-destructive: feature
  branch, never main. PreToolUse theme-location guard + PostToolUse
  validators. Referenced from CUSTOM-AGENTS-GUIDE.
- Skill .claude/skills/indesign-conversion/ — when-to-use, prerequisites,
  expected outputs, gotchas (CMYK→sRGB, missing fonts, oversized images),
  and a runnable worked example. Referenced from skills/README.
- CLI bin/flavian.mjs — `flavian pipeline indesign <input> [--seed-content]
  [--output <dir>]`, honors flavian.config.json, documented --help.
  Registered as the `flavian` bin + npm script; flavian.config.example.json.
- Generator now emits a machine-readable indesign-pipeline-report.json
  alongside the Markdown report.
- Docs docs/pipelines/indesign.md (exporting IDML/PDF, output, fidelity,
  troubleshooting); README Pipelines section lists InDesign; v2.0.0 release
  notes draft updated.
- CI: scripts/indesign-fse/smoke-test.mjs builds a code fixture, runs the
  real CLI, and asserts the theme is valid; wired into pipeline-tests.yml.

Closes the InDesign epic (#61).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@PAMulligan PAMulligan self-assigned this May 31, 2026
@PAMulligan PAMulligan merged commit ed82f68 into main May 31, 2026
6 checks passed
@PAMulligan PAMulligan deleted the 66-indesign-pipeline-claude-code-agent-skill-and-documentation-for-the-indesign-to-wordpress-workflow branch May 31, 2026 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[InDesign pipeline] Claude Code agent, skill, and documentation for the InDesign-to-WordPress workflow

1 participant