1

    Classic-to-Block Theme Migrator

    by Arnstein Larsen

    A senior WordPress theme architect skill that migrates classic PHP themes to FSE block themes — extracting business logic into a companion plugin during conversion — and delivers both a phased reversible plan and the actual converted files.

    Updated Jun 2026
    Security scanned
    Built for Claude Cowork

    $22.99

    · or 115 credits

    30-day refund guarantee

    Secure checkout via Stripe

    Included in download

    • Extract CPTs and business logic from themes into standalone functionality plugins.
    • Generate a valid theme.json derived from legacy CSS variables and design tokens.
    • network automation included
    • Ready for Built for Claude Cowork
    • Instant install

    Sample input

    Convert my classic theme header.php into an FSE template part. It has a custom logo, a primary menu, and uses the CSS variable --brand-blue for the background.

    Sample output

    File: parts/header.html

    About This Skill

    Advanced WordPress Modernization

    Modernize legacy WordPress workflows by transforming classic PHP-based themes into high-performance, Full Site Editing (FSE) block themes. This skill doesn't just shuffle files; it acts as a senior theme architect to restructure your entire site's architecture for the block era.

    What it does

    • Intelligent Extraction: Identifies business logic (CPTs, shortcodes, APIs) trapped in functions.php and migrates it to a dedicated companion plugin.
    • Token-Based Design: Automatically derives a comprehensive theme.json (v3) from your existing CSS variables and Customizer settings.
    • Template Conversion: Rewrites PHP templates (header, footer, index, single) into valid HTML block markup using wp: comments.
    • Pattern Creation: Extracts repeating UI sections into discoverable, reusable Block Patterns.

    Why use this skill?

    Unlike basic AI prompting, this skill follows a strict architectural gate system. It prevents technical debt by enforcing design tokens over hardcoded values and ensuring content remains independent of the theme. You get a production-ready migration plan with risk ratings and a complete file set, not just snippets or advice.

    Output & Tools

    The skill produces structured project directories including templates/, parts/, and a {theme}-functionality plugin. It supports WordPress 6.4+ standards and integrates perfectly with modern developer tools like Claude Code or Cursor.

    Use Cases

    • Extract CPTs and business logic from themes into standalone functionality plugins.
    • Generate a valid theme.json derived from legacy CSS variables and design tokens.
    • Convert PHP loops and template tags into modern WordPress Query Loop blocks.
    • Turn repeated theme sections into discoverable, categorized Block Patterns.

    Reviews

    No reviews yet - be the first to share your experience.

    Only users who have downloaded or purchased this skill can leave a review.

    Security Scanned

    Passed automated security review

    Permissions

    Network Access

    Allowed Hosts

    schemas.wp.org
    example.com

    File Scopes

    classic-to-block-theme-migrator/**

    Built for Claude Cowork / Claude.ai (Claude Opus recommended, high effort). Works with any SKILL.md-compatible agent; written for Claude's long-context code reasoning. Not optimized for ChatGPT or Gemini.

    Frequently Asked Questions

    More Premium Skills

    $23