# html to wordpress

> Converts static HTML into WordPress ACF blocks while automatically matching your theme's specific architecture.

html to wordpress is a free AI agent skill on Agensi by Sujit mgr, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Sujit mgr](https://www.agensi.io/creators/sujit-mgr)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Uses: 2
- Version: 1.0
- Last updated: 2026-10-13
- Security: scan passed (2026-10-13); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/html-to-wordpress
- Tags: api, web-design, prompt-engineering, wordpress, acf, php, gutenberg, custom-wordpress

## About this skill

Converting static HTML components into functional WordPress ACF blocks often results in architectural drift and broken designs. This skill solves that by first analyzing your existing theme to detect whether it uses legacy PHP-based ACF blocks or modern Full Site Editing (FSE) block.json conventions. It then performs a 1:1 conversion that preserves your exact CSS classes, JS interactions, and accessibility markers without introducing foreign coding patterns.

### What it does
- **Architecture detection** identifies if the theme is Branch A (Classic/PHP) or Branch B (FSE/JSON) before writing any code.
- **1:1 design preservation** maintains original class names, responsive breakpoints, and animations in the new block.
- **Automated field mapping** converts HTML content areas into appropriate ACF field types, including repeaters and galleries.
- **Accessibility enforcement** wires up ARIA roles, keyboard operability, and semantic heading hierarchies.
- **Asset management** enqueues CSS and JS only when the block is present on the page to maintain performance.

### How it works
1. **Analyze** the local environment to determine the current WordPress theme architecture.
2. **Scan** the target HTML to map sections to block slugs and interaction models (tabs, sliders, etc.).
3. **Generate** the necessary PHP templates, JSON configurations, and field group logic based on the detected branch.
4. **Verify** the output against quality gates for SEO, performance, and responsive behavior.

### Frameworks & tools
WordPress, Advanced Custom Fields (ACF), PHP, JavaScript, CSS/SASS, and HTML5.

### Why this beats prompting it yourself
Standard prompts often hallucinate modern block.json structures into legacy themes or miss critical WordPress escaping functions. This skill uses a strict preservation contract and branch-specific recipes to ensure the code actually works within your specific project's constraints.

### Use cases
- **Mockup conversion** to turn a static HTML/CSS design into a dynamic Gutenberg editor experience.
- **Legacy migration** for moving hardcoded PHP page templates into flexible ACF blocks.
- **Component porting** to bring external UI library components into a specific WordPress theme ecosystem.

### Known limitations
Requires an existing WordPress theme structure to detect architecture. It does not generate the ACF field groups inside the WP admin UI; it provides the code or JSON to register them.

## Requires

- Node.js

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the html to wordpress skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from simply asking a standard AI to write an ACF block?

Unlike generic prompts, this skill performs an 'Architecture Detection' scan to ensure the code matches your specific theme style (Classic PHP vs. Modern FSE) and automatically generates the precise ACF field mapping for repeaters and galleries.

### Which AI agents or development environments are required to use this skill?

The skill is compatible with any AI agent that supports file generation and codebase analysis, specifically optimized for environments with access to WordPress and ACF Pro documentation.

### What specific files and code outputs are included when I run the skill?

You will receive the logic to generate PHP templates, block.json configurations, and the PHP/JSON code required to register your ACF field groups, ensuring a 1:1 match of your original HTML design.

### Do I need to change my current theme structure or install new frameworks to use this?

No, this skill is designed to adapt to your existing workflow; it detects your current theme's architecture and enqueues assets locally to maintain your project's specific performance and SEO standards.

### What are the technical requirements and limitations I should be aware of before starting?

The skill preserves all original CSS classes and JS interactions, but it requires an existing WordPress theme structure to function correctly as it does not build themes from scratch.

### Does the generated code follow WordPress security and accessibility best practices?

The skill includes built-in quality gates that automatically apply WordPress-specific escaping functions and accessibility markers (ARIA roles) to ensure the generated blocks are secure and SEO-friendly.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
