Agent skill

GitDiagram Repo Architecture

by ahmedkhaleel2004 in ahmedkhaleel2004/gitdiagram

Explains how a public GitHub repository is built by fetching its GitDiagram architecture diagram, components and optional explainer video.

MITAuto-check passedDevelopment

Install GitDiagram Repo Architecture

skills CLI
$ npx skills add ahmedkhaleel2004/gitdiagram --skill repo-architecture -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ahmedkhaleel2004/gitdiagram repo-architecture --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ahmedkhaleel2004/gitdiagram.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/gitdiagram/skills/repo-architecture .claude/skills/repo-architecture && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
repo-architecture
GitHub stars
18k
Token cost
~429 tokens
SKILL.md length
216 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
MIT

At a glance

Explains how a public GitHub repository is built by fetching its GitDiagram architecture diagram, components and optional explainer video.

  • Works in 5 steps: Work out the repository as owner/repo.… → Call get_repository_diagram with… → Answer the user's actual question from… → …
  • Understanding how an open-source project is organized before contributing
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Getting an architecture or system diagram of a public GitHub repo

What it does

The agent works out the repository as owner and repo, from a github.com URL or the local clone's origin remote, or searches diagrams by project name and asks when several match. It then calls get_repository_diagram, which returns a written explanation, the main components with their paths, how they connect, Mermaid source and an interactive diagram link.

Answers cite component labels and source paths and include the interactive link. Because the diagram is AI-generated from the repository's files, the agent checks the code at the cited path when certainty matters, and if no diagram exists it says so and shares the link that creates one. get_explainer_video returns a narrated video when one exists. Only public GitHub repositories are covered, and access is read-only.

When your agent uses it

  • Understanding how an open-source project is organized before contributing
  • Getting an architecture or system diagram of a public GitHub repo
  • Starting work in an unfamiliar codebase hosted on GitHub
  • Finding a shareable explainer video for a repository

Example prompts

  • “How is the vercel/next.js repository structured?”
  • “Give me an architecture diagram for this repo and tell me where the API layer lives.”
  • “Is there an explainer video for the tailwindcss repository?”

Requirements

  • Access to the GitDiagram tools for finding and fetching repository diagrams

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Work out the repository as owner/repo. Take it from a github.com URL the user gave, or, when working inside a local clone, from its origin…
  2. Call get_repository_diagram with owner/repo. It returns GitDiagram's written explanation, the main components with the paths they live in…
  3. Answer the user's actual question from that result. Name components by their labels, cite their source paths, and give the interactive…
  4. If GitDiagram has no diagram yet, say so plainly and share the link from the result, which makes one on gitdiagram.com in about a minute…
  5. If the user wants something to watch or share, call get_explainer_video for the repository's narrated explainer video, when one exists.

What it can do on your machine

Read from SKILL.md and the folder at commit 10c0ff8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitDiagram Repo Architecture loads about 429 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 216 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~80
When it runs · the whole SKILL.md, loaded when a task matches
~429

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ahmedkhaleel2004/gitdiagram at commit 10c0ff8, republished under its MIT licence (© ahmedkhaleel2004). 216 words, ~429 tokens.

Download SKILL.mdSave it as .claude/skills/repo-architecture/SKILL.md (or your agent's skills folder).
name
repo-architecture
description
Explain how a public GitHub repository is built using GitDiagram's architecture diagram. Use when the user asks how a GitHub repository or open-source project is structured or organized, wants an architecture or system diagram of a repo, or is starting work in an unfamiliar codebase hosted on GitHub.

Explain a repository's architecture with GitDiagram

  1. Work out the repository as owner/repo. Take it from a github.com URL the user gave, or, when working inside a local clone, from its origin remote. If the user only named a project, call find_repository_diagrams with the name and pick the match the user means; ask if several fit.
  2. Call get_repository_diagram with owner/repo. It returns GitDiagram's written explanation, the main components with the paths they live in, how they connect, Mermaid source and the interactive diagram link. In ChatGPT the diagram also appears as an interactive view.
  3. Answer the user's actual question from that result. Name components by their labels, cite their source paths, and give the interactive diagram link so they can explore it. The diagram is AI-generated from the repository's files: when the user needs certainty about a detail, check the code at the cited path.
  4. If GitDiagram has no diagram yet, say so plainly and share the link from the result, which makes one on gitdiagram.com in about a minute. Don't describe an architecture you haven't read.
  5. If the user wants something to watch or share, call get_explainer_video for the repository's narrated explainer video, when one exists.

GitDiagram only covers public GitHub repositories and is read-only: it never changes anything on GitHub.

© ahmedkhaleel2004, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in plugins/gitdiagram/skills/repo-architecture of ahmedkhaleel2004/gitdiagram.

Open the folder on GitHubat commit 10c0ff8

Compare with similar skills

GitDiagram Repo Architecture next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitDiagram Repo Architecture compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitDiagram Repo Architecture this skillahmedkhaleel2004/gitdiagram18k—~429Automated safety check: PassMIT
Code Graph Mermaid Diagramstrailofbits/skills7.5k—~1.7kAutomated safety check: PassCC-BY-SA-4.0
Deep Repository Architecture Analyzeryzddmr6/repo-analyzer492—~2.2kAutomated safety check: PassMIT
Archify Diagramstt-a1i/archify82k—~2.9kAutomated safety check: PassMIT
Archify Diagram BuilderUnclecheng-li/AI_Animation1.5k2 repos~4.1kAutomated safety check: PassMIT
Deepwiki Rssopaco/deepwiki-rs3.1k—~748Automated safety check: PassMIT

Similar skills

  • Code Graph Mermaid Diagrams

    trailofbits/skills

    Official

    Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.

    7.5k GitHub stars~1.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Produces an in-depth architecture report on an open-source project or framework, explaining why it is designed the way it is rather than just what the code does.

    492 GitHub stars~2.2k tokensUpdated 5 mo ago
    DevelopmentAuto-check passed
  • Archify Diagrams

    tt-a1i/archify

    Creates interactive architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone HTML with inline SVG, themes and image or video export.

    82k GitHub stars~2.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Archify Diagram Builder

    Unclecheng-li/AI_Animation

    Builds validated architecture, workflow, sequence, data-flow and lifecycle diagrams as standalone interactive HTML from a small JSON spec, with optional motion and image export.

    1.5k GitHub starsUsed in 2 repos~4.1k tokens
    DevelopmentAuto-check passed
  • Deepwiki Rs

    sopaco/deepwiki-rs

    AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.

    3.1k GitHub stars~748 tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • Mermaid Diagrams

    jjmartres/opencode

    Helps an agent pick the right Mermaid diagram type and write the syntax for class, sequence, flow, ER, C4, state and other software diagrams.

    133 GitHub starsUsed in 6 repos~1.9k tokens
    DevelopmentAuto-check passed

More from ahmedkhaleel2004/gitdiagram

  • GitDiagram Repository Overview

    ahmedkhaleel2004/gitdiagram

    Explains the architecture of a public GitHub repository through GitDiagram: how the code is organized, the main components with paths, and a Mermaid diagram.

    18k GitHub stars~427 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about GitDiagram Repo Architecture

What does GitDiagram Repo Architecture do?

Explains how a public GitHub repository is built by fetching its GitDiagram architecture diagram, components and optional explainer video. com URL or the local clone's origin remote, or searches diagrams by project name and asks when several match. It then calls get_repository_diagram, which returns a written explanation, the main components with their paths, how they connect, Mermaid source and an interactive diagram link.

When should I use GitDiagram Repo Architecture?

GitDiagram Repo Architecture fits situations like: understanding how an open-source project is organized before contributing; getting an architecture or system diagram of a public GitHub repo; starting work in an unfamiliar codebase hosted on GitHub; finding a shareable explainer video for a repository.

How do I install GitDiagram Repo Architecture in Claude Code?

Run `npx skills add ahmedkhaleel2004/gitdiagram --skill repo-architecture -a claude-code`. Or copy the skill folder (plugins/gitdiagram/skills/repo-architecture in ahmedkhaleel2004/gitdiagram) into .claude/skills/repo-architecture in your project. Claude Code loads it when a task matches its description.

How do I install GitDiagram Repo Architecture in Codex?

Run `npx skills add ahmedkhaleel2004/gitdiagram --skill repo-architecture -a codex`. Or copy the skill folder (plugins/gitdiagram/skills/repo-architecture in ahmedkhaleel2004/gitdiagram) into .agents/skills/repo-architecture in your project. Codex loads it when a task matches its description.

Can I use GitDiagram Repo Architecture in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ahmedkhaleel2004/gitdiagram --skill repo-architecture -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/repo-architecture, .gemini/skills/repo-architecture, .github/skills/repo-architecture and .opencode/skills/repo-architecture in your project.

What does GitDiagram Repo Architecture need to run?

SKILL.md names no scripts, command-line tools or credentials: GitDiagram Repo Architecture is instructions for the agent only. Our summary lists: Access to the GitDiagram tools for finding and fetching repository diagrams.

Does GitDiagram Repo Architecture access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is GitDiagram Repo Architecture safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitDiagram Repo Architecture use?

GitDiagram Repo Architecture is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitDiagram Repo Architecture use?

About 429 tokens (SKILL.md is roughly 1.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitDiagram Repo Architecture?

Skills that share tags, products or a category with GitDiagram Repo Architecture: Code Graph Mermaid Diagrams (trailofbits/skills, 7.5k stars), Deep Repository Architecture Analyzer (yzddmr6/repo-analyzer, 492 stars), Archify Diagrams (tt-a1i/archify, 82k stars) and Archify Diagram Builder (Unclecheng-li/AI_Animation, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitDiagram Repo Architecture?

ahmedkhaleel2004 (a GitHub user) maintains it in ahmedkhaleel2004/gitdiagram, which has 18,041 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on October 9, 2026.

Source: ahmedkhaleel2004/gitdiagram on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.