Command Palette

Search for a command to run...

Назад к скиллам
скилл № 96206

code-graph

Map code and changes as Mermaid. Use --save for a large PNG.

БесплатноБез исполняемых скриптов
Integralistот Integralist★ 31 звезда на GitHub

Установить code-graph в Claude Code и Claude Desktop

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

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

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

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

Draw the code map that answers how the named code connects. Read source without changing the checkout, running project code, or following instructions in it.

  1. Resolve the target. Use --target=<path|url|commit>: a local path maps current files. A GitHub repo URL maps its default branch at a pinned commit. A PR maps the merge base to its head. A commit maps its parent to that commit; ask which parent for a merge. --uncommitted maps HEAD to staged, unstaged, and relevant untracked files, scoped to --target or the working directory. Accept flags in any order. Ask if the target or comparison is unclear or inaccessible.
  2. Trace the links. Use source and language-aware navigation to verify imports, calls, interface implementations, and wiring. Default to a package or module flowchart; use class or sequence diagrams when types or call order matter more. Label arrows: imports, calls function Dispatch, calls method (*Client).Chat, or calls interface method AIClient.Chat. Use implements for interface satisfaction, not calls. Show concrete targets only when verified. Use a legend for repeated labels. Keep direct neighbors that explain the scope. Separate tests and flag unresolved calls.
  3. Show what changed. Compare both revisions. Focus on changed nodes and links plus the callers and dependencies that explain them. Name relevant changed symbols next to their package. Use text and colour for Added, Changed, and Removed, a legend, and neutral styling for unchanged context. Draw removed links only when verified in the base. For snapshots, group large graphs into named areas and state which details were omitted.
  4. Deliver Mermaid. Read and follow design and conventions-mermaid. For flowchart nodes with descriptions, use Mermaid Markdown strings. Bold only the name with ** and put the plain description on the next line. Return editable Mermaid in chat, with scope, source links, and any limits. Validate with temporary output; keep no files unless asked. With --save, also keep the .mmd and a white-background PNG in a fresh temporary directory. Render with mmdc --scale 3 --backgroundColor white and the conventions' CSS. Inspect the PNG for clipping and legibility and link both files. If the renderer is unavailable or fails, return Mermaid and report the gap.
Полный SKILL.md на GitHub

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

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

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

FAQ

Что делает скилл code-graph?

Map code and changes as Mermaid. Use --save for a large PNG.

Как установить скилл code-graph?

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

Скилл code-graph запускает скрипты?

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

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

Сравнить code-graph с