# Acorn livewire

> Acorn livewire is an open-source agent skill for developer tools. Build, wire and debug Livewire 4 components inside an Acorn WordPress app. 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/acorn-livewire
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** acorn-livewire
- **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 guides an agent through adding Livewire 4 to an Acorn application, from installing livewire/livewire and checking its service provider to publishing config and setting up routing and asset directives. It covers generating class-based components, writing their state and validation, and embedding them in Blade templates.

The workflow starts by checking the installed Livewire version in composer.lock and the Acorn boot call, then walks through install, routing and asset setup, generator usage, class design and view structure. It includes guidance for cached pages, where per-visitor state must be pushed after load, and a checklist for verifying the update route, script output and browser network behaviour.

The skill expects a Roots-style Acorn project with access to the runner commands for WP, Acorn and Composer, and it differentiates between Sage themes, mu-plugins and Radicle app profiles. A failure table and reference notes cover common errors such as 404 update requests, expired-page responses and snapshot mismatches after deploys.

## When your agent uses it

> Use when creating, wiring or fixing a Livewire 4 component in an Acorn app - make:livewire --class, app/Livewire, wire:model modifiers (.live, .blur, .debounce), wire:key, attributes (#[Locked]/#[Computed]/#[Validate]/#[On]), lifecycle hooks, @livewireScripts, the /livewire-<hash>/update route, installing livewire/livewire on Radicle. For errors that start after a deploy (419, RangeError, stale HTML) use roots-debugging; for JSON endpoints use acorn-routes-api; for Alpine-only UI use tailwind-vite-assets.

## What it can access

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

- [Instructions only, no scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/acorn-livewire)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/acorn-livewire)

## Features

- **Livewire installation:** Steps to add livewire/livewire to an Acorn project and confirm the app key and provider are picked up.
- **Routing and asset setup:** Guidance on withRouting options, the wordpress middleware group and where to place Livewire directives.
- **Class-based component generation:** How to generate and configure components with class files instead of single-file components.
- **State and attribute rules:** Rules for public properties, locked values, computed data, validation and capability checks in actions.
- **Cache-aware rendering:** Advice on rendering neutral defaults on cached pages and planning purges with releases.
- **Failure diagnostics:** A symptom-to-cause table covering missing scripts, 404 and 419 responses and snapshot errors.

## Good for

- Add a server-validated contact form to a WordPress page using Livewire
- Build a search or filter component that queries WordPress posts as the user types
- Create a multi-step wizard component inside an Acorn theme
- Fix a Livewire component that fails to mount or whose update request returns 404
- Set up Livewire on a Radicle project for the first time

## 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/acorn-livewire`:

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

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

### Codex

Copy the skill folder to `~/.agents/skills/acorn-livewire` 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/acorn-livewire &&
cp -R "$tmp/plugins/kivo-wise/skills/acorn-livewire" ~/.agents/skills/acorn-livewire &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/acorn-livewire` 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/acorn-livewire &&
cp -R "$tmp/plugins/kivo-wise/skills/acorn-livewire" ~/.cursor/skills/acorn-livewire &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/acorn-livewire` 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/acorn-livewire
```

Or copy the folder to `~/.gemini/skills/acorn-livewire` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/acorn-livewire` 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/acorn-livewire` into your agent's skills folder as `acorn-livewire`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does Acorn livewire support Livewire 3?

No. It targets Livewire 4.x. For a Livewire 3 project the skill says to stop and report the version.

### Where does the Livewire service provider come from?

The skill states there is no roots/acorn-livewire package. You install livewire/livewire alongside Acorn and Acorn discovers its service provider.

### What changes when I add wordpress: true to withRouting?

Every WordPress page then runs the wordpress middleware group, a copy of web that includes session start and queued cookies, so cached pages should be checked for session cookies.

### Do I need to add Livewire scripts to my layout?

Yes. The skill recommends @livewireStyles in the head and @livewireScripts before the closing body tag of each layout that can render a component, since auto-injection does not reach WordPress-rendered templates.

### How do I install Acorn livewire in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/acorn-livewire to use it in all your projects, or to .claude/skills/acorn-livewire 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 Acorn livewire run scripts?

No. It is instructions only, with no 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 Acorn livewire?

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 Acorn livewire?

The closest alternatives to Acorn livewire are Acorn stack, Acorn background, Acorn routes API, Acorn scaffolding and Wp hooks lifecycle.

## Where this comes from

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

## Alternatives

- [Acorn stack](https://ai-powered.com/skills/acorn-stack): Acorn stack is an open-source agent skill for developer tools.
- [Acorn background](https://ai-powered.com/skills/acorn-background): Acorn background is an open-source agent skill for developer tools.
- [Acorn routes API](https://ai-powered.com/skills/acorn-routes-api): Acorn routes API 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.
- [Wp hooks lifecycle](https://ai-powered.com/skills/wp-hooks-lifecycle): Wp hooks lifecycle is an open-source agent skill for developer tools.
- [Roots debugging](https://ai-powered.com/skills/roots-debugging): Roots debugging is an open-source agent skill for developer tools.
- [Tailwind vite assets](https://ai-powered.com/skills/tailwind-vite-assets): Tailwind vite assets is an open-source agent skill for developer tools.
- [Testing wp](https://ai-powered.com/skills/testing-wp): Testing wp is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/acorn-livewire
