New to Claude Skills? Learn how to install them →

Csickn33 on GitHub

Codebase to WordPress Converter

Free

Transform static sites into dynamic WordPress themes seamlessly.

Get this skill

Free · Opens the source repo

What Codebase to WordPress Converter does

The Codebase to WordPress Converter skill is tailored for developers looking to convert React-based or static HTML frontends into fully functional WordPress themes. It provides a structured approach to ensure that the resulting theme maintains a pixel-perfect match with the original design while integrating essential WordPress functionalities. This skill is particularly useful for those who require high fidelity in their conversions and need to preserve technical SEO elements throughout the process.

The conversion process is divided into four distinct phases: forensic UI comparison, a comprehensive audit, an action plan for addressing discrepancies, and iterative fixing. This phased approach allows developers to methodically identify and resolve issues without compromising the integrity of the original layout, spacing, typography, or colors. By following these steps, users can ensure that their WordPress themes not only look identical to the original but also function correctly with WordPress' dynamic capabilities.

This skill is ideal for developers who are tasked with creating WordPress themes from existing codebases, especially when a client demands precision and adherence to SEO best practices. It also serves as a valuable tool for auditing existing WordPress themes to identify structural or SEO-related flaws. By leveraging this skill, developers can confidently convert their projects while minimizing the risk of introducing errors or inconsistencies.

Ultimately, the Codebase to WordPress Converter skill is designed for those who prioritize quality and accuracy in their web development projects, making it an essential addition to any developer's toolkit.

When to use it

Use this skill when you need to convert a React or HTML project into a WordPress theme with strict adherence to the original design and SEO standards.

When not to use it

This skill is not suitable for projects that do not require high fidelity in design or for those that involve significant alterations to the original layout or structure.

What you can build with it

Converting a React App

Transform a React application into a fully functional WordPress theme while maintaining the original design.

Auditing a WordPress Theme

Evaluate an existing WordPress theme for structural or SEO flaws and create a plan for remediation.

Ensuring SEO Compliance

Convert static HTML pages to WordPress while preserving essential SEO elements like meta tags and schema.

How to install Codebase to WordPress Converter

View source

1. Install with the skills CLI

npx skills add sickn33/agentic-awesome-skills/codebase-to-wordpress-converter --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by sickn33

Codebase to WordPress Converter

Overview

This skill is designed for the high-fidelity conversion of static or React-based frontends into fully functional, CMS-driven WordPress themes. It acts as a Senior WordPress Architect, React Expert, and QA Engineer to ensure a 100% pixel-perfect match while integrating deep WordPress functionality like ACF, dynamic menus, and technical SEO preservation.

When to Use This Skill

  • Use when converting a React (CRA/Vite/Next.js) or HTML project into a WordPress theme.
  • Use when the client demands a 100% pixel-perfect match with the original source.
  • Use when auditing an existing WordPress conversion for structural or SEO flaws.
  • Use when you need to ensure technical SEO (Schema, Meta tags, Heading hierarchy) is preserved exactly.

Core Capabilities

Phased Conversion & Audit

The skill follows a strict 4-phase forensic process:

  1. Phase 1: Forensic UI Comparison: Side-by-side table audit of React components vs. WordPress templates to find discrepancies.
  2. Phase 2: Full Audit: Deep dive into UI, SEO, CMS Editability, Navigation, Functionality, and Performance.
  3. Phase 3: Action Plan: Tasks classified as SAFE, RISKY, or BLOCKED to prevent breaking the UI.
  4. Phase 4: Iterative Fixing: Executing one safe task at a time with validation after each step.

Absolute UI Lock

Strict enforcement of non-negotiable rules:

  • No alterations to layout, spacing, typography, or colors.
  • Exact preservation of Tailwind or CSS class names.
  • Zero changes to DOM structure or HTML nesting.

Step-by-Step Guide

1. Discovery & Forensic Audit

Start by identifying all components in the source code. Create a UI Comparison table comparing the original source output against the target WordPress output.

  • Rule: No fixes are allowed during this phase; only detection.

2. Strategic Field Mapping

Map static React/HTML content to dynamic WordPress functions:

  • Replace static text with the_title(), get_field(), or the_content().
  • Replace static paths with get_template_directory_uri().

3. Implementation of Core Hooks

Ensure every theme includes the foundational WordPress hooks correctly:

  • Layout Files (header.php / footer.php): Must include wp_head() before </head> and wp_footer() before </body>.
  • Page Templates: Must call get_header() and get_footer().
  • register_nav_menus() for dynamic navigation without breaking original HTML structure.

4. Validation & Live Tracker

Maintain a live tracker of Total Issues, Fixed, and Remaining. Every fix must be followed by a confirmation:

  • ✅ No UI change
  • ✅ No DOM change
  • ✅ No class change

Examples

Example 1: Navigation Conversion

// WRONG: Static replacement that adds wrappers
wp_nav_menu(['theme_location' => 'primary']);

// CORRECT: Preserving original Tailwind classes and structure
wp_nav_menu([
    'theme_location' => 'primary',
    'container' => false,
    'items_wrap' => '<ul class="flex space-x-8">%3$s</ul>',
    'walker' => new Custom_Tailwind_Walker()
]);

Example 2: Asset Pathing

// Source: <img src="/images/logo.png" />
// WP Conversion:
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/logo.png" alt="Logo" />

Best Practices

  • Do: Use get_page_by_path() for robust internal linking.
  • Do: Implement ACF (Advanced Custom Fields) fallbacks in functions.php.
  • Do: Keep the Tailwind configuration in the header.php to ensure global styles are active.
  • Don't: Add "div" wrappers or rename classes to "clean up" the code.
  • Don't: Use standard WordPress default styles if they conflict with the original design.

Additional Resources

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.

Frequently asked questions about Codebase to WordPress Converter

Similar skills