Logo Wp Block Theme Converter

Wp Block Theme Converter

Cộng đồng
siddik-web
wp-block-theme-converter

Convert HTML/CSS/JavaScript projects into production-ready WordPress block themes (Full Site Editing) with theme.json v3, FSE templates and parts, block patterns, the Interactivity API, Block Bindings, and optional WooCommerce support. Use whenever the user wants to convert, port, or rebuild a static site, landing page, or classic WordPress theme as a block, FSE, or Gutenberg theme; scaffold a block theme from scratch; generate theme.json from design tokens; turn HTML into block patterns or templates; build custom blocks or style variations; migrate content or page builders (Elementor, Divi) to blocks; or debug a block theme. Trigger on phrases like "convert to WordPress", "make this a WP theme", "block theme from HTML", "FSE theme", "theme.json", or "block pattern", and on the commands /convert-to-wp-theme, /scaffold-wp-theme, /wp-pattern, /wp-theme-json, /wp-template, /wp-block, /wp-migrate, /wp-plugin-theme, /wp-variation, /wp-classic-to-fse, and /wp-debug.

Tổng quan

Nhà phát hànhsiddik-web
Kho mãwp-block-theme-converter
Tên kỹ năngwp-block-theme-converter
Sao
50
Bản fork
16
Tệp đi kèm
226
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 226 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được siddik-web công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Wp Block Theme Converter trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/siddik-web/wp-block-theme-converter/tree/main
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/siddik-web/wp-block-theme-converter.git \
  .claude/skills/wp-block-theme-converter
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Wp Block Theme Converter trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Wp Block Theme Converter ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Wp Block Theme Converter với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

WordPress Block Theme Converter

Convert HTML/CSS/JavaScript projects into production-ready WordPress Block Themes with Full Site Editing (FSE) support, theme.json schema v3, block patterns, templates, and WooCommerce compatibility.


Behavioral Principles

These four principles govern every decision made during theme generation. They are non-negotiable and override any temptation to "just get it done."

Tradeoff: These principles bias toward caution over speed. For trivial requests (a single-block edit, a one-line CSS fix), use judgment — not every task needs the full rigor.

1. Think Before Coding

Don't assume. Don't hide confusion. Surface tradeoffs.

Before generating ANY file:

  • State assumptions explicitly. If the user didn't specify a color palette, font stack, or layout strategy — say so. Don't silently invent design decisions.
  • If multiple interpretations exist, present them. "Your hero section could be a core/cover block (parallax-capable) or a core/group with background image (simpler). Which do you prefer?"
  • Push back when warranted. If the user asks for something that will create a poor theme (e.g., inline JS in patterns, Alpine.js for a simple toggle), say so and suggest the WordPress-native alternative.
  • If something is unclear, stop. Name what's confusing. Ask. Don't generate 50 files based on a guess.

2. Simplicity First

Minimum code that solves the problem. Nothing speculative.

  • No features beyond what was asked. If the user wants a landing page theme, don't scaffold WooCommerce support, dark mode, or a newsletter pattern "just in case."
  • No abstractions for single-use code. Don't create a ThemeHelper class for one function. Don't create a config.php that's only read once.
  • No "flexibility" that wasn't requested. Don't add theme options panels, customizer settings, or extra block variations the user didn't ask for.
  • If 200 lines could be 50, rewrite it. Every line must earn its place.
  • Prefer core blocks over custom patterns. A core/media-text block is better than a custom media+text pattern that reimplements the same thing.
  • Prefer theme.json over CSS. If a style can be expressed in theme.json, it MUST be. Don't write CSS for what theme.json handles natively.

The test: Would a senior WordPress theme reviewer say this is overcomplicated? If yes, simplify.

3. Surgical Changes

Touch only what you must. Clean up only your own mess.

When the user has an EXISTING theme and wants modifications:

  • Don't "improve" adjacent code. If asked to add a footer pattern, don't refactor the header pattern.
  • Don't refactor things that aren't broken. If the existing theme uses wp_enqueue_script() for something, don't migrate it to Interactivity API unless asked.
  • Match existing style. If the theme uses tabs for indentation, use tabs. If it uses snake_case for function names, follow suit.
  • If you notice unrelated issues, mention them — don't fix them. "I noticed your header pattern has an inline style attribute. Want me to fix that too?"

When YOUR changes create orphans:

  • Remove imports/variables/functions that YOUR changes made unused.
  • Don't remove pre-existing dead code unless asked.

The test: Every changed line should trace directly to the user's request.

4. Goal-Driven Execution

Define success criteria. Loop until verified.

For every task, define verifiable success criteria BEFORE writing code:

TaskSuccess Criteria
Convert landing page to WP themeTheme activates without errors. Front page renders visually identical to source. All patterns editable in Site Editor.
Generate theme.jsonJSON validates against v3 schema. Color palette matches source. Typography scale matches source.
Create a block patternPattern appears in inserter under correct category. Content is editable. No inline styles. All strings translatable.
Add WooCommerce supportProduct archive/single/cart/checkout templates render. HPOS compatibility declared. WC blocks load correctly.
Fix editor parityEvery frontend CSS rule has a matching rule in editor.css. Visual diff between editor and frontend is zero.

Transform imperative task descriptions into verifiable goals before starting:

Instead of...Transform to...
"Make it look right""Front page renders visually matching source HTML. No inline styles."
"Fix the PHP error""WP_DEBUG on, error reproduced, fix applied — debug.log is clean."
"Add WooCommerce support""Cart, checkout, and product archive render without warnings. HPOS declared."
"Make patterns editable""All patterns in Site Editor inserter. Every text/image element editable without touching the pattern file."

For multi-step tasks, state a brief plan with verification at each step:

1. Audit source HTML → verify: component map produced, no ambiguity remaining
2. Generate theme.json → verify: JSON validates, all design tokens mapped
3. Create templates → verify: all pages have corresponding FSE templates
4. Register patterns → verify: patterns appear in inserter, content is editable
5. Enqueue assets → verify: no console errors, styles load correctly
6. Accessibility pass → verify: skip-link works, contrast ratios pass, ARIA attributes present

Strong success criteria let you work independently. Weak criteria ("make it look good") require constant clarification.


When to Use This Skill

Trigger this skill when the user wants to:

  • Convert static HTML/CSS/JS into a WordPress theme
  • Build a Full Site Editing (FSE) theme from scratch
  • Scaffold theme.json, block patterns, or block templates
  • Port an existing landing page, portfolio, or eCommerce site to WordPress
  • Create a WooCommerce-compatible block theme
  • Generate individual block patterns or templates from HTML snippets

Custom Slash Commands

CommandPurposeReference File
/convert-to-wp-themeFull conversion of HTML/CSS/JS project to complete block theme${CLAUDE_PLUGIN_ROOT}/commands/convert-to-wp-theme.md
/scaffold-wp-themeCreate empty block theme scaffold (no source conversion)${CLAUDE_PLUGIN_ROOT}/commands/scaffold-wp-theme.md
/wp-patternConvert single HTML section into a registered block pattern${CLAUDE_PLUGIN_ROOT}/commands/wp-pattern.md
/wp-theme-jsonGenerate theme.json from a design system / CSS custom properties${CLAUDE_PLUGIN_ROOT}/commands/wp-theme-json.md
/wp-templateConvert single HTML page into FSE template${CLAUDE_PLUGIN_ROOT}/commands/wp-template.md
/wp-blockScaffold a custom block (block.json, edit.js, save.js/render.php, CSS)${CLAUDE_PLUGIN_ROOT}/commands/wp-block.md
/wp-migrateMigrate existing WP content (Classic Editor, ACF, widgets, CPTs, shortcodes) to block theme${CLAUDE_PLUGIN_ROOT}/commands/wp-migrate.md
/wp-plugin-themeDeclare plugin dependencies and generate plugin-specific CSS / compatibility code${CLAUDE_PLUGIN_ROOT}/commands/wp-plugin-theme.md
/wp-variationGenerate a style variation (styles/*.json) — dark mode, color palette swap, font swap${CLAUDE_PLUGIN_ROOT}/commands/wp-variation.md
/wp-classic-to-fseConvert an existing WordPress classic theme (PHP templates) to FSE block theme${CLAUDE_PLUGIN_ROOT}/commands/wp-classic-to-fse.md
/wp-debugSystematically debug WordPress block theme issues (white screen, editor errors, style regressions)${CLAUDE_PLUGIN_ROOT}/commands/wp-debug.md

When the user types one of these commands, read the corresponding command file in ${CLAUDE_PLUGIN_ROOT}/commands/ and execute the workflow defined there.


Core Workflow

For ANY conversion request (whether triggered by slash command or natural language):

Step 1: Think — Capture & Clarify (Principle 1)

Gather these inputs (ask only if not provided):

  • Theme identity (name, slug, author, description)
  • Source project type (landing page, blog, eCommerce, portfolio, SaaS)
  • HTML files to convert
  • Design tokens (colors, fonts, spacing)
  • Build system preference (Vite 6 default, or wp-scripts, or none)
  • WooCommerce support (yes/no)

Before proceeding, explicitly state:

  • What you're assuming (e.g., "I'm assuming you want GPL-2.0-or-later licensing since you mentioned WordPress.org submission")
  • What you're NOT doing (e.g., "I won't scaffold WooCommerce support since you didn't mention eCommerce")
  • Any ambiguities you need resolved (e.g., "Your hero uses a video background — should this be a core/cover with video or a custom pattern with a <video> tag?")

For default values when user is silent, use the table in ${CLAUDE_PLUGIN_ROOT}/references/defaults.md.

Step 2: Plan — Define Success Criteria (Principles 1 + 4)

Before writing any code, produce a Conversion Plan that maps:

  • Each source HTML file → WordPress template
  • Each repeating section → block pattern
  • Header/footer → template parts
  • Interactive components → JS strategy (Interactivity API preferred, classic enqueue for complex libs — read ${CLAUDE_PLUGIN_ROOT}/references/modern-blocks.md)
  • Design tokens → theme.json structure
  • Dynamic data needs → Block Bindings API candidates

Also state the success criteria for this specific conversion:

SUCCESS CRITERIA:
1. Theme activates on WordPress [version] without PHP errors or notices
2. [List of pages] render visually matching source HTML
3. All patterns appear in Site Editor inserter under [categories]
4. All interactive components work (list them)
5. No inline styles in block markup
6. All strings translation-ready
7. PHPCS WordPress-Extra passes with zero errors
8. [Any project-specific criteria]

Show this plan to the user. Get confirmation before proceeding to file generation (unless the user explicitly says "just build it").

Step 3: Execute — 10-Phase Methodology (Principle 2)

Follow the phases documented in ${CLAUDE_PLUGIN_ROOT}/references/methodology.md. Apply Simplicity First at every phase — generate only what the project needs:

  1. Audit & Extract — parse source, identify reusable components
  2. theme.json — generate schema v3 with full settings + styles (incl. Section Styles, dimensions, position)
  3. Templates & Parts — convert HTML pages to FSE block markup
  4. Block Patterns — register sections as reusable patterns
  5. Block Styles & Variations — register custom variants via theme.json + PHP
  6. JavaScript Integration — Interactivity API for interactive patterns; wp_enqueue_script() only for complex libs. Read ${CLAUDE_PLUGIN_ROOT}/references/modern-blocks.md FIRST.
  7. functions.php & inc/ — bootstrap files following WP Coding Standards
  8. Accessibility & Performance — WCAG 2.1 AA + Core Web Vitals + per-block CSS loading + font preloading
  9. i18n — translation-ready strings everywhere
  10. README & Docs — WordPress.org-format readme.txt

Simplicity checks during execution:

  • Am I generating a file that isn't needed for this specific project? → Remove it.
  • Am I adding a pattern the user didn't ask for? → Remove it.
  • Am I writing CSS for something theme.json handles? → Move it to theme.json.
  • Am I creating an abstraction used only once? → Inline it.
  • Can this 200-line file be 50 lines? → Rewrite it.

Step 4: Output Files (Principle 3)

Use the file structure documented in ${CLAUDE_PLUGIN_ROOT}/references/file-structure.md. Output every file with a clear header:

=== FILE: {{theme-slug}}/path/to/file.ext ===
<content>

For large projects (10+ HTML pages or WooCommerce themes), split delivery across 3 turns using ${CLAUDE_PLUGIN_ROOT}/references/multi-turn-strategy.md.

Surgical precision for existing themes: If modifying an existing theme, output ONLY the changed files. Include a diff summary showing exactly what changed and why.

Step 5: Verify — Post-Generation (Principle 4)

Run the automated doctor first. Before providing output to the user, run:

bash
node "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs" <theme-dir>

This executes all five quality checks (theme structure, theme.json validation, block markup lint, pattern registration check, i18n coverage). Do not declare success until doctor exits 0. If it exits non-zero, loop back to the relevant phase and fix every reported violation before continuing.

Then provide:

  • Installation instructions
  • Post-install checklist (activate, set front page, install required plugins)
  • Build commands (npm install, npm run dev, npm run build)
  • "Decisions Made" section — every assumption listed with rationale
  • Verification steps — how to confirm each success criterion was met:
VERIFICATION:
✅ node "${CLAUDE_PLUGIN_ROOT}/scripts/doctor.mjs" <theme-dir> → exits 0 (all checks pass)
✅ Activate theme → Confirm no PHP errors in debug.log
✅ Visit front page → Confirm visual match with source
✅ Open Site Editor → Confirm all templates listed
✅ Insert block → Confirm all patterns appear under correct categories
✅ Run `npx phpcs --standard=WordPress-Extra .` → Confirm zero errors
✅ Check browser console → Confirm zero JS errors
✅ Run Lighthouse → Confirm accessibility score ≥ 90

If any verification step fails, loop back to the relevant phase and fix it before reporting done. Don't declare success past a failed check.

If the user reports a problem with a generated theme, direct them to /wp-debug. See ${CLAUDE_PLUGIN_ROOT}/references/troubleshooting.md for the full symptom → root cause → fix reference.


Quality Rules — Non-Negotiable

These rules apply to EVERY file generated. See ${CLAUDE_PLUGIN_ROOT}/references/quality-rules.md for full details.

❌ NEVER:

  • Inline style="" attributes in block markup
  • <style> or <script> tags inside templates/parts/patterns
  • Hardcoded colors/spacing in CSS — use var(--wp--preset--color--{slug})
  • Deprecated WordPress functions
  • Unescaped output (always esc_html, esc_attr, esc_url, wp_kses_post)
  • Direct DB queries (use WP_Query / Query Loop)
  • Inline JavaScript in patterns (CSP-unsafe)
  • Alpine.js when the Interactivity API handles the same interaction
  • Physical CSS directional properties when logical alternatives exist (margin-inline-start not margin-left)
  • Speculative features the user didn't ask for (Principle 2)
  • "Improving" code that isn't part of the current task (Principle 3)

✅ ALWAYS:

  • Use semantic HTML via tagName attribute
  • Wrap user-facing strings in __(), _e(), esc_html__(), etc.
  • Version assets with filemtime() for cache-busting
  • Mirror frontend CSS in editor.css for editor parity
  • Use theme.json as single source of truth for design tokens
  • Provide prefers-reduced-motion fallbacks for animations
  • Use Interactivity API for simple interactive patterns (modals, tabs, toggles)
  • Use wp_enqueue_block_style() for per-block CSS loading
  • Include ARIA attributes on all interactive Interactivity API patterns
  • State assumptions before generating code (Principle 1)
  • Define success criteria before starting multi-file tasks (Principle 4)

Reference Files

Read these on-demand based on the task:

FileWhen to ReadPriority
${CLAUDE_PLUGIN_ROOT}/references/defaults.mdEvery conversion (default values)Always
${CLAUDE_PLUGIN_ROOT}/references/methodology.mdFull conversions (10-phase process)Always
${CLAUDE_PLUGIN_ROOT}/references/modern-blocks.mdAny JS/interactivity work. Interactivity API, Block Bindings, per-block CSS, Section Styles, dark mode, RTLBefore Phase 6
${CLAUDE_PLUGIN_ROOT}/references/file-structure.mdFull conversions (directory layout)Always
${CLAUDE_PLUGIN_ROOT}/references/block-conversion-map.mdConverting HTML → block markupDuring Phase 3-4
${CLAUDE_PLUGIN_ROOT}/references/theme-json-schema.mdGenerating theme.json (v3 schema + examples)During Phase 2
${CLAUDE_PLUGIN_ROOT}/references/quality-rules.mdEvery task (do's and don'ts)Always
${CLAUDE_PLUGIN_ROOT}/references/multi-turn-strategy.mdLarge projects (10+ pages)When needed
${CLAUDE_PLUGIN_ROOT}/references/woocommerce.mdWooCommerce themesWhen needed
${CLAUDE_PLUGIN_ROOT}/references/validation-checklist.mdPost-generation verificationAfter all files
${CLAUDE_PLUGIN_ROOT}/references/custom-blocks.mdCustom block development (block.json schema, edit.js patterns, render.php, deprecations)When /wp-block is invoked
${CLAUDE_PLUGIN_ROOT}/references/content-migration.mdClassic-to-block conversion, WP-CLI commands, ACF bindings, CPT templates, page builder migrationWhen /wp-migrate is invoked
${CLAUDE_PLUGIN_ROOT}/references/asset-optimization.mdFonts (subsetting, preload, self-hosting), images (WebP, lazy load, LCP), per-block CSS, JS deferral, Core Web VitalsDuring Phase 8 (Performance)
${CLAUDE_PLUGIN_ROOT}/references/plugin-compatibility.mdPlugin detection, CSS conflict resolution, plugin-specific hooks, caching compatWhen /wp-plugin-theme is invoked
${CLAUDE_PLUGIN_ROOT}/references/interactivity-api-advanced.mdShared store, server hydration, pagination, optimistic UI, ARIA live regions, focus traps, async actions, testingWhen Interactivity API work is complex (shared state, async fetch, focus management)
${CLAUDE_PLUGIN_ROOT}/references/accessibility.mdSkip links, semantic HTML, color contrast, focus management, ARIA patterns, forms, motion, dark mode, screen reader testingDuring Phase 8 (Accessibility) or when a11y question arises
${CLAUDE_PLUGIN_ROOT}/references/ci-cd.mdGitHub Actions workflows, PHPCS config, ESLint/Stylelint config, Theme Check, accessibility scan, SSH deploymentWhen user asks about CI/CD, automated testing, or deployment pipelines
${CLAUDE_PLUGIN_ROOT}/references/backward-compatibility.mdFeature availability by WP version, conditional feature loading, PHP compatibility, version strategyWhen Requires at least is below 6.5 or user asks about older WP support
${CLAUDE_PLUGIN_ROOT}/references/e2e-testing.mdPlaywright setup, block render tests, visual regression, a11y scans, CI integrationWhen user asks about automated browser tests or visual regression
${CLAUDE_PLUGIN_ROOT}/references/i18n.mdAll i18n functions, plural forms, context strings, JS translations, .pot generation, RTLDuring Phase 9 (i18n) or when multilingual questions arise
${CLAUDE_PLUGIN_ROOT}/references/troubleshooting.mdSymptom→cause→fix for all common FSE/block-theme failures; WP-CLI cheat sheet; environment checklistWhen user reports a problem with a generated theme; always cross-link from Step 5
${CLAUDE_PLUGIN_ROOT}/references/page-builder-migration.mdElementor, Divi, WPBakery, Beaver Builder migration playbooks; element→block mapping tables; 9-step general workflowWhen /wp-migrate detects an active page builder

Templates

Reusable boilerplate files in ${CLAUDE_PLUGIN_ROOT}/templates/:

  • ${CLAUDE_PLUGIN_ROOT}/templates/style.css.tpl — Theme header file template
  • ${CLAUDE_PLUGIN_ROOT}/templates/theme.json.tpl — Minimal valid theme.json starter
  • ${CLAUDE_PLUGIN_ROOT}/templates/functions.php.tpl — Bootstrap functions.php
  • ${CLAUDE_PLUGIN_ROOT}/templates/pattern-header.php.tpl — Block pattern PHP file header
  • ${CLAUDE_PLUGIN_ROOT}/templates/template-skeleton.html.tpl — Empty FSE template skeleton
  • ${CLAUDE_PLUGIN_ROOT}/templates/package.json.tpl — Build tooling package.json
  • ${CLAUDE_PLUGIN_ROOT}/templates/vite.config.js.tpl — Vite 6 config for WP integration
  • ${CLAUDE_PLUGIN_ROOT}/templates/github-actions-ci.yml.tpl — GitHub Actions CI workflow (PHPCS, ESLint, Stylelint, Vite build)
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/hero.php.tpl — Hero with CTA pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/features-grid.php.tpl — Three-column features grid pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/testimonials.php.tpl — Three testimonials pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/pricing-table.php.tpl — Three-tier pricing table pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/cta-section.php.tpl — Call-to-action section pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/faq-accordion.php.tpl — FAQ accordion (native details block) pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/team-grid.php.tpl — Four-column team grid pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/stats-row.php.tpl — Key statistics/metrics row pattern
  • ${CLAUDE_PLUGIN_ROOT}/templates/patterns/woocommerce-product-card.php.tpl — WooCommerce product card for Query Loop (requires WooCommerce 8.0+)

Examples

Reference implementations in ${CLAUDE_PLUGIN_ROOT}/examples/:

  • ${CLAUDE_PLUGIN_ROOT}/examples/northaven-ecommerce.md — Full filled-in prompt for a multi-aesthetic WooCommerce theme
  • ${CLAUDE_PLUGIN_ROOT}/examples/landing-page-simple.md — Minimal single-page conversion example

Output Conventions

  • Always lead with the Conversion Plan (1-page summary table)
  • State assumptions and success criteria before any code
  • Show file paths in === FILE: theme-slug/path === format
  • Use code fences with the correct language tag (php, json, html, css, js)
  • After all files, provide Installation Instructions section
  • End with Verification Steps + Decisions Made section

Common Pitfalls to Avoid

  1. Don't output partial theme.json — always produce a complete, valid schema v3 file
  2. Don't forget useRootPaddingAwareAlignments: true — breaks alignment otherwise
  3. Don't use add_theme_support('block-templates') AND have classic theme files — they conflict
  4. Don't escape inside translation functions — use esc_html__() not esc_html(__())
  5. Don't put CSS in style.css — that file is ONLY the theme header; real styles go in assets/css/style.css
  6. Don't forget pattern category registration — patterns won't show without register_block_pattern_category()
  7. Don't use Alpine.js for simple interactions — use the Interactivity API instead; Alpine adds unnecessary bundle weight
  8. Don't skip the screenshot.png note — required for theme directory submission
  9. Don't enqueue ALL block CSS in one file — use wp_enqueue_block_style() for per-block CSS (only loads when block is on the page)
  10. Don't forget font preloading — critical fonts need <link rel="preload"> or the wp_preload_resources filter
  11. Don't use physical CSS properties — use logical properties (margin-inline-start not margin-left) for RTL compatibility
  12. Don't put block style variations only in CSS — define them in theme.json styles.blocks.{block}.variations for full editor integration (Section Styles, WP 6.6+)
  13. Don't skip editor.css parity — every visual CSS rule in frontend must be mirrored in editor.css. Per-block CSS files loaded via wp_enqueue_block_style() auto-apply to both.
  14. Don't hardcode WP version in "Tested Up To" — always verify the current stable WordPress release before setting this value
  15. Don't add speculative features — no "just in case" patterns, no dark mode unless asked, no WooCommerce support unless asked (Principle 2)
  16. Don't silently pick an interpretation — if the source HTML is ambiguous, ask; don't guess and generate 50 files based on an assumption (Principle 1)
  17. Don't use Section Styles without bumping Requires at least to 6.6 — styles.blocks.*.variations is silently ignored on WP < 6.6; Section Styles shipped in WP 6.6

How to Know These Guidelines Are Working

These guidelines are working if you see:

  • Fewer unnecessary files — only files the project actually needs
  • Smaller diffs — only changed lines, no drive-by improvements
  • Clarifying questions BEFORE code — not after 500 lines of wrong output
  • Explicit assumptions — "I assumed X because..." not silent guessing
  • Verifiable results — each output comes with a way to confirm it works

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

và 140 tệp khác.

Câu hỏi thường gặp

Kỹ năng AI Wp Block Theme Converter làm được gì?

Convert HTML/CSS/JavaScript projects into production-ready WordPress block themes (Full Site Editing) with theme.json v3, FSE templates and parts, block patterns, the Interactivity API, Block Bindings, and optional WooCommerce support. Use whenever the user wants to convert, port, or rebuild a static site, landing page, or classic WordPress theme as a block, FSE, or Gutenberg theme; scaffold a block theme from scratch; generate theme.json from design tokens; turn HTML into block patterns or templates; build custom blocks or style variations; migrate content or page builders (Elementor, Divi...

Vì sao nên dùng Wp Block Theme Converter trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Wp Block Theme Converter là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Wp Block Theme Converter trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/siddik-web/wp-block-theme-converter/tree/main. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Wp Block Theme Converter?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Wp Block Theme Converter với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Wp Block Theme Converter với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Wp Block Theme Converter có miễn phí không?

Có. Kỹ năng này được siddik-web phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇