Generate Advanced Custom Fields (ACF) Local JSON configurations for WordPress from visual designs or HTML structures. Use when creating ACF field groups, converting designs to ACF schemas, building WordPress custom fields from mockups, or when working with ACF Pro Local JSON format. Supports flexible content, repeaters, clone fields, and all ACF field types.
59
67%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./skills/local-json-acf/SKILL.mdGenerate complete ACF (Advanced Custom Fields) Local JSON configurations from images, designs, or HTML structures for WordPress development.
text, textarea, or wysiwygimage (consider gallery for multiple)repeater or flexible_contenttrue_false or button_groupselect or radiodate_picker or date_time_pickerlink or urlcolor_pickerfilenumber or rangetab field typeflexible_content with layouts<!-- Text Field -->
<h1>, <h2>, <p> → text/textarea/wysiwyg
<!-- Image Field -->
<img> → image field
<picture>, <source> → image with return format 'array'
<!-- Repeater Pattern -->
<div class="card"> (múltiples) → repeater
<ul><li> (dinámicos) → repeater
<!-- Flexible Content Pattern -->
Secciones variadas (hero, features, cta) → flexible_content
<!-- Link Field -->
<a href=""> → link field
<!-- True/False -->
<input type="checkbox"> → true_falseEvery ACF Local JSON file follows this structure:
{
"key": "group_unique_identifier",
"title": "Field Group Name",
"fields": [...],
"location": [...],
"menu_order": 0,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": ""
}{
"key": "field_unique_key",
"label": "Field Label",
"name": "field_name",
"type": "text",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"default_value": "",
"placeholder": "",
"prepend": "",
"append": "",
"maxlength": ""
}{
"key": "field_repeater_key",
"label": "Items",
"name": "items",
"type": "repeater",
"instructions": "",
"required": 0,
"layout": "block",
"button_label": "Add Item",
"min": 0,
"max": 0,
"sub_fields": [
{
"key": "field_subfield_key",
"label": "Title",
"name": "title",
"type": "text",
"parent": "field_repeater_key"
}
]
}{
"key": "field_flexible_key",
"label": "Page Builder",
"name": "page_builder",
"type": "flexible_content",
"instructions": "",
"button_label": "Add Section",
"min": "",
"max": "",
"layouts": {
"layout_hero": {
"key": "layout_hero_key",
"name": "hero",
"label": "Hero Section",
"display": "block",
"sub_fields": [...]
},
"layout_features": {
"key": "layout_features_key",
"name": "features",
"label": "Features Section",
"display": "block",
"sub_fields": [...]
}
}
}{
"key": "field_image_key",
"label": "Image",
"name": "image",
"type": "image",
"return_format": "array",
"preview_size": "medium",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": ""
}Group Keys: group_ + descriptive_snake_case + random_hash
group_homepage_hero_5f8a2bField Keys: field_ + descriptive_snake_case + random_hash
field_hero_title_9c3d1eLayout Keys: layout_ + layout_name + random_hash
layout_hero_section_4b7e9aUniqueness: Every key must be globally unique across all ACF installations
Common location patterns:
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
]"location": [
[
{
"param": "page_template",
"operator": "==",
"value": "template-homepage.php"
}
]
]"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "post"
},
{
"param": "post_category",
"operator": "==",
"value": "category:news"
}
]
]block, table, or row layouts appropriatelyGenerate the complete JSON file ready to save as:
acf-json/group_[name].jsonThe file should be valid JSON and immediately usable in WordPress ACF Pro's Local JSON feature.
For complex patterns like:
references/clone-fields.mdreferences/relationships.mdreferences/custom-types.mdreferences/conditional-logic.mdUser provides: Screenshot of a hero section with title, subtitle, CTA button, and background image
Analysis:
Output: Complete JSON with all fields properly structured and nested
f42aba1
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.