Themejson extractor orchestrator

From lightspeedwp/.github · View interactive version

Themejson extractor orchestrator is an AI agent skill from the GitHub repository lightspeedwp/.github. Orchestrate the sequential extraction of WordPress theme.json design tokens from Figma. Use when setting up or syncing a full WordPress block theme with Figma design variables including palette, spacing, typography, radius, shadow, custom color tokens, and style variations.

How to use this skill

Skill file

ThemeJSON Extractor Orchestrator

Overview

Use this skill to run a complete WordPress theme.json extraction workflow in a controlled sequence.

This skill does not perform the individual extraction logic itself. Instead, it:

Treat this as an orchestration skill for another coding agent. It should coordinate the workflow cleanly rather than collapsing all steps into one pass.

Required Skill Dependencies

Before starting, confirm these skills are available to the agent or the current workflow context:

If one or more required skills are unavailable, stop and list the missing skills before starting extraction.

Request Shapes

Use $themejson-extractor-orchestrator for requests like:

Success looks like:

LightSpeedWP Example Context

Use the LightSpeedWP Agency theme.json as a grounding example for how WordPress token families may be organized:

The example theme includes a structured palette with grouped slugs such as neutral-*, surface-*, brand-*, cta-*, accent-*, and accent-two-*. Use this example to ground naming expectations and to explain how extracted Figma variables may map into a real block-theme token system, but do not force users to copy the exact slug families when their theme uses a different naming system.

If helpful, read references/lightspeed-themejson-example.md for a concise summary of the example theme's token organization.

Workflow

Run the workflow sequentially. After each step completes, present the result, ask the user to verify it, and wait for confirmation before continuing.

Step 0: Initialize and Resume Check

At the start of the run:

  1. Show the current progress checklist.
  2. Determine whether this is:
  1. If prior progress exists, resume from the first unconfirmed step unless the user explicitly asks to rerun or skip a different step.
  2. Do not mark a step complete until the user confirms it.

Step 1: Color Palette

Skill: figma-themejson-palette

  1. Ask: Please provide the Figma node URL or ID for the Color Palette variables table.
  2. Execute the palette extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the palette extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 1 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 2: Spacing

Skill: figma-themejson-spacing

  1. Ask: Please provide the Figma node URL or ID for the Spacing variables table.
  2. Execute the spacing extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the spacing extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 2 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 3: Typography

Skill: figma-themejson-typography

  1. Ask: Please provide the Figma node URL or ID for the Typography variables table.
  2. Execute the typography extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the typography extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 3 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 4: Border Radius

Skill: figma-themejson-radius

  1. Ask: Please provide the Figma node URL or ID for the Border Radius variables table.
  2. Execute the radius extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the border radius extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 4 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 5: Shadow

Skill: figma-themejson-shadow

  1. Ask: Please provide the Figma node URL or ID for the Shadow variables table.
  2. Execute the shadow extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the shadow extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 5 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 6: Custom Color Tokens

Skill: figma-themejson-custom-color-tokens

  1. Ask: Please provide the Figma node URL or ID for the Custom Color Tokens variables table.
  2. Execute the custom color tokens extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the custom color tokens extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 6 complete and continue.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Step 7: Style Variations

Skill: figma-themejson-style-variations

  1. Ask: Please provide the Figma node URL or ID for the Style Variations design.
  2. Execute the style variations extraction skill with the provided node.
  3. Present the result.
  4. Ask: Please check the style variations extraction result. Does everything look correct? (yes/no)
  5. If yes, mark Step 7 complete.
  6. If no, ask whether the user wants to rerun the step with a different node or stop here.

Progress Tracking

Maintain and update this checklist during the run:

Rules:

Branching Rules

Output Contract

During execution, keep each turn focused on the current step.

For each step result, provide:

At workflow completion, summarize:

Guardrails

Supporting Files

_Built by 🧱 LightSpeedWP with ☕, 🚀, and open-source spirit!_

Contributors

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.