Wordpress theme validation

From lightspeedwp/.github · View interactive version

Wordpress theme validation is an AI agent skill from the GitHub repository lightspeedwp/.github. Validate WordPress block-theme implementation surfaces against the approved design system. Use when the user asks to validate or review theme.json, block styles, section styles, style variations, theme-utils conventions, or Figma traceability for a WordPress project.

How to use this skill

Skill file

WordPress Theme Validation

Overview

Use this skill when the task is to validate a WordPress block theme against its design-system sources of truth.

This skill is for implementation validation, not for broad package drafting. It checks whether theme.json, block styles, section styles, style variations, CSS custom properties, and theme utility conventions stay aligned with approved design evidence such as DESIGN.md, AGENTS.md, Figma variables, Figma styles, parent-theme inheritance, and project-specific rules.

When To Use This Skill

Use $wordpress-theme-validation when the user asks to:

Do not use this skill for first-pass DESIGN.md creation, broad evidence gathering, or general Figma-to-code implementation. Use the broader package and Figma skills for those tasks first, then use this skill to validate the implementation layer.

Required Inputs

Use the strongest available sources in this order:

  1. current project implementation files
  2. DESIGN.md
  3. AGENTS.md
  4. Figma variables, styles, patterns, and component context
  5. parent-theme files and inheritance context
  6. theme-utils.mjs or equivalent theme utility files
  7. plugin extension rules that affect the theme surface

If the needed implementation files are missing, say exactly which file or surface is missing before making strong validation claims.

Workflow

  1. Identify which implementation surfaces are in scope: theme.json, block styles, section styles, style variations, CSS custom properties, theme-utils.mjs, or related theme helper files.
  2. Identify the validation baseline: DESIGN.md, AGENTS.md, Figma evidence, parent-theme inheritance, plugin extension rules, or approved project conventions.
  3. Inspect theme-utils.mjs or equivalent utility files before judging generated or transformed theme outputs. Treat them as implementation conventions, not as the canonical design source.
  4. Run the helper script in scripts/inventory_theme_surfaces.mjs when a fast inventory of theme surfaces, token-like values, or likely validation targets will improve consistency.
  5. Compare implementation values against approved sources and classify findings as:
  1. Validate all relevant implementation surfaces together rather than checking theme.json in isolation.
  2. Call out which Figma variables, styles, or patterns appear to map to each implementation surface whenever that traceability is available.
  3. If a value cannot be traced back to Figma, DESIGN.md, parent-theme inheritance, or an approved project rule, do not present it as verified.
  4. When block styles, section styles, or style variations duplicate logic that belongs in shared tokens or theme.json, flag that as maintainability risk.
  5. When theme-utils.mjs conventions imply generated output, note whether the implementation appears to respect those conventions.

Validation Targets

Check these when present:

Output Contract

Return a structured validation result with these sections when relevant:

  1. Validation Scope
  2. Sources Checked
  3. Implementation Surfaces Checked
  4. Verified Mappings
  5. Inferred Mappings
  6. Drift And Legacy Findings
  7. Block Style / Section Style / Variation Findings
  8. theme-utils Convention Findings
  9. Figma Traceability Findings
  10. Open Conflicts Or Missing Evidence
  11. Recommended Fixes
  12. Validation Status

For each meaningful finding, include:

Decision Rules

Supporting Files

Example Request Shapes

_Docs signed by 🤖 Copilot for LightSpeedWP – always fresh!_

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.