# Roots debugging

> Roots debugging is an open-source agent skill for developer tools. Diagnoses broken Roots/Acorn WordPress projects by collecting evidence before fixing. 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/roots-debugging
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** roots-debugging
- **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 finding the cause of failures in Roots and Acorn WordPress projects, such as white screens, boot errors, missing Blade views or ACF blocks, asset 404s, and Livewire failures. It follows a fixed sequence: locate the environment, gather logs and debug flags, categorize the symptom, test one hypothesis at a time, then apply the smallest fix at the root cause.

It includes a symptom table with first checks for each category, a per-profile map of where logs, compiled views, caches and providers live for sage-theme, acorn-mu-plugin and radicle-app layouts, and reference notes on cache layers. Deploy staleness gets its own path, covering edge, object cache, OPcache and compiled view caches, with each layer assigned to the owner who should clear it.

The skill expects a local or remote Acorn project and access to run WordPress and Acorn commands through the project's runner, such as Lando. Shared environments are treated as read-only: the agent observes and reports, and any purge or restart is proposed to the owner instead of executed.

## When your agent uses it

> Use when something is broken on a Roots/Acorn WordPress project and the cause is unknown - 500 or white screen, Acorn boot failure, "class not found", stale Blade, missing ACF blocks, assets 404, Livewire not mounting. Also when it works locally but not on staging or production, or a change is not visible after a deploy - old HTML, Livewire 419 or RangeError right after a deploy, edge/CDN, object cache or OPcache holding old state. Read-only on shared environments. For new features use the building skill; for Lando container problems use lando-wp.

## 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/roots-debugging)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/roots-debugging)

## Features

- **Evidence-first workflow:** Requires reproduction and log evidence before any code change, with one hypothesis tested at a time.
- **Symptom category table:** Maps errors such as boot failure, class not found, Blade rendering and routing to targeted first checks.
- **Per-profile file locations:** Shows where logs, compiled views, caches and providers sit for theme, mu-plugin and radicle layouts.
- **Deploy staleness checks:** Read-only header and asset-hash checks for old HTML or Livewire errors after a release.
- **Cache layer guidance:** Lists edge, object cache, OPcache and Acorn caches, with the owner expected to clear each.
- **Read-only remote handling:** Keeps staging and production observation-only and presents purges as proposals.

## Good for

- Why does my Roots site show a white screen after I changed a Blade view?
- My Acorn command fails with class not found, what should I check?
- Livewire returns 419 right after deploying, what is causing it?
- My ACF block disappeared from the inserter, help me find out why.
- The site works locally but shows old HTML on staging.

## 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/roots-debugging`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/roots-debugging` yourself.

### VS Code

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

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

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

## FAQ

### When should I use Roots debugging instead of the building skill?

Use it when something is broken and the cause is unknown. For new features the content points to the building skill, and for Lando container problems it points to lando-wp.

### Will the agent clear caches on staging or production?

No. Shared environments are read-only for the agent. Cache purges, restarts and redeploys are proposed with the exact command and the owner of that layer.

### Where does Roots debugging look for Acorn logs?

It checks storage/logs under the Acorn base path, and falls back to the WordPress cache folder for theme layouts. It also reads the WordPress debug.log when WP_DEBUG_LOG is enabled.

### How do I install Roots debugging in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/roots-debugging to use it in all your projects, or to .claude/skills/roots-debugging 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 Roots debugging 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 Roots debugging?

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 Roots debugging?

The closest alternatives to Roots debugging are Roots onboarding, Roots triage, Acorn stack, Roots reviewing and Roots router.

## Where this comes from

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

## Alternatives

- [Roots onboarding](https://ai-powered.com/skills/roots-onboarding): Roots onboarding is an open-source agent skill for developer tools.
- [Roots triage](https://ai-powered.com/skills/roots-triage): Roots triage 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.
- [Roots reviewing](https://ai-powered.com/skills/roots-reviewing): Roots reviewing is an open-source agent skill for developer tools.
- [Roots router](https://ai-powered.com/skills/roots-router): Roots router 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.
- [Testing wp](https://ai-powered.com/skills/testing-wp): Testing wp is an open-source agent skill for developer tools.
- [Debugging and error recovery](https://ai-powered.com/skills/debugging-and-error-recovery): Debugging and error recovery is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/roots-debugging
