Skip to content

feat: site-to-block-theme - Rebuild live-site templates, parts and patterns in a block theme #4060

Open

Description

@ZaredRogers

Add the site-to-block-theme skill: the direct route from a live site to block theme files, with no Figma layout step. It is the generic version of tsp-theme's tsp-match-live skill.

The skill inventories the part of the live site to rebuild, measures it, maps every value to the theme's theme.json tokens, builds with the official WordPress skills, and proves the match against live.

Scope

  • Measure: measure-page.ts reads computed styles of named elements at 390, 768 and 1440, in default, hover and focus, and takes full-page screenshots. It refuses wp-admin and login URLs and never clicks, types or submits.
  • Map to tokens: map-to-tokens.ts matches each value to palette, spacing, font size, radius, shadow, font family and custom tokens. Fluid sizes are evaluated per width.
  • Prove: diff-measurements.ts compares live and local measurements and writes the "Differences from live" table for the pull request.
  • Standards: references/wordpress-standards.md holds the current WordPress coding-standards checklist.
  • site-to-design-tokens, site-to-figma-components, figma-to-block-theme and the onboarding routing map point to the new skill.

Acceptance criteria

  • 70 Jest tests pass; coverage above 80% (99.6% statements, 96% branches, 100% functions)
  • tsc --noEmit, ESLint, markdownlint, validate:skills and validate:skill-doc-contracts clean
  • Tests touch no network, files or browser
  • CI green
  • Reviewed and merged into develop

PR: #4059

Activity

  1. self-assigned this
    on Nov 23, 2026
  2. linear-code commented on Nov 23, 2026

    @linear-code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions