Wordpress block theme router

From lightspeedwp/.github · View interactive version

Wordpress block theme router is an AI agent skill from the GitHub repository lightspeedwp/.github. route wordpress block theme asset requests to the correct specialist skill for parameters, validation, patterns, template parts, templates, custom templates, block styles or section styles. use when the user asks for general block theme asset help, gives an ambiguous asset-generation request, or nee

How to use this skill

Skill file

WordPress Block Theme Router

Purpose

Act as the central entry point for WordPress block theme asset requests.

This skill does not try to be the best generator for every asset type. Its job is to:

Specialist Skills

Route to these skills:

Trigger Conditions

Use this skill when the request is about:

Do not use this skill when the asset type is already clear and a specialist skill can be invoked directly with confidence.

Inputs

Accept any mix of:

If the request is missing one or two fields, choose the most likely workflow and state assumptions briefly. Ask one focused question only when the missing detail materially changes which specialist skill should run.

Fast Decision Flow

  1. Decide whether the request is:
  1. If metadata or scope is incomplete, route through wordpress-asset-parameter-generator first.
  2. Route generation to the right specialist skill.
  3. Route finished or proposed outputs through wordpress-block-asset-validator before treating them as complete.

Routing Matrix

Route to `wordpress-asset-parameter-generator`

Use when the user asks to:

Route to `wordpress-block-asset-validator`

Use when the user asks to:

Route to `wordpress-pattern-generator`

Use when the user asks to:

Route to `wordpress-template-part-generator`

Use when the user asks to:

Route to `wordpress-template-generator`

Use when the user asks to:

Route to `wordpress-custom-template-generator`

Use when the user asks to:

Route to `wordpress-block-style-generator`

Use when the user asks to:

Route to `wordpress-section-style-generator`

Use when the user asks to:

Workflow

  1. Inspect the request and identify the likely asset type.
  2. If the request is mixed, split it into ordered subtasks.
  3. Route missing metadata work to the parameter generator first when needed.
  4. Route the main generation task to one specialist skill.
  5. Route the result to the validator when the request is about completion, review, or delivery readiness.
  6. Return:

Mixed Request Handling

When a request includes multiple asset types:

  1. Identify the primary requested outcome.
  2. Break the work into a short ordered sequence.
  3. Do not merge all instructions into one vague workflow.

Example:

Route as:

  1. wordpress-asset-parameter-generator if metadata is incomplete
  2. wordpress-pattern-generator
  3. wordpress-template-part-generator
  4. wordpress-custom-template-generator
  5. wordpress-block-asset-validator

Output Format

By default, return:

  1. the chosen specialist skill
  2. the reason for the route
  3. the ordered task sequence if the request is mixed
  4. assumptions
  5. validation notes

Example output shape:

## Route
- Specialist skill: `wordpress-template-generator`
- Reason: the request is for a standard hierarchy-aware `single.html` template

## Ordered steps
1. Prepare any missing pattern or template-part inputs if needed.
2. Generate the template with `wordpress-template-generator`.
3. Validate the result with `wordpress-block-asset-validator`.

## Assumptions
- The request is for a normal hierarchy template, not a custom template.

## Validation notes
- Final template should be reviewed before commit.

Router Rules

Failure Modes And Escalation

Escalate briefly when:

In those cases, ask at most one focused question or choose the most conservative safe route and state the assumption.

Test Prompts

Test prompt: ambiguous generation request

Prompt:

Build the WordPress asset for a hero area with editor reuse and make sure it is wired into the theme correctly.

Expected behaviour:

Test prompt: clear hierarchy template request

Prompt:

Create single.html with header, footer, article hero pattern, and post content.

Expected behaviour:

Test prompt: boundary case

Prompt:

Explain what WordPress patterns are.

Expected behaviour:

References

_This page brought to you by the 🦄 Magic Automation Unicorns of LightSpeedWP._

Automation Docs

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.