product-box-converter
БесплатноБез исполняемых скриптовНе проверенConvert clipboard content to ACF Product Box blocks. Use when the user pastes AAWP HTML, a product URL, or raw product details and wants an ACF product-box…
от wpgaurav★ 24 звезды на GitHubОб этом скилле
ACF Product Box Converter
Convert any product source (AAWP HTML, URL, or raw details) into a WordPress ACF Product Box block.
Input Detection
Determine the input type and follow the corresponding path:
| Input Type | Signal | Action |
|---|---|---|
| AAWP HTML | Contains .aawp-product classes |
Extract fields from HTML structure |
| Rendered ACF HTML | Contains .acf-product-box classes |
Extract fields from rendered output |
| URL | Starts with http / plain URL |
Fetch page, extract product data |
| Raw details | Product name, price, features as text | Map directly to fields |
ACF Product Box Block Format
CRITICAL: All field keys use the field_ prefix. Repeaters use nested row-N objects, NOT flat indexed keys.
Default (with image)
<!-- wp:acf/product-box {"name":"acf/product-box","data":{"field_pb_image":"","field_pb_image_url":"https://example.com/image.jpg","field_pb_badge_text":"SAVE 15%","field_pb_badge_color":"#22c55e","field_pb_title":"Product Title","field_pb_title_url":"https://example.com","field_pb_rating":"4.5","field_pb_rating_count":"1,234 ratings","field_pb_features":{"row-0":{"field_pb_feature_text":"Feature one"},"row-1":{"field_pb_feature_text":"Feature two"}},"field_pb_original_price":"$99.99","field_pb_discount_percent":"-15%","field_pb_current_price":"$84.99","field_pb_price_note":"Free shipping","field_pb_description":"Short product description.","field_pb_buttons":{"row-0":{"field_pb_cta_text":"Buy Now","field_pb_cta_url":"https://example.com","field_pb_cta_style":"primary","field_pb_cta_icon":"none","field_pb_cta_class":"","field_pb_cta_rel":"nofollow noopener sponsored"}}},"mode":"preview"} /-->
No Image variation
<!-- wp:acf/product-box {"name":"acf/product-box","className":"is-style-no-image","data":{"field_pb_badge_text":"SAVE 15%","field_pb_badge_color":"#22c55e","field_pb_title":"Product Title","field_pb_title_url":"https://example.com","field_pb_rating":"4.5","field_pb_rating_count":"1,234 ratings","field_pb_features":{"row-0":{"field_pb_feature_text":"Feature one"},"row-1":{"field_pb_feature_text":"Feature two"}},"field_pb_original_price":"$99.99","field_pb_discount_percent":"-15%","field_pb_current_price":"$84.99","field_pb_price_note":"Free shipping","field_pb_description":"Short product description.","field_pb_buttons":{"row-0":{"field_pb_cta_text":"Buy Now","field_pb_cta_url":"https://example.com","field_pb_cta_style":"primary","field_pb_cta_icon":"none","field_pb_cta_class":"","field_pb_cta_rel":"nofollow noopener sponsored"}}},"mode":"preview"} /-->
Key difference: "className":"is-style-no-image" in block attributes. Image fields (field_pb_image, field_pb_image_url) are omitted entirely.
When to use no-image variation:
- No product image available from the source
- User explicitly requests no image
- Product is a digital download, service, or non-physical item where a generic image adds no value
Field Reference
All field keys use the field_ prefix. Repeater fields use nested row-N objects.
Core Fields
| Field | Type | Required | Description |
|---|---|---|---|
field_pb_image |
string | No | WordPress attachment ID (empty string if none) |
field_pb_image_url |
string | No | Direct image URL (used when no attachment ID) |
field_pb_badge_text |
string | No | Badge label (e.g., "SAVE 15%", "FREE", "BEST SELLER") |
field_pb_badge_color |
string | No | Badge hex color (e.g., "#22c55e") |
field_pb_title |
string | Yes | Product name |
field_pb_title_url |
string | Yes | Link to product page |
field_pb_rating |
string | No | Rating value (e.g., "4.5", "5") |
field_pb_rating_count |
string | No | Rating count text (e.g., "1,234 ratings") |
field_pb_original_price |
string | No | Original/list price with currency symbol |
field_pb_discount_percent |
string | No | Discount text (e.g., "-15%", "-100%") |
field_pb_current_price |
string | No | Current/sale price with currency symbol (or "FREE") |
field_pb_price_note |
string | No | Price note (e.g., "Free shipping", "Buy once, own forever.") |
field_pb_description |
string | No | Short product description below pricing |
Features (Repeater)
Nested object with row-N keys. Each row contains field_pb_feature_text.
"field_pb_features": {
"row-0": {"field_pb_feature_text": "First feature"},
"row-1": {"field_pb_feature_text": "Second feature"},
"row-2": {"field_pb_feature_text": "Third feature"}
}
Buttons (Repeater)
Nested object with row-N keys. Each row contains button subfields.
| Subfield | Type | Description |
|---|---|---|
field_pb_cta_text |
string | Button label text |
field_pb_cta_url |
string | Button link URL |
field_pb_cta_style |
string | primary, secondary, or amazon |
field_pb_cta_icon |
string | none, cart, external, or `downlo |
Установить product-box-converter в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл product-box-converter?
Convert clipboard content to ACF Product Box blocks. Use when the user pastes AAWP HTML, a product URL, or raw product details and wants an ACF product-box block. Also use when the user mentions "product box," "convert to product box," "AAWP to ACF," or "product block."
Как установить скилл product-box-converter?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл product-box-converter запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic