Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

repo-visualiser

БесплатноБез исполняемых скриптовНе проверен

Render a repository as a rotatable, animated isometric system map — varied 3D buildings on a grid, with live payload pulses tracing real control and data…

sliamh11от sliamh11★ 50 звёзд на GitHub

Об этом скилле

Analyze the repository the user names — defaulting to the current one — at latest main, and render it as an isometric system map: every component is a building on a grid, every dependency is an edge carrying a payload, and everything drawn carries a citation to the code that proves it.

The citations are the point. A building you inferred but never read is a fiction rendered in 3D. Draw only what you have read.

1. Pin the target at latest main

Resolve the repo path, then pin the exact tree you will analyze:

  • Has a remote: git fetch origin, then read the tree at origin/main — or at the remote HEAD's default branch when it isn't called main (git symbolic-ref refs/remotes/origin/HEAD). Never analyze the working tree; it drifts from main, and the user asked for main.
  • No remote: use the local default branch and say so on the map.

Done when the resolved branch and short sha are recorded, and they get stamped into the rendered output.

2. Survey the system

Go codegraph-first, not grep-first, where those tools are present: search_code / codegraph_context for semantic candidates → codegraph_callers / codegraph_callees / codegraph_impact for structure → grep and read to confirm exactly. Where the codegraph tools are unavailable, fall back to semantic search plus grep and read, and say which you used in the final report. The citation requirement does not relax with the tooling.

Every node you admit carries three things:

Field Meaning
kind entrypoint | service | store | queue | job | external
responsibility one line, in the system's own vocabulary
citation path:line where the component is defined

An external system has no definition site in this repo. Cite the nearest in-repo proof that the dependency is real — the client construction, the endpoint or binary constant, or the call site — and mark it as a use site rather than a definition, so the map doesn't imply you read code you don't have.

Done when every node has a path:line you read first-hand. A node you cannot cite does not go on the map.

3. Trace the paths

Walk the real paths between components — the calls, writes, publishes, and reads that actually exist in the code. Each edge records:

  • direction — who initiates
  • channel — control (a call, a dispatch) or data (a write, a publish, a stream)
  • payload — what actually moves across it, named concretely (AgentTurn, session_id, raw webhook body), never "data"
  • citation — path:line of the call or write itself, not of the callee's definition

Map steady-state traffic: what moves while the system is doing its job. A one-time wiring edge — a callback installed at startup — earns a place only when the reader otherwise cannot see how two buildings are connected, and then it is labelled wiring so nobody reads it as traffic.

Done when every edge is cited. An edge you believe exists but cannot pin to a line is either dropped or drawn explicitly as unconfirmed — never quietly drawn as if it were proven.

4. Render the map

Write one self-contained HTML file: inline CSS, JS, and SVG, no CDN and no external fetches, so it opens offline and years from now. Put it in the OS temp dir so nothing lands in the analyzed repo — resolve $TMPDIR falling back to /tmp (%TEMP% on Windows) and write <tmpdir>/repo-map-<repo>-<timestamp>.html.

Project with a 2:1 isometric transform carrying a yaw angle θ, so the board can be spun without relaying it out. At θ = 0 this is the classic isometric view; the grid coordinates never change, only the angle you view them from:

rx = gx·cosθ − gy·sinθ         # rotated grid coords
ry = gx·sinθ + gy·cosθ
sx = (rx − ry) * TILE_W / 2
sy = (rx + ry) * TILE_H / 2 − height
depth = rx + ry                # painter's order, recomputed per frame

Place nodes on integer grid coordinates by depth, where a node's depth is the longest path reaching it from any entrypoint — every entrypoint sits at depth 0 in the near corner, and when several paths arrive at one node the longest one wins. Each hop steps one further out, stores and external systems land at the far edge, and the primary flow reads diagonally across the grid. Ordering by longest path — not by "which chain is this on" — is what keeps the rule working once the graph stops being a single chain: a store read by three unrelated services sits behind the furthest of them rather than beside one of them. Draw back-to-front by depth ascending so nearer buildings occlude farther ones — and recompute that order on every rotation, because a draw order sorted once at θ = 0 renders inside-out by the time the board reaches 180°.

Give the map room to breathe. Density is what makes these maps unreadable, and the fix is space, not smaller type. Set the tile pitch so the widest label on a building clears its neighbours completely, and leave at least one

Полный SKILL.md на GitHub

Установить repo-visualiser в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл repo-visualiser?

Render a repository as a rotatable, animated isometric system map — varied 3D buildings on a grid, with live payload pulses tracing real control and data paths, plus a legend and an explainer panel. Use when the user wants a repo's infrastructure seen as an isometric or 3D city map. Not for a knowledge-graph dashboard (`/understand-dashboard`) or a plain Mermaid architecture diagram (`architecture-snapshot`).

Как установить скилл repo-visualiser?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл repo-visualiser запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить repo-visualiser с