Classic-to-Block Theme Migrator
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.
- 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.
$22.99
· or 115 creditsSecure 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
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
Classic-to-Block Theme Migrator
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.
$22.99
· or 115 creditsSecure 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
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.phpand 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.
Known Limitations
- Cannot auto-convert Page Builder content (Elementor/Divi).
- Complex ACF logic requires manual review.
- Custom PHP loops in templates may need refactoring into blocks.
How to Install
mkdir -p ~/.claude/skills && curl -sL https://www.agensi.io/api/install/classic-to-block-theme-migrator -o /tmp/classic-to-block-theme-migrator.zip && unzip -o /tmp/classic-to-block-theme-migrator.zip -d ~/.claude/skills && rm /tmp/classic-to-block-theme-migrator.zipFree skills install directly. Paid skills require purchase - use the download button above after buying.
Reviews
No reviews yet - be the first to share your experience.
Only users who have downloaded or purchased this skill can leave a review.
Early access skill
Be the first to review this skill.
Only users who have downloaded or purchased this skill can leave a review.
Security Scanned
Passed automated security review
Permissions
Allowed Hosts
File Scopes
Tags
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
Learn More About AI Agent Skills
More Premium Skills
World-Class Site & App Design
Every AI-built UI looks generic and templated. This skill teaches your agent to actually match the design to the project, the industry, and the audience.

Legacy Code Modernization Planner for AI Coding Agents
Creates safe modernization roadmaps for old, messy, undocumented, or fragile codebases, including risk audits, refactor phases, dependency reviews, testing plans, migration steps, and AI coding prompts.
designing-hybrid-context-layers
Architects the right retrieval strategy for every query — teaching your agent when to use RAG, a knowledge graph, or a temporal index instead of defaulting to vector search for everything.
ai-automation-qa-pack
Professional QA & UAT documentation generator for AI automation agencies and complex agent deployments.