code-graph
Map code and changes as Mermaid. Use --save for a large PNG.
от 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.
- 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.--uncommittedmaps HEAD to staged, unstaged, and relevant untracked files, scoped to--targetor the working directory. Accept flags in any order. Ask if the target or comparison is unclear or inaccessible. - 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, orcalls interface method AIClient.Chat. Useimplementsfor 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. - 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.
- 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.mmdand a white-background PNG in a fresh temporary directory. Render withmmdc --scale 3 --backgroundColor whiteand 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.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
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), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…