bundled-skills/codebase-to-wordpress-converter/SKILL.md
Expert skill for converting any codebase (React/HTML/Next.js) into a pixel-perfect, SEO-optimized, and dynamic WordPress theme.
npx skillsauth add FrancoStino/opencode-skills-antigravity codebase-to-wordpress-converterInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
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.
The skill follows a strict 4-phase forensic process:
Strict enforcement of non-negotiable rules:
Start by identifying all components in the source code. Create a UI Comparison table comparing the original source output against the target WordPress output.
Map static React/HTML content to dynamic WordPress functions:
the_title(), get_field(), or the_content().get_template_directory_uri().Ensure every theme includes the foundational WordPress hooks correctly:
header.php / footer.php): Must include wp_head() before </head> and wp_footer() before </body>.get_header() and get_footer().register_nav_menus() for dynamic navigation without breaking original HTML structure.Maintain a live tracker of Total Issues, Fixed, and Remaining. Every fix must be followed by a confirmation:
// 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()
]);
// Source: <img src="/images/logo.png" />
// WP Conversion:
<img src="<?php echo get_template_directory_uri(); ?>/assets/images/logo.png" alt="Logo" />
get_page_by_path() for robust internal linking.functions.php.header.php to ensure global styles are active.tools
Authorized security assessment of LLM applications and AI agents: prompt injection, tool abuse, RAG exposure, memory poisoning, system-prompt extraction, and agent-compliance engineering per OWASP LLM/ASI Top 10.
development
Builds two parameterized UI modes—流光溢彩白 (iridescent white) and 五彩斑斓黑 (colorful black)—with OKLCH, WebGL/CSS fallback, vision gating, screenshot QA, and total/per-color intensity reports. Use when a UI request names either mode or needs measured color parameters.
tools
Delegate coding tasks to the Kimi Code CLI (`kimi`) only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.
development
Front-end JavaScript reverse engineering: locate signature chains, analyze encrypted request parameters, sample runtime behavior, and reproduce logic locally in Node for evidence-based output.