# Roots triage

> Roots triage is an open-source agent skill for developer tools. Classifies a Roots WordPress project and its runner, then pins the result in a flag file. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/hekivo/kivo-wise/tree/main/plugins/kivo-wise/skills/roots-triage
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** roots-triage
- **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 runs a bundled read-only detector that inspects a working directory and reports whether it is a Sage theme, an Acorn mu-plugin, a Radicle app, a Bedrock or plain WordPress layout, and which runner (Lando, Docker Compose or DDEV) it uses. The detector returns a JSON document with the layout, core directory, Acorn apps, runtime commands, session kind and warnings, and it never starts a process or touches the network.

The agent is guided through reading that output, matching each warning to a concrete fix, and proposing a .roots-stack.json file at the project root to stop relying on heuristics. The flag file can override the detected profile, app path or runner, and the detector keeps reporting drift when the two disagree. Writing the file stays a decision for the user.

The skill expects Node 20 or newer and a filesystem agent with bash. It reads composer files, Landofile and Compose files, bin scripts, devcontainer configuration and theme or plugin headers, and it hands off to other skills for routing and for running Lando or Compose commands.

## When your agent uses it

> Use when you need to know what kind of project the working directory is (Sage theme, Acorn mu-plugin, Radicle, Bedrock, plain WordPress) or which runner it uses (Lando, Docker Compose bin/ scripts, DDEV), when the session context is missing or contradicts the files, when there is no .roots-stack.json, or when a detector warning (ACORN_BASEPATH, misplaced env_file, Landofile still present, no bin/ scripts, docker CLI not found, truncated scan, flag drift) needs explaining. Runs scripts/detect-roots-project.mjs and writes .roots-stack.json. For choosing a skill after triage use roots-router; for Lando commands use lando-wp; for Compose commands use compose-wp.

## 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/roots-triage)
- [No network calls found in its scripts](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/roots-triage)
- [License: MIT](https://github.com/hekivo/kivo-wise/tree/HEAD/plugins/kivo-wise/skills/roots-triage)

## Features

- **Project layout detection:** Identifies whether the project is Radicle, Bedrock, Composer WordPress or plain WordPress and locates the core directory.
- **Roots profile classification:** Distinguishes Sage themes, Acorn mu-plugins and Radicle apps and lists their namespaces and versions.
- **Runner detection:** Determines whether commands run through Lando, Docker Compose, DDEV or directly on the host.
- **Warning explanations:** Maps each detector warning, such as a missing ACORN_BASEPATH or a truncated scan, to a concrete fix.
- **Flag file pinning:** Guides writing a .roots-stack.json file that overrides heuristics for profile, app path and runner.
- **Read-only detection:** The detector only reads files and checks the PATH for docker, so it never runs project commands.

## Good for

- Work out whether this repo is a Sage theme or an Acorn mu-plugin
- Explain why the detector warns about a misplaced env_file in Lando
- Figure out which runner commands should go through for this project
- Create a .roots-stack.json to pin the project's profile and runner
- Diagnose why the detector found no apps in a Roots project

## 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-triage`:

```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-triage &&
cp -R "$tmp/plugins/kivo-wise/skills/roots-triage" ~/.claude/skills/roots-triage &&
rm -rf "$tmp"
```

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

```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-triage &&
cp -R "$tmp/plugins/kivo-wise/skills/roots-triage" ~/.copilot/skills/roots-triage &&
rm -rf "$tmp"
```

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

## FAQ

### What does the skill need to run?

Node 20 or newer and a filesystem agent with bash. The detector only reads project files and checks for docker on the PATH.

### Does Roots triage change any project files?

The detector is read-only. Writing .roots-stack.json is proposed to the user, who decides whether to commit it.

### Which runners does Roots triage recognise?

Lando, Docker Compose, DDEV and a none option for host-only commands.

### When should Roots triage be used?

When the session context is missing or contradicts the files, when there is no .roots-stack.json, or when a detector warning needs explaining.

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

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

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Roots triage?

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

## 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 router](https://ai-powered.com/skills/roots-router): Roots router 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.
- [Roots reviewing](https://ai-powered.com/skills/roots-reviewing): Roots reviewing 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.
- [Testing wp](https://ai-powered.com/skills/testing-wp): Testing wp is an open-source agent skill for developer tools.
- [Compose wp](https://ai-powered.com/skills/compose-wp): Compose wp 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.

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