# Template map

> Template map is an open-source agent skill for documentation review. Groups a site's URLs by the template that renders them for faster review. 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-rebuild/skills/template-map
- **Repository:** https://github.com/hekivo/kivo-wise
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** template-map
- **Collection:** https://github.com/hekivo/kivo-wise
- **Categories:** [documentation review](https://ai-powered.com/categories/documentation-review)
- **Listing updated:** 2026-12-04

## About

This skill builds a templates.json file that clusters an inventory of URLs by the template or block layout that renders each one. A reviewer then checks a few sample pages per group instead of every page. Each group records its URL count, total clicks, up to three sample URLs and a review status of todo, ok, issues or na.

The workflow runs a bundled Node script that prints the URL count per group. When the default groups (home, product, category, blog, page, search) do not fit, the agent reads the stack file and the theme's view files, then writes custom group definitions with URL match rules into the project config. Groups are matched in order, and URLs that match nothing land in a reserved unmapped group that signals a missing template. Re-runs keep existing review status and notes while recomputing samples, and a validation script checks the result.

It expects an inventory.json from a prior run, a stack detection file and the theme's resources/views folder, and needs Node 20 or later. Per-URL decisions are handled by a separate skill.

## When your agent uses it

> Use when the inventory's URLs must be grouped by the template that renders them so a reviewer checks one sample per group instead of thousands of pages - maps URLs to groups from the project's real templates and blocks, ranks samples by clicks, and keeps review status across re-runs. For deciding per URL use url-inventory.

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

## Features

- **Template-based URL grouping:** Assigns each inventory URL to a group based on the template or blocks that render it.
- **Default and custom groups:** Offers standard page groups and lets the project define its own match rules.
- **Clicks-ranked samples:** Picks up to three sample URLs per group ordered by clicks for reviewer checks.
- **Review status tracking:** Keeps todo, ok, issues and na status and notes across re-runs.
- **Unmapped URL detection:** Flags URLs that match no group so missing templates surface early.
- **Validation check:** Runs a validation script to confirm the map is consistent with the inventory.

## Good for

- Group my site's thousands of URLs by template so I can review one sample each
- Show which URLs my template map leaves unmapped
- Pick representative sample pages for each page template
- Update the template map after re-running the URL inventory without losing review notes

## 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/template-map`:

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

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

### Codex

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

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

### Cursor

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

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

Or copy the folder to `~/.gemini/skills/template-map` yourself.

### VS Code

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

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

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

## FAQ

### What does Template map need before it runs?

It needs a run with inventory.json, the .roots-stack.json file from roots-detect, and the theme's resources/views folder. It runs on Node 20 or later.

### Does Template map change my existing review status on re-runs?

Re-runs keep each group's status, note and issue. Samples are recomputed, so hand-picked samples are lost.

### What happens to URLs that match no group?

They fall into a group named unmapped, which signals a template missing from the map and cannot be used as a custom group name.

### Does Template map decide the status of individual URLs?

No. The SKILL.md directs per-URL decisions to a separate url-inventory skill.

### How do I install Template map in Claude Code?

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

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

## Where this comes from

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

## Alternatives

- [Review board](https://ai-powered.com/skills/review-board): Review board is an open-source agent skill for documentation review.

---
Source: https://ai-powered.com/skills/template-map
