Skip to content
Skill

Template map

Groups a site's URLs by the template that renders them for faster review

Template map is an open-source agent skill for documentation review. It is available on Claude Code.

Scripts
None
Platforms
Claude Code
GitHub stars
14
Last commit
License
MIT
Listing updated

Similar skills

About Template map

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (4 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the kivo-wise plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add hekivo/kivo-wise
/plugin install kivo-wise@kivo-wise

Or copy only this skill to ~/.claude/skills/template-map:

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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/template-map to use it in every repository:

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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/template-map to use it in every project:

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.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Template map 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.

More from hekivo/kivo-wise

  1. Writes approved design plans as WordPress block markup and scaffolds missing blocks

    • Open source
    • 14 GitHub stars
    • Developer tools
  2. Maps Figma components to project code blocks through Code Connect, with approval first

    • Open source
    • 14 GitHub stars
    • Design and media
  3. Turns a Figma frame, HTML file or URL into a WordPress page on the Roots stack

    • Open source
    • 14 GitHub stars
    • Developer tools
  4. Turns a Figma frame into neutral section specs for kivo-creator via the Figma MCP server

    • Open source
    • 14 GitHub stars
    • Design and media
  5. Turns an HTML file or URL into kivo-creator section specs with reference screenshots

    • Open source
    • 14 GitHub stars
    • Developer tools
  6. Maps design sections to a project's existing blocks before any code is generated

    • Open source
    • 14 GitHub stars
    • Developer tools