# Roots router

> Roots router is an open-source agent skill for developer tools. Routes Roots-stack WordPress requests to the right kivo-wise skill and order. 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-router
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** roots-router
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Roots router is an entry-point skill for projects built on the Roots stack, such as a Sage theme, an Acorn must-use plugin, Bedrock or Radicle. It makes the agent identify the project profile, read the project's own guidelines first, and then choose one skill to open for the task. When two skills seem to apply, it follows a written decision tree with tie-breaks that favour the symptom over the topic.

The workflow sets a few gates before any code is written. A native-first check asks the agent to name the WordPress, ACF or Acorn mechanism that would do the job and confirm it in the local source, so custom code is kept for proven gaps. Commands are taken from the runner listed in the project's triage output rather than the host shell, and when no runner exists the skill tells the agent to say so and warn about the risk.

The skill relies on a triage JSON from the session or a separate roots-triage step, plus routing and keyword reference files shipped alongside it. It is distributed as an MIT-licensed Claude Code plugin skill in the kivo-wise marketplace.

## When your agent uses it

> Use when you must decide which kivo-wise skill to open first, or in what order, for a task in a Roots-stack project (Sage theme, Acorn mu-plugin, Bedrock, Radicle) - "which skill", two skills seem to apply, the profile x intent map, the project-guidelines-first and native-first rules. When one skill clearly matches the task, open that skill instead. For detecting the profile use roots-triage.

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

## Features

- **Profile detection:** Determines whether the project is a Sage theme, Acorn mu-plugin or Radicle app before routing.
- **One-skill routing:** Picks a single skill for a request using an intent table and tie-break rules.
- **Native-first gate:** Requires checking the native WordPress, ACF or Acorn mechanism before proposing custom code.
- **Guidelines-first lookup:** Reads project guidelines before local source, docs and web sources, in that order.
- **Runner-aware commands:** Uses the project's configured runner for wp, composer and acorn commands instead of host tools.
- **Profile difference table:** Summarises how base paths, boot files, blocks and assets differ between profiles.

## Good for

- Decide which Roots skill to open for a Sage theme change
- Work out whether a task belongs to an Acorn mu-plugin or a theme
- Check whether a WordPress feature has a native hook before writing custom code
- Find the right runner command for a Lando or Compose 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-router`:

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### When does Roots router trigger?

It applies to requests in a Roots-stack project when the session names a Roots profile, the project has a .roots-stack.json or matching composer or Lando files, or the agent is unsure which stack skill applies. It says not to use it for plain WordPress sites without Acorn or for generic PHP questions.

### What does Roots router need to run?

It expects a filesystem agent with bash and node, and the triage output from the session or roots-triage. Project commands run through the runner named in that output, not on the host.

### Does Roots router run scripts or change files?

The skill ships no scripts. Its instructions guide routing and the choice of which skill to open next.

### Which AI clients does Roots router support?

The content ties it to the Claude Code plugin marketplace, so it is listed for Claude Code only.

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

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

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 router?

The closest alternatives to Roots router are Roots onboarding, Roots triage, Roots reviewing, Roots debugging 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 triage](https://ai-powered.com/skills/roots-triage): Roots triage 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 debugging](https://ai-powered.com/skills/roots-debugging): Roots debugging 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.
- [Acorn routes API](https://ai-powered.com/skills/acorn-routes-api): Acorn routes API 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.
- [Rebuild](https://ai-powered.com/skills/rebuild-hekivo): Rebuild is an open-source agent skill for developer tools.

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