acf-field-group-development

acf-field-group-development is a skill for Codex from Lonsdale201/wp-agent-skills. It costs 104 tokens per session (1,657 once invoked), scanned A, original, MIT.

A guide to defining Advanced Custom Fields groups in PHP or Local JSON, a version-controlled file format for WordPress field definitions. It explains stable field identities, storage names, display rules, REST exposure, and deployment.

In plain words
What is it for?
Use it when adding ACF-backed fields, choosing between PHP and Local JSON, deploying field groups, or reviewing location and API behavior.
Why use it?
It prevents field definitions from drifting between environments or being registered twice, which can turn simple edits into data migrations.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it when adding ACF-backed fields, choosing between PHP and Local JSON, deploying field groups, or reviewing location and API behavior.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/acf-field-group-development
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill acf-field-group-development
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for acf-field-group-development

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/acf-field-group-development/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/acf-field-group-development)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/acf-field-group-development"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/acf-field-group-development/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for acf-field-group-development

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/acf-field-group-development"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/acf-field-group-development.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 104 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,657 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00104 $0.01657
Opus 5.5 $0.00042 $0.00663
Sonnet 5.5 $0.00021 $0.00331
Haiku 4.5 $0.00010 $0.00166

Measured 19d ago against content hash 9ba17e5a9782, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

acf-field-group-development scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

acf/acf-field-group-development/SKILL.md · 172 lines

How it starts

The opening of the file, as written. The whole thing — 172 lines — stays where its author put it; the contents beside it link to each section on GitHub.

ACF field group development

Treat an ACF field definition as a versioned data contract. The field key is ACF's identity, the field name becomes the storage/API name, the field type determines raw and formatted value shapes, and location rules decide where the editing UI appears. Changing any of these can be a data migration even when the admin screen still looks correct.

Choose the ownership model

Model Use it when Important behavior
PHP with acf_add_local_field_group() A plugin owns the schema and deployments must be deterministic Definitions are not editable in the normal Field Groups UI.
Local JSON Site builders edit in ACF UI and the result must be version controlled and synchronized JSON and database copies can diverge; review and sync deliberately.
Database only A site owner intentionally manages the schema in one environment Poor fit for reusable plugins and automated deployments.

Do not register the same group independently in PHP and JSON. Pick one canonical owner, or make the precedence and sync workflow explicit.

Register a plugin-owned group

Register on acf/init. Do not wrap registration in is_admin(): frontend calls to get_field() need the same definitions for field lookup and formatting.

add_action( 'acf/init', static function (): void {
    if ( ! function_exists( 'acf_add_local_field_group' ) ) {
        return;
    }

    acf_add_local_field_group( array(
        'key'   => 'group_acme_event_details',
        'title' => __( 'Event details', 'acme-events' ),
        'fields' => array(
            array(
                'key'          => 'field_acme_event_start',
                'label'        => __( 'Start time', 'acme-events' ),
                'name'         => 'acme_event_start',
                'type'         => 'date_time_picker',
                'display_format' => 'Y-m-d H:i',
                'return_format'  => 'Y-m-d H:i:s',
                'required'       => 1,
            ),
            array(
                'key'   => 'field_acme_event_summary',
                'label' => __( 'Summary', 'acme-events' ),
                'name'  => 'acme_event_summary',
                'type'  => 'textarea',
                'rows'  => 4,
            ),
        ),
        'location' => array(
            array(
                array(
                    'param'    => 'post_type',
                    'operator' => '==',
                    'value'    => 'acme_event',
                ),
            ),
        ),
        'show_in_rest' => 1,
    ) );
} );

Read the full file on GitHub · 172 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 19d ago First seen · 172 lines · 104 tokens per session scan A 9ba17e5a9782

Subscribe to this mod's changes

acf-field-group-development is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 19d ago), licensed MIT. It adds 104 tokens to every session and 1,657 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-27.

Related

Other skills, from other repositories

implement

A coding workflow for implementing a specification or a set of work tickets. It includes regular type checks and tests, followed by code review and a commit.

devcxl/mattpocock-skills-zh · 14 tokens

emdash-github-actions

Sets up GitHub Actions CI/CD workflows for EmDash plugins — TypeScript type-checking, ESLint linting, Vitest testing, npm publishing, and automated releases. ALWAYS use this skill when a user wants to create, add, set up, or configure GitHub Actions, CI/CD, automated checks, or deployment workflows for an EmDash…

jdevalk/skills · 234 tokens

github-repo

Audits and improves GitHub repository quality — README structure, community health files, .github directory setup, issue/PR templates, metadata, releases, and branch hygiene. Use this skill whenever the user asks to improve, audit, review, or set up a GitHub repository, or when they mention things like "make my repo…

jdevalk/skills · 176 tokens

wp-github-actions

Sets up GitHub Actions CI/CD workflows for WordPress plugins — coding standards (WPCS/PHPCS), PHP/JS/CSS linting, PHPUnit testing, static analysis (PHPStan), Composer security scanning, WordPress Playground PR previews, and automated deployment to WordPress.org. ALWAYS use this skill when a user wants to create, add…

jdevalk/skills · 293 tokens

wp-plugin-development

Architecture and development guidelines for WordPress plugins published on wordpress.org: file structure, plugin header, lifecycle hooks, Settings API, admin UI, escaping helpers for admin JavaScript, default values and option migrations, translatable defaults, multisite-shared resources, short-circuit filters, custom…

fernandotellado/ai-skills · 141 tokens

wp-plugin-performance

Performance guidelines for WordPress plugin development: database optimization, object caching, conditional asset loading, efficient hooks, HTTP requests, WP-Cron, AJAX/REST optimization, and common anti-patterns. Based on official WordPress Developer Resources and WP VIP documentation.

fernandotellado/ai-skills · 55 tokens