Open source CLI for Claude Code

See through your
skill stack.

A linter and a map for the references between your Claude Code skills, agents, commands and plugins. Catch what breaks before it ships.

$ uvx --from git+https://github.com/albertnahas/skillmap skillmap

No install, no dependencies, no AI. Python 3.10 or newer.

billing:invoice-writer Skill(core:formatter) core:archive-old not found

How it works

From a folder of skills to a safe merge.

Skills call other skills, send users elsewhere and read bundled files. Rename one and every caller breaks silently.

  1. 01

    Scan

    Point it at a marketplace, a plugin folder or a GitHub repo. With no arguments it reads your Claude home: every plugin you installed, your personal skills, agents and commands, and the current project.

  2. 02

    Map

    Every Skill() call, plugin:skill name, /command, sub-agent and file cited in a code span becomes a link. You get one interactive HTML map, one disc per plugin. No server, works offline.

  3. 03

    Catch broken links

    Calls to skills that no longer exist, missing bundled files, call loops, near-duplicates and skills that compete for the same requests. It also catches calls to other plugins that are not declared as dependencies. Each one with its file and line, and skillmap fix repairs the ones with exactly one clear target.

  4. 04

    Check every pull request

    In CI it compares the graph before and after the change, and reports what the change broke and what it fixed. It fails only on new errors, annotates the diff and keeps one summary comment up to date.

Why link checkers miss these

Skills do not link. They name, cite and call.

skillmap resolves skill names across plugins (plugin:skill, /command, Skill() calls, sub-agents) and paths written in code spans, scripts included.

01

Files are cited in code, not links

Markdown link checkers follow [text](path) links and HTML hrefs. Skills cite their files in inline code or prose, so this is invisible to them:

Read references/rates.md for the tax rates.
02

Skills are called by name

plugin:skill and /command are names, not links. Resolving them needs the marketplace's list of plugins. This broke silently when the command was renamed core:archive:

Archive with /core:archive-old when done.
03

Paths resolve from the skill, not the file

A note deep inside a skill that cites a reference means the skill's own references/ folder, or ${CLAUDE_PLUGIN_ROOT}, not a folder next to the note:

skills/invoice-writer/notes/eu.md cites references/rates.md

One run on a private marketplace of about 1,000 skills, agents and commands in 140 plugins

12 sfor the whole run
10errors, each confirmed by hand
13bare names several plugins share
12undeclared cross-plugin calls
1call loop

The 10 errors: 8 calls to skills or commands that no longer exist under that name (4 with the fix ready: 3 moved to another plugin, 1 renamed), a reference/ folder that is really references/, and a missing reference document.

A miss becomes an error only when a rule proves it: the skill moved to exactly one other plugin (also in code examples, which then went stale), it was renamed to one close name, the reference/ vs references/ typo, or a document missing from a shipped references/ folder. Everything else stays a warning. For frontmatter and schema checks, run claude-skill-lint and claude plugin validate alongside.

Real output

Every broken link, with its file and line.

This is the check run on a small example marketplace with two plugins.

~/acmeexit 1
$ skillmap check .
skillmap: 3 skills, 1 agents, 1 commands in 2 plugins, 7 links
3 errors, 5 warnings, 2 info
  ✖ error   broken-dependency      billing:invoice-writer: billing declares a dependency on ledger, which no marketplace lists
  ✖ error   broken-file-ref        billing:invoice-writer: Refers to file references/terms.md, which was not found (plugins/billing/skills/invoice-writer/SKILL.md:17)
  ✖ error   broken-skill-ref       billing:invoice-writer: Refers to skill core:archive-old, which was not found (plugins/billing/skills/invoice-writer/SKILL.md:15)
  ▲ warning near-duplicate         billing:invoice-writer: Very similar text to other skills: 2 skills
  ▲ warning possible-broken-file   billing:invoice-writer: Refers to file ../customers/acme.md, which was not found (plugins/billing/skills/invoice-writer/SKILL.md:19)
  ▲ warning skill-cycle            core:proofreader: 2 skills call each other in a loop
  ▲ warning trigger-overlap        billing:invoice-writer: Competes with other skills for the same requests: 2 skills
  ▲ warning undeclared-plugin-dep  billing:invoice-writer: billing uses core without declaring it in plugin.json
$ 

Errorsfail the build

  • broken-skill-ref calls a skill, agent or command that does not exist
  • broken-file-ref points to a bundled file that is missing
  • broken-dependency depends on a plugin no marketplace lists

Warningsworth a look

  • skill-cycle skills call each other in a loop
  • undeclared-plugin-dep calls another plugin without declaring it
  • ambiguous-bare-ref a bare name that several plugins have

Infogood to know

  • hub many plugins depend on it, so renaming it breaks them
  • isolated nothing links to it and it links to nothing
  • external-ref refers to a plugin that was not scanned

Use it everywhere

In CI, in your hooks, and inside your agent's loop.

The same check runs wherever skills change, for you and for the agents that edit them.

Checks every pull request. Reports what the change broke and what it fixed, fails only on new errors, annotates the diff, suggests one-click fixes and sends the findings to code scanning.

.github/workflows/skillmap.yml
on: pull_request
permissions:
  contents: read
  pull-requests: write
  security-events: write   # for sarif: true
jobs:
  skillmap:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: albertnahas/skillmap@v0.2.1
        with:
          sarif: true
The fix loop
  1. Edit a skillYou or your agent rename core:archive
  2. The hook runsskillmap lints what the edit broke
  3. The agent gets the findings2 callers still use the old name
  4. It fixes themThe check passes

Demo

See it in 70 seconds.

The map, a renamed skill breaking its callers, and the pull request check. With captions.

Map your own skills in one command.

$ uvx --from git+https://github.com/albertnahas/skillmap skillmap

Want a permanent command? pipx install git+https://github.com/albertnahas/skillmap