Skip to content

Quick start

schemap is an agent skill plus a small CLI. You install the skill once; the agent runs the CLI for you.

Requirements: Node.js 22.12 or later, and a coding agent that supports skills (for example Claude Code).

With the skills CLI:

Terminal window
npx skills add decimozs/schemap

It finds the skill in the repository’s skill/ folder and copies all of it, SKILL.md, bin/schemap.mjs, references/ and examples/, into your agent’s skills directory (.claude/skills/schemap/ for Claude Code). Useful flags:

  • -g: install for your user instead of the current project.
  • -a claude-code: pick the agent (repeat for several).
  • -y: skip the prompts.
Terminal window
npx skills add decimozs/schemap -g -a claude-code -y

The CLI comes inside the skill as one file, bin/schemap.mjs. Nothing else needs installing: no npm package.

Copy or link the skill/ folder of the repository into your agent’s skills directory. For Claude Code:

Terminal window
git clone https://github.com/decimozs/schemap.git
ln -s "$PWD/schemap/skill" ~/.claude/skills/schemap

In any project, ask your agent:

Make an architecture map of this repository, backed by evidence from the code.

Other prompts that work well:

  • “Map how a checkout request reaches the database, as a sequence.”
  • “Diagram our release process: who does what, in order.”
  • “Show the states an order goes through.”
  • “Map the clickstream pipeline from the browser to the warehouse.”

The agent writes .schemap/<slug>/map.json, then delivers map.html and map.svg next to it and opens the map in your browser. Ask it to put the map in your README and it pastes the snippet:

[![Bookshop](./.schemap/bookshop/map.svg)](./.schemap/bookshop/map.html)

Ask for changes in plain words: “add the Redis cache between the API and the database”. The agent edits the same map.json and delivers again. Ids stay stable, so links into the map keep working.