Command Palette

Search for a command to run...

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

gitdiagram

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

Shows how a public GitHub repository is built: an AI-made architecture diagram with a written explanation, the main components and their source paths, and…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

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

GitDiagram — architecture diagrams for GitHub repositories

Overview

GitDiagram (gitdiagram.com, MIT licence) reads a GitHub repository's file tree, README and a sample of its source files, and has a model produce a diagram of the system: groups of components, how they connect, and a link from every component to its file on GitHub. The result is shown as an interactive page and is also available as Markdown and through a read-only MCP server. A separate feature turns a repository into a narrated explainer video of about a minute; watching existing videos is open to everyone, while making new ones is early access.

For an agent the useful parts are the MCP server and the Markdown endpoint: both return the architecture of a public repository as text, with Mermaid source, so the agent can answer structure questions without cloning and reading hundreds of files. The diagrams are AI-made overviews, so check specific claims against the code.

Instructions

Reading a diagram in a browser or by URL

Any GitHub URL works with hub replaced by diagram: https://github.com/fastapi/fastapi becomes https://gitdiagram.com/fastapi/fastapi. Add /video for the explainer video page if one exists (https://gitdiagram.com/fastapi/fastapi/video), and .md for the Markdown version.

curl -s https://gitdiagram.com/fastapi/fastapi.md -o fastapi-architecture.md
head -n 12 fastapi-architecture.md

The file starts with a title, a note on when it was last updated, links to the interactive diagram, the repository and the video, then ## Overview, a fenced mermaid block (a flowchart TD with subgraph groups and click lines pointing to GitHub files) and a component list. A 404 means no diagram has been made yet: open https://gitdiagram.com/owner/repo in a browser once and wait about a minute for it to generate.

Adding the MCP server to an agent

The server is remote, needs no key or sign-in, and lives at https://gitdiagram.com/mcp.

# Claude Code
claude mcp add --transport http gitdiagram https://gitdiagram.com/mcp

# Codex CLI
codex mcp add gitdiagram --url https://gitdiagram.com/mcp

# Gemini CLI
gemini extensions install https://github.com/ahmedkhaleel2004/gitdiagram

# GitHub Copilot CLI
copilot mcp add --transport http gitdiagram https://gitdiagram.com/mcp

Other clients (Cursor, VS Code, Windsurf, Zed, ChatGPT) take the same URL as a remote MCP server. Restart the client so the tools appear.

The three tools

All are read-only; none starts a paid generation or touches private repositories.

  • get_repository_diagram takes repository, either owner/repo or any github.com URL inside the repository. It returns the written explanation, the components with source paths, the connections, Mermaid source and the interactive link. If no diagram exists yet it returns a link that creates one when opened in a browser.
  • find_repository_diagrams takes query (part of an owner/repo name) and an optional limit of 1 to 10. It lists stored diagrams, most-starred first, and is the way to find a project's exact owner and repo name. It searches names, not code.
  • get_explainer_video takes repository and returns the video link, length and narration transcript when a video exists. It never makes one.

What the Markdown contains

The .md file is the most stable thing to parse. In order: a heading # owner/repo architecture, a quoted note with the generation date, three links (interactive diagram, repository, video tour), ## Overview in prose, ## Diagram (Mermaid) with a flowchart TD block, and the component and connection lists. Node ids look like node_router, labels carry the source file in square brackets, and each click node_x "https://github.com/..." line gives the GitHub file for that node. To list the linked files:

grep '^click ' fastapi-architecture.md | awk '{print $3}' | tr -d '"'

Explainer videos

https://gitdiagram.com/videos is a gallery of existing videos, and /video on a diagram URL opens one if it exists (MP4 download, landscape or vertical, captions burned in). The get_explainer_video tool returns the link and the narration transcript, which is useful when a person wants something to watch or a short spoken-style summary. Do not promise a video for a given repository: creating new ones is early access on the hosted site.

Using the result

Ask the agent to answer from the result, not from memory: a short summary of the layers, the components with their files, and the request or data path through them. When the user needs a diagram in a document, take the mermaid block as is; GitHub, GitLab, Notion and most docs tools render it.

Troubleshooting

  • The tools are missing after claude mcp add: restart the session, then check /mcp. The URL must end in /mcp.
  • get_repository_diagram returns a link instead of a diagram: none is stored yet. Open the link in a browser, wait about a minute, call the tool aga
Полный SKILL.md на GitHub

Установить gitdiagram в Claude Code и Claude Desktop

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

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

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

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

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

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

Вложенные файлы

_scores.json

FAQ

Что делает скилл gitdiagram?

Shows how a public GitHub repository is built: an AI-made architecture diagram with a written explanation, the main components and their source paths, and Mermaid source. Use when the user asks "how is owner/repo structured?", wants an architecture overview of an open-source project before reading its code, needs Mermaid source for a repository, or wants to add the GitDiagram MCP server to Claude Code, Codex, Gemini CLI or Copilot CLI. Covers the hosted site, the .md endpoint, the MCP tools and self-hosting.

Как установить скилл gitdiagram?

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

Скилл gitdiagram запускает скрипты?

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

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

Сравнить gitdiagram с