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.
Create architecture diagrams from a local codebase or system description.
$ npx skills add Mertcikla/tld --skill create-diagram -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install Mertcikla/tld create-diagram --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-diagram .claude/skills/create-diagram && rm -rf skills-srcUse ~/.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/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .claude/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/Mertcikla/tld/tree/main/skills/create-diagramType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add Mertcikla/tld --skill create-diagram -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install Mertcikla/tld create-diagram --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/create-diagram .agents/skills/create-diagram && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .agents/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Mertcikla/tld --skill create-diagram -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install Mertcikla/tld create-diagram --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/create-diagram .cursor/skills/create-diagram && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .cursor/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/Mertcikla/tld.git --path skills/create-diagram--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add Mertcikla/tld --skill create-diagram -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install Mertcikla/tld create-diagram --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/create-diagram .gemini/skills/create-diagram && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .gemini/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install Mertcikla/tld create-diagramInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add Mertcikla/tld --skill create-diagram -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/create-diagram .github/skills/create-diagram && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .github/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add Mertcikla/tld --skill create-diagram -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install Mertcikla/tld create-diagram --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/Mertcikla/tld.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/create-diagram .opencode/skills/create-diagram && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "create-diagram" agent skill from https://github.com/Mertcikla/tld/tree/main/skills/create-diagram into .opencode/skills/create-diagram/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "create-diagram", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
create-diagramCreate architecture diagrams from a local codebase or system description.
Create Diagram is an agent skill from Mertcikla/tld. Create architecture diagrams from a local codebase or system description. Use when the user asks to diagram a repo, map system architecture, show component relationships, create drill-down views, or explain a system visually with tld.
Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Diagrams and Codebase onboarding. The repository describes itself as: Software architecture diagramming tool. Includes a modern easy to use Frontend + Backend + CLI to enable managing diagrams from the shell or in CI. The licence is Apache-2.0.
7 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 5099941. It shows what the files ask for, not the result of running them.
Pre-approves these tools, so the agent can use them without asking each time:
ReadGlobGrepWriteBash(tld *)From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are bash).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Create Diagram loads about 1.6k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 815 words of instructions outside code blocks.
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.
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.
The full file from Mertcikla/tld at commit 5099941, republished under its Apache-2.0 licence (© Mertcikla). 815 words, ~1,562 tokens.
.claude/skills/create-diagram/SKILL.md (or your agent's skills folder).Build a tld workspace that helps someone understand a system by moving from broad architecture to useful detail.
tld models architecture as a hierarchy of elements and connectors.
--parent <ref> to create drill-downs. There is no separate "create view" command. View is used to group related elements, or to explain a subsystem in more detail.system, container, component, database, person, or external; omit it if it doesn't fit any clear category. --kind takes a single shell token, so quote multi-word kinds (e.g. --kind "external system").tld tech suggest.The goal is not to mirror folders. Build a navigable map of how control, data, ownership, and dependencies move through the system.
Use the flat CLI shape:
tld add "<name>" --ref <ref> --kind <kind> --parent <parent-ref>
tld connect --from <source-ref> --to <target-ref> --label "<specific interaction>"
tld validateFor root-level elements, omit --parent.
If a technology label is uncertain, check it first:
tld tech suggest "<technology name>"If the same real element appears in another view, reuse the same --ref with a different --parent. This creates another placement, not a duplicate element, and highly desired to truly show interaction. Add connectors with different labels in each view to show different relationships using --view <optional-view-ref>.
Before exploring, check for .tld folder. If it exists we are working in an active workspace and should inspect the existing model and ask the user how they want to update it. If not, run tld init in the codebase root then ask the user the following to set expectations and guide the level of detail:
- How detailed should the diagram be? (overview, medium, detailed) Use their answers to calibrate the rest of the work. If they don't know, suggest options based on the codebase size once you've done a quick directory scan.
Overview ~5–10 views, 1–2 levels deep Services and their direct dependencies. Entry points, major layers, external systems. Nothing low level.
Medium ~10–30 views, 2–3 levels deep Modules and packages decomposed. Key classes identified and placed. Major data and logic flows wired. Inheritance shown where architecturally significant.
Detailed ~50–200+ views, 4–6 levels deep. Every significant class and function has its own linked view. A reader should be able to navigate from the root view down to understanding a specific method's behavior without opening a file. Connected end-to-end from producers to consumers.
Subsystem inventory:
- API: handles HTTP requests | calls: services, auth, database | called by: frontend
- Worker: processes queued jobs | calls: redis, external API | called by: queueAPI
Subsystem inventory:
- Parent Element: Users
- endpoints: GET /users, POST /users
- services: UserService
- handlers: UserHandler
- calls: UserService, GetUserDatatld validate, read the output carefully, fix the model, and repeat until validation passes or only intentional exceptions remain. Every tld add / tld connect / tld update applies immediately to the server. If the resource counts do not match the initial goals set with the user, iterate. Use validation errors as a guide, look for overly-simplified views, or missing relationships.Keep each view readable. Aim for about 8-12 elements; split or cluster before a view becomes crowded. If a parent would contain many items, introduce a new element with a role-based name such as "Data Layer", "Event Pipeline", or "Authentication".
An isolated element is usually a modeling bug. Either connect it, move it to a better view, or remove it.
Depth should match the user's goal, before handoff, validate that the diagram meets their needs. If they want an overview, don't add too much detail. If they want a detailed map, make sure to drill down enough.
To view the diagram:
tld serve --openAsk for feedback and add/remove some detail on sub-systems.
© Mertcikla, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/create-diagram of Mertcikla/tld.
Open the folder on GitHubat commit 5099941
Create Diagram 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Create Diagram this skillMertcikla/tld | 288 | — | ~1.6k | Automated safety check: Pass | Apache-2.0 | |
| GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram | 18k | — | ~427 | Automated safety check: Pass | MIT | |
| Deepwiki Rssopaco/deepwiki-rs | 3.1k | — | ~748 | Automated safety check: Pass | MIT | |
| Code Graph Mermaid Diagramstrailofbits/skills | 7.5k | — | ~1.7k | Automated safety check: Pass | CC-BY-SA-4.0 | |
| GitDiagram Repo Architectureahmedkhaleel2004/gitdiagram | 18k | — | ~429 | Automated safety check: Pass | MIT | |
| Render Code Shapecitypaul/.dotfiles | 740 | — | ~2.5k | Automated safety check: Pass | MIT |
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.
sopaco/deepwiki-rs
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation.
trailofbits/skills
Generates Mermaid diagrams from Trailmark code graphs, including call graphs, class hierarchies, module dependency maps, complexity heatmaps and attack surface data flows.
ahmedkhaleel2004/gitdiagram
Explains how a public GitHub repository is built by fetching its GitDiagram architecture diagram, components and optional explainer video.
citypaul/.dotfiles
Render the shape of code — module boundaries, the types that cross them, signatures, and a cited call graph — for code that already exists or a change about to be built.
QwenLM/qwen-code
Answers questions about code structure, history, bugs and PR risk using a CodeScope knowledge graph and semantic index built from the repository.
Categories
Create architecture diagrams from a local codebase or system description. Create Diagram is an agent skill from Mertcikla/tld. Create architecture diagrams from a local codebase or system description.
Create Diagram fits situations like: the user asks to diagram a repo; map system architecture; show component relationships; create drill-down views.
Run `npx skills add Mertcikla/tld --skill create-diagram -a claude-code`. Or copy the skill folder (skills/create-diagram in Mertcikla/tld) into .claude/skills/create-diagram in your project. Claude Code loads it when a task matches its description.
Run `npx skills add Mertcikla/tld --skill create-diagram -a codex`. Or copy the skill folder (skills/create-diagram in Mertcikla/tld) into .agents/skills/create-diagram in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Mertcikla/tld --skill create-diagram -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-diagram, .gemini/skills/create-diagram, .github/skills/create-diagram and .opencode/skills/create-diagram in your project.
SKILL.md names no scripts, command-line tools or credentials: Create Diagram is instructions for the agent only. Its frontmatter pre-approves these tools: Read, Glob, Grep, Write, Bash(tld *).
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.
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.
Create Diagram is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.6k tokens (SKILL.md is roughly 6.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Create Diagram: GitDiagram Repository Overview (ahmedkhaleel2004/gitdiagram, 18k stars), Deepwiki Rs (sopaco/deepwiki-rs, 3.1k stars), Code Graph Mermaid Diagrams (trailofbits/skills, 7.5k stars) and GitDiagram Repo Architecture (ahmedkhaleel2004/gitdiagram, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
Mertcikla (a GitHub user) maintains it in Mertcikla/tld, which has 288 GitHub stars. The repository was last updated on October 9, 2026.
Source: Mertcikla/tld on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.