claude-wp-builder

skill
Guvenlik Denetimi
Uyari
Health Uyari
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Low visibility — Only 5 GitHub stars
Code Uyari
  • network request — Outbound network request in starter-theme/__cinematic__/assets/js/cinematic-scrubber.js
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Claude Code plugin for building custom WordPress sites, demo-first workflow with ACF/SCF fields, bilingual support, and section-by-section theme generation.

README.md

Claude WP Builder

Demo HTML to production WordPress theme — automated.

Version
License: MIT
PRs Welcome
Claude Code Plugin

A Claude Code plugin that turns approved demo HTML into a complete WordPress theme — section by section, with ACF/SCF fields, bilingual support, SEO, and security — all from the command line.

Quick Start | Commands | Architecture | Contributing | Backlog


How It Works

/wp-create  →  /wp-demo  →  /wp-init  →  /wp-header  →  /wp-section hero  →  /wp-seed  →  /wp-audit  →  /wp-finalize
     ↓             ↓            ↓              ↓                ↓                 ↓             ↓              ↓
  WordPress    Demo HTML    Scaffold      header.php     ACF fields +      Populate      Security,       Pre-delivery
  + database   for client   theme +       + nav CSS +    template +        all fields    SEO, a11y,      validation
  + server     approval     CLAUDE.md     ACF fields     section CSS       from demo     performance     checklist

Installation

Option 1: Plugin Marketplace (Recommended)

Step 1 — Add the marketplace:

/plugin marketplace add yojahny55/claude-wp-builder

Step 2 — Install the plugin:

/plugin install claude-wp-builder@claude-wp-builder

Or use the interactive UI: run /plugin, go to the Discover tab, and select claude-wp-builder.

Option 2: Direct from CLI

claude --plugin-dir /path/to/claude-wp-builder

Option 3: Project-level auto-install

Add to your project's .claude/settings.json so all collaborators get it automatically:

{
  "extraKnownMarketplaces": {
    "claude-wp-builder": {
      "source": {
        "source": "github",
        "repo": "yojahny55/claude-wp-builder"
      }
    }
  },
  "enabledPlugins": {
    "claude-wp-builder@claude-wp-builder": true
  }
}

Workflow

0. Set up the local environment (optional)

/wp-create --path=/var/www/html/my-project

Detects available tools (Docker, DDEV, Lando, Nginx, Apache, Caddy, PHP versions), lets you choose your environment, then downloads WordPress, creates the database, configures the web server, installs plugins, and generates a .wp-create.json manifest. Supports adopting existing WordPress installs.

1. Scaffold the project

/wp-init

Prompts for project name, slug, languages, industry. Copies the starter theme, replaces placeholders, generates .claude/CLAUDE.md with project config. When .wp-create.json exists, skips redundant questions and activates the theme via WP-CLI.

2. Create the demo

/wp-demo

Generates a responsive HTML demo (demo/index.html) for client approval. Uses frontend-design and ui-ux-pro-max skills for design quality. Sections are clearly separated with comments for easy WordPress conversion.

/wp-demo iterate

Re-read existing demo and iterate on changes.

2b. Or polish an existing demo

/wp-polish path/to/existing-mockup.html

Normalizes any HTML file into a plugin-compatible demo: detects sections, adds section delimiters, normalizes semantic HTML5, adds BEM class naming. Preserves the original at demo/original.html.

/wp-polish

Polish the existing demo/index.html in place.

3. Build header and footer

/wp-header
/wp-footer

Each reads the demo, dispatches specialized agents (wp-template, wp-css, wp-acf) to generate:

  • Template files (header.php, footer.php)
  • Navigation walker and menu registration
  • CSS styles
  • ACF fields added to the Header and Footer tabs in the settings page

4. Build sections

/wp-section hero
/wp-section services
/wp-section values
/wp-section contact

Each command generates three files in parallel:

  • fields/<section>.php — ACF field definitions with bilingual support
  • template-parts/section-<name>.php — PHP template consuming those fields
  • CSS block appended to styles.css

Provide a screenshot for visual reference:

/wp-section hero /path/to/screenshot.png

CF7 Contact Forms: Sections named contact, contact-us, contacto, or get-in-touch automatically integrate Contact Form 7. Use the --cf7 flag to force integration for other sections. Generates CF7 forms with branded email templates per language, creates forms via WP-CLI with IDs injected into templates, and saves reference files to cf7/.

5. Add page templates

/wp-page blog       # archive.php, single.php, post card components
/wp-page legal       # Privacy policy + terms templates with ACF fields
/wp-page 404         # Custom 404 page
/wp-page generic     # Basic content page template
/wp-page custom pricing   # Custom named page template

6. Extend settings

/wp-settings Add a Google Calendar embed field and a newsletter signup URL

Adds fields to the settings page with automatic bilingual variants.

7. Validate

/wp-responsive-check http://localhost/mysite

Screenshots at 5 viewports (375px, 576px, 768px, 1024px, 1440px) and checks for layout issues.

/wp-finalize

Pre-delivery checklist: validates escaping, bilingual coverage, responsive breakpoints, menu registration, theme structure, and more. When .wp-create.json exists, adds WP-CLI runtime checks (pages, menus, ACF fields, plugins).

8. Seed content from demo

/wp-seed demo/index.html

Parses demo HTML, imports media, populates all ACF fields (primary + bilingual), creates pages, menus, and sets the front page. Zero manual wp-admin entry needed.

9. Audit & auto-fix

/wp-audit

Run comprehensive audits and auto-fix issues (security, SEO, accessibility, performance, best practices).

10. Debug issues

/wp-debug white screen

Runs comprehensive diagnostics via WP-CLI (health, plugins, DB, config, filesystem) and offers targeted fixes. Keyword-aware: adapts checks based on the issue description.

11. Clone a remote site

/wp-clone --from=ssh://[email protected]/path --to=/var/www/html/local

Clones a remote/staging WordPress site to local dev. Supports SSH automated mode and manual SQL dump + uploads import.

Commands Reference

Command Description
/wp-init Scaffold new project from starter theme
/wp-demo Create demo HTML for client approval
/wp-polish [path] Normalize external HTML into plugin-compatible demo
/wp-header Build header with nav, logo, language switcher
/wp-footer Build footer from settings page fields
/wp-section <name> One-shot section: ACF fields + template + CSS
/wp-page <type> Page template generator (blog, legal, 404, generic, custom)
/wp-settings Extend the settings page with new fields
/wp-responsive-check Responsive validation at 5 viewports
/wp-finalize Pre-delivery validation checklist
/wp-create Set up complete WordPress local dev environment
/wp-seed Seed content from demo HTML with bilingual support
/wp-audit Comprehensive audit — security, SEO, accessibility, performance, best practices
/wp-debug Diagnose WordPress issues with WP-CLI
/wp-clone Clone remote/staging site to local dev

Architecture

Skills (auto-invoked, encode best practices)

Skill Purpose
wp-theme-standards WordPress legacy theme best practices (enqueueing, escaping, hooks, security)
wp-bilingual i18n methodology using ACF _suffix pattern with transparent helpers
wp-css-system CSS design system: custom properties, BEM naming, scales
wp-demo Demo HTML creation methodology
wp-responsive Mobile-first responsive patterns, fluid typography, touch targets
wp-cli-patterns WP-CLI best practices for all agents (saves tokens vs PHP generation)
wp-environments Environment detection, config generation, PHP version management

Agents (specialized subagents dispatched by commands)

Agent Role
wp-template PHP/WordPress template specialist — generates template parts, pages, header, footer
wp-css CSS design system specialist — BEM naming, custom properties, responsive
wp-acf ACF/SCF field architect — programmatic field definitions with bilingual support

Starter Theme

Minimal boilerplate copied by /wp-init. Includes:

  • i18n layerprefix_get_field(), prefix_get_repeater(), prefix_t(), prefix_e(), language detection (URL → cookie → browser → default)
  • Settings page — Tabs: General, Header, Footer, Contact, Address, Social, Legal, Designer, Spanish Translations
  • CSS foundation — Reset, custom property placeholders (colors, spacing, typography, shadows), utilities
  • JS base — Language switcher, mobile nav, scroll animations, sticky header
  • ACF auto-loaderfields/*.php files loaded automatically via acf/init hook

Placeholder tokens (__starter__, __STARTER__, __STARTER_NAME__) are replaced with the project name/slug during init.

Conventions

Field Naming

Pattern Example
Field names <section>_<element>hero_title
Repeaters <section>_<plural>services_cards
Subfields <element> (no prefix) → title, icon
Field keys field_<section>_<element>field_hero_title
Group keys group_<section>group_hero
Bilingual Append _<lang>hero_title_es

CSS

  • Custom properties for all design tokens (never hardcode)
  • BEM naming: .block__element--modifier
  • Mobile-first: base styles for mobile, min-width media queries for larger
  • Section delimiters: /* ============ Section: Hero ============ */

Templates

  • Always use prefix_get_field(), never raw get_field()
  • Fallback pattern: $value = prefix_get_field('field') ?: 'Default';
  • All output escaped: esc_html(), esc_url(), esc_attr()

Local Development

The /wp-create command supports multiple environment types:

Environment How
Docker (default) Ships docker-compose template with WordPress, Nginx/Apache, MariaDB, phpMyAdmin, Mailpit
DDEV Generates .ddev/config.yaml
Lando Generates .lando.yml
wp-env Generates .wp-env.json
Native Nginx Generates vhost + SSL cert + hosts entry
Native Apache Generates vhost + SSL cert + hosts entry
Native Caddy Generates Caddyfile (auto-SSL)

Plugin profiles install common plugins in one WP-CLI call:

  • starter — SCF, Rank Math SEO, WP Fastest Cache
  • full — SCF, Rank Math SEO, WP Super Cache, All-in-One WP Security, CF7, WP Mail SMTP, Redirection, Site Kit
  • Custom profiles from .wp-profiles/ or ~/.wp-profiles/

Project manifest (.wp-create.json) stores all config and is read by all commands/agents for WP-CLI wrapper, language config, and environment type.

Audit & Quality

The /wp-audit command runs a comprehensive audit across 5 categories and offers to auto-fix issues.

Categories

Flag Category Plugin Integration
--security Security hardening, code scanning All-in-One WP Security
--seo SEO optimization, schema, meta data Rank Math SEO
--a11y WCAG 2.1 AA accessibility
--performance Core Web Vitals, caching, assets
--best-practices WordPress coding standards

Three-Tier Audit

  • Tier 1 (always): Code analysis via file scanning
  • Tier 2 (with WP-CLI): Runtime checks, plugin configuration
  • Tier 3 (with web-quality-skills): Lighthouse-style browser audits

Usage

/wp-audit                    # Run all categories
/wp-audit --security --seo   # Run specific categories
/wp-audit --report-only      # Report without fixing
/wp-audit --security-level maximum  # Set AIOS security level

Optional Dependencies

Tech Stack

  • WordPress legacy theme (no blocks, no FSE)
  • ACF/SCF for custom fields (programmatic, one file per section)
  • Vanilla CSS with custom properties + BEM (no build tools)
  • Vanilla JS (no frameworks)
  • Bilingual via field suffix pattern (supports N languages, optimized for EN/ES)

External Dependencies

The /wp-demo command works best with these skills installed. All other commands work independently.

Skill Repository Install
frontend-design anthropics/claude-code /plugin install frontend-design@anthropics-claude-code
ui-ux-pro-max nextlevelbuilder/ui-ux-pro-max-skill /plugin marketplace add nextlevelbuilder/ui-ux-pro-max-skill

Roadmap

See BACKLOG.md for the full product backlog. Key areas of active development:

  • Visual regression testing with Playwright (demo vs WordPress comparison)
  • Multi-page demo support and custom post type auto-detection
  • JavaScript specialist agent for sliders, animations, and interactivity
  • Tailwind CSS starter theme and build pipeline integration ✓ shipped in v1.4.0

Contributing

We welcome contributions from everyone. Whether you found a bug while building a real site, want to improve an agent, or have an idea for a new command — we'd love your help.

See CONTRIBUTING.md for:

  • How to report bugs and suggest improvements
  • Development setup and project structure
  • Pull request guidelines and review process
  • AI-assisted contribution policy

Support

If this plugin saves you time building WordPress sites, give it a star — it helps others find it.

GitHub stars

License

MIT - Yojahny


Built with Claude Code

Yorumlar (0)

Sonuc bulunamadi