원클릭으로
wp-image-to-blocks
Convert website screenshots into WordPress Gutenberg blocks using the G10n system with visual fidelity priority.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Convert website screenshots into WordPress Gutenberg blocks using the G10n system with visual fidelity priority.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | wp-image-to-blocks |
| description | Convert website screenshots into WordPress Gutenberg blocks using the G10n system with visual fidelity priority. |
| compatibility | WordPress 6.9+ (PHP 7.2.24+). Image analysis: frontend-friendly; no CLI required. |
| type | skill |
| tags | ["wordpress","gutenberg","image","block-generation"] |
| timestamp | "2026-06-27T00:00:00.000Z" |
| resource | ./references/ |
| dependencies | ["wp-blockmarkup"] |
Use this skill when:
Do not use this skill for:
wp-block-development)wp-block-themes)Use only native WordPress core Gutenberg blocks. Priority mapping:
| Visual Element | Gutenberg Block(s) | Why |
|---|---|---|
| Large image with text overlay | core/cover | Background image + inner content |
| Two-column layout | core/columns + core/column | Responsive, simple |
| Feature cards (grid) | core/columns with core/group children | Groups provide padding/borders |
| Content + image side-by-side | core/media-text | Purpose-built for this pattern |
| Text only | core/paragraph, core/heading | Semantic, minimal |
| Buttons | core/buttons → core/button | Grouped for alignment |
| Single image | core/image | Standard media Gutenberg block |
| Hero section | core/cover or core/group | See visual complexity |
| Blog post grid | core/query + query children | Archive pages, post listings |
| Site logo/branding | core/site-logo | Site editor: header/footer logos |
| Navigation menu | core/navigation | Site editor: header/footer menus |
Note: This table shows common patterns. See Block Selection & Implementation for the full list of 30+ supported core blocks including query loops, site editor blocks, lists, tables, galleries, and more.
Do not use:
Note: Gutenberg may serialize block attributes into inline style values in the final HTML. That is valid.
ALWAYS match the screenshot first; use documentation examples only for structure.
style.color.* by defaultbackgroundColor, textColor) only if the prompt explicitly asks for theme tokens/presetsUse local references in this skill for structure and implementation:
Critical rule for media Gutenberg blocks:
src= in image placeholders: <img src="..."/><img alt=""/>wp-block-cover__image-background, wp-block-image, etc.Critical rule for block integrity (paste safety):
<p><p>...</p></p>).Critical rule for classes (validation requirement):
style, textColor, backgroundColor, fontSize, borderColor) as the styling source of truth.wp-block-image, wp-block-cover__image-background, wp-block-media-text__media, etc.).core/button, keep class/attribute parity because button serialization is strict.<!-- ✅ Better: rely on attrs, keep canonical structural classes -->
<!-- wp:heading {"textAlign":"center","level":3,"style":{"color":{"text":"#ffffff"},"typography":{"fontSize":"31px","lineHeight":"1.1"}}} -->
<h3 class="wp-block-heading has-text-align-center" style="color:#ffffff;font-size:31px;line-height:1.1">Heading</h3>
<!-- /wp:heading -->
<!-- ✅ Correct: minimal core/image wrapper -->
<!-- wp:image -->
<figure class="wp-block-image"><img alt=""/></figure>
<!-- /wp:image -->
<!-- ❌ Wrong: extra manual classes -->
<!-- wp:heading {"style":{"color":{"text":"#ffffff"},"typography":{"fontSize":"31px"}}} -->
<h3 class="wp-block-heading has-text-color has-custom-font-size my-extra-class" style="color:#ffffff;font-size:31px">Heading</h3>
<!-- /wp:heading -->
Critical rule for color fidelity (source of truth):
style.color.* (e.g., "style":{"color":{"background":"#58c4dc"}})backgroundColor, textColor) when explicitly requested in the promptcyan-bluish-gray -> #abb8c3), switch to explicit custom color valuesColor Preflight (run before generating HTML):
style.color.*.backgroundColor/textColor slugs and keep utility classes valid.Critical rule for text content:
™ unless entity encoding is required.core/group Gutenberg blocks for consistent padding/borderscore/template-part, core/site-logo, etc. where applicableSee Verification section below.
Before returning the generated Gutenberg block HTML, confirm:
No media src= attributes
<img> tags: should be empty (alt="") or class-onlyValid Gutenberg block names
core/* (e.g., core/heading, not my-heading)Minimal canonical classes
wp-block-heading, wp-block-image, alignwide).my-custom-card.core/image, keep wrappers minimal (wp-block-image plus alignment classes only when explicitly set).core/button, keep class/attribute parity strict.Correct Gutenberg block nesting
core/columns contains core/column children onlycore/buttons contains core/button children onlycore/group can contain any Gutenberg blockNo duplicated HTML wrappers (CRITICAL)
<p><p>...</p></p> or <a><a>...</a></a>)Output format
Responsive behavior
className:"is-stacked-on-mobile", prefer that recovered serialization in future output for that environmentColor source-of-truth check
backgroundColor/textColor slugs for brand-critical colorsstyle.color.*Paste-safety check
core/separator output conservative; avoid decorative separator styling unless the exact serializer form is already confirmed in the target editor.| Problem | Solution |
|---|---|
| Text in image unreadable | Ask user for clarification or insert [text needed] placeholder |
| Complex custom component (not standard Gutenberg block) | Suggest approximating with native Gutenberg blocks; escalate if genuinely impossible |
| "Invalid block" error after pasting | Check for: src= in media, wrong parent Gutenberg blocks, typo in Gutenberg block names |
| "Attempt Block Recovery" due malformed structure | Check for nested duplicate wrappers (especially <p> and <a>), duplicated inner HTML, or extra wrapper tags not represented by block comments |
| Block validation errors for colors/styling | Remove manually added non-canonical classes; keep style intent in block attributes and keep HTML classes minimal |
core/button validation mismatch | style.typography.fontSize exists in block attrs but link is missing has-custom-font-size |
| Block recovery after paste | Manually-added utility classes or class/attr mismatch |
| Image block recovery | Extra classes on core/image wrapper |
| Text content changes after recovery | Entity normalization by Gutenberg |
| Color drift from screenshot | Used theme preset slug (for example backgroundColor:"cyan-bluish-gray") instead of explicit screenshot color |
| Color matching uncertain | Prioritize the screenshot and use explicit color values that match visible UI |
| Spacing looks off | Verify Gutenberg block padding/margin attributes match visual spacing in screenshot |
| Image too low-resolution | Ask user for higher-res version or wireframe notes |
Escalate to user or a broader skill when:
wp-plugin-development or wp-performance skillsUser: "Here's a hero section screenshot with a background image, heading, text, and button."
1. Analyze: Full-width, background image, centered text overlay → use core/cover Gutenberg block
2. Select: core/cover (image + overlay), core/heading, core/paragraph, core/buttons Gutenberg blocks
3. Extract: Color from overlay (dark), button color (blue from screenshot)
4. Generate: HTML with proper Gutenberg block structure, empty img tag, centered content
5. Verify: No src= in img, all classes correct, Gutenberg block nesting valid
6. Return: Ready-to-paste Gutenberg block HTML code
Use when a WordPress feature, plugin, or subsystem needs a formal architecture description before implementation. Produces architecture views, architectural decisions (with rationale), constraints, risks, and requirement-linked coverage references to SRS IDs, with SyRS enrichment when available. Aligns architecture work to ISO/IEC/IEEE 42010:2022 and integrates with the requirements flow from wp-requirements-specification.
Use when generating or reviewing PHP, JavaScript, CSS, or HTML code in any WordPress context (plugins, themes, block themes, mu-plugins, Gutenberg blocks) to enforce WordPress Coding Standards (WPCS). Covers naming conventions, formatting, sanitization/escaping patterns, SQL safety, and tooling setup.
Use when completed WordPress software needs developer-facing API, integration, and extension documentation. Produces class references, API guides, integration instructions, code examples, and troubleshooting for developers and integrators. Aligns to ISO/IEC/IEEE 26514:2022 (Information for Use — Developer Reference). Use after wp-block-development, wp-plugin-development, or wp-rest-api implementation is complete.
Use when reviewing WordPress plugins for WordPress.org directory submission readiness, including plugin-check blocking items, disclosure/readme requirements, licensing, and submission-specific security/compliance rules.
Use when completed WordPress software needs public-facing, publication-ready documentation. Transforms upstream artifacts (SRS, architecture, developer docs, user docs) into audience-appropriate content suitable for any output format (website, PDF, help center, printed). Aligns to ISO/IEC/IEEE 26514:2022 (Information for Use — Task-based). Use after wp-user-documentation when producing content for external publication.
Use when WordPress software needs procedural testing framework and verification approach. Produces test strategy, test plans, test procedures, and test case specifications for developers and QA teams. Aligns to ISO/IEC/IEEE 29119-2:2021 (Test Process) with ISO/IEC TR 29119-6:2021 (Agile Tailoring). Use during implementation planning before testing begins.