# Acf native

> Acf native is an open-source agent skill for developer tools. Guides agents to use native ACF and WordPress hooks before writing custom field code. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/hekivo/kivo-wise/tree/main/plugins/kivo-wise/skills/acf-native
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** acf-native
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill helps an agent build or review ACF field behaviour and the post save flow by first finding the native mechanism for each need. It covers validation before publish, required and length settings, conditional hiding, dynamic choices and code that runs after save.

The workflow starts by checking whether ACF is installed, since some projects run without it and then rely on register_post_meta, REST pre-insert and wp_insert_post_data instead. The agent then names the need, looks up the matching hook or setting in a reference table, and verifies the behaviour in the installed ACF and WordPress source before writing code. Custom code is allowed only for a real gap, with the reason recorded in a comment. A bundled Node script audits the changes, and the skill lists common failure modes such as drafts skipping validation.

It expects a WordPress project with WP-CLI available through a runner command, and a Node.js environment to run the audit script. Related skills cover scaffolding ACF Composer classes and escaping output.

## When your agent uses it

> Use when building or reviewing ACF field behaviour or the post save flow - validate before publish, required/maxlength settings, hiding a field (conditional_logic), dynamic choices, running code after save - acf/validate_value, acf/load_field, acf/prepare_field, acf/save_post, acf.getField, wp_insert_post_data, save_post - including projects where ACF may not be installed (Radicle). Maps each need to the native mechanism verified in local source. For ACF Composer scaffolding use acorn-scaffolding; for escaping ACF output use wp-security-escaping.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs JavaScript scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/acf-native)
- [No network calls found in its scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/acf-native)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/acf-native)

## Features

- **Native-first mechanism lookup:** A table maps common field and save needs to the ACF setting or WordPress hook that already handles them.
- **ACF presence detection:** Checks lock files, plugin folders and site versions to decide whether ACF hooks can be used at all.
- **Source verification steps:** Directs the agent to confirm hook behaviour in the installed ACF and WordPress core files before coding.
- **Block editor save flow:** Explains the order of REST and meta-box requests and which hook runs at each point.
- **Audit script:** Runs a bundled script that reports findings for custom code that duplicates ACF behaviour.
- **Failure mode guide:** Lists common symptoms such as skipped draft validation and stale values, with their causes and fixes.

## Good for

- Block publishing when an external ID is already in use
- Hide a field depending on the user role or post state
- Populate a select field's choices from database data
- Run code after ACF saves its values to post meta
- Add validation for quick edit or REST saves on a site without ACF

## Install

### Claude Code

This skill ships in the `kivo-wise` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise
```

Or copy only this skill to `~/.claude/skills/acf-native`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/acf-native &&
cp -R "$tmp/plugins/kivo-wise/skills/acf-native" ~/.claude/skills/acf-native &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/acf-native` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/acf-native` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/acf-native &&
cp -R "$tmp/plugins/kivo-wise/skills/acf-native" ~/.agents/skills/acf-native &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/acf-native` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/acf-native` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/acf-native &&
cp -R "$tmp/plugins/kivo-wise/skills/acf-native" ~/.cursor/skills/acf-native &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/acf-native` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/hekivo/kivo-wise.git --path plugins/kivo-wise/skills/acf-native
```

Or copy the folder to `~/.gemini/skills/acf-native` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/acf-native`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/hekivo/kivo-wise.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/acf-native &&
cp -R "$tmp/plugins/kivo-wise/skills/acf-native" ~/.copilot/skills/acf-native &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/acf-native` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/hekivo/kivo-wise.git
```

Then copy `kivo-wise/plugins/kivo-wise/skills/acf-native` into your agent's skills folder as `acf-native`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill do when ACF is not installed?

It solves the need with native WordPress APIs such as register_post_meta, rest_pre_insert_{post_type} and wp_insert_post_data, and recommends adding ACF only if the user asks for an admin field UI.

### Does validation run when saving a draft?

No. ACF's block editor validation runs only when the target status is publish or future, so drafts skip it.

### Which ACF hook should I use to validate a field value?

The skill points to acf/validate_value with a key-based filter, returning true or an error message.

### How do I install Acf native in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/acf-native to use it in all your projects, or to .claude/skills/acf-native in one project. Or install the kivo-wise plugin, which includes it: /plugin marketplace add hekivo/kivo-wise, then /plugin install kivo-wise@kivo-wise.

### Does Acf native run scripts?

Yes. It runs JavaScript scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Acf native?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Acf native?

The closest alternatives to Acf native are Wp hooks lifecycle, Acorn scaffolding, Acorn stack, Wp security escaping and Acorn background.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Wp hooks lifecycle](https://ai-powered.com/skills/wp-hooks-lifecycle): Wp hooks lifecycle is an open-source agent skill for developer tools.
- [Acorn scaffolding](https://ai-powered.com/skills/acorn-scaffolding): Acorn scaffolding is an open-source agent skill for developer tools.
- [Acorn stack](https://ai-powered.com/skills/acorn-stack): Acorn stack is an open-source agent skill for developer tools.
- [Wp security escaping](https://ai-powered.com/skills/wp-security-escaping): Wp security escaping is an open-source agent skill for security.
- [Acorn background](https://ai-powered.com/skills/acorn-background): Acorn background is an open-source agent skill for developer tools.
- [Craftcms](https://ai-powered.com/skills/craftcms): Craftcms is an open-source agent skill for developer tools.
- [Wp abilities API](https://ai-powered.com/skills/wp-abilities-api): Wp abilities API is an open-source agent skill for developer tools.
- [Wp abilities MCP](https://ai-powered.com/skills/wp-abilities-mcp): Wp abilities MCP is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/acf-native
