Agent skill

Create Diagram

by Mertcikla in Mertcikla/tld

Create architecture diagrams from a local codebase or system description.

Apache-2.0Auto-check passedDevelopment

Install Create Diagram

skills CLI
$ npx skills add Mertcikla/tld --skill create-diagram -a claude-code

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

GitHub CLI
$ gh skill install Mertcikla/tld create-diagram --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/Mertcikla/tld.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/create-diagram .claude/skills/create-diagram && 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
create-diagram
GitHub stars
288
Token cost
~1.6k tokens
SKILL.md length
815 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
Apache-2.0

At a glance

Create architecture diagrams from a local codebase or system description.

  • Works in 7 steps: Inspect the codebase enough to identify… → Write a compact inventory before adding… → Create a root view with a few high-level… → …
  • The user asks to diagram a repo
  • SKILL.md covers When to Use, When NOT to Use, tld Mental Model and CLI Basics, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

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.

When your agent uses it

  • The user asks to diagram a repo
  • Map system architecture
  • Show component relationships
  • Create drill-down views

Example prompts

  • “/create-diagram”

Requirements

  • Pre-approved tools (allowed-tools): Read, Glob, Grep, Write, Bash(tld *)

Workflow steps

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

  1. Inspect the codebase enough to identify entry points, major subsystems, storage, external systems, and runtime boundaries.
  2. Write a compact inventory before adding elements
  3. Create a root view with a few high-level elements that match the system, not a fixed template.
  4. For each view, add children first, then immediately add labeled connectors for that same view.
  5. Drill down on sub-systems if asked for: service internals, module responsibilities, key classes, important data paths, or complex methods…
  6. Reuse shared elements in every relevant view and reconnect them, optionally with labels specific to that context.
  7. Run tld validate, read the output carefully, fix the model, and repeat until validation passes or only intentional exceptions remain…

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Glob
    • Grep
    • Write
    • Bash(tld *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    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.

  • 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

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.

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

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 Mertcikla/tld at commit 5099941, republished under its Apache-2.0 licence (© Mertcikla). 815 words, ~1,562 tokens.

Download SKILL.mdSave it as .claude/skills/create-diagram/SKILL.md (or your agent's skills folder).
name
create-diagram
description
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.
allowed-tools
Read, Glob, Grep, Write, Bash(tld *)

Create Diagram

Build a tld workspace that helps someone understand a system by moving from broad architecture to useful detail.

When to Use

  • The user asks for a diagram, architecture map, component map, dependency map, or data-flow view.
  • The target is a local codebase, service, package, multi-service app, or described system.
  • The useful output is a navigable tld model rather than prose alone.

When NOT to Use

  • The user only wants code explanation and did not ask for a visual model.
  • The task is to change application behavior.
  • The diagram is unrelated to software/system structure and does not benefit from tld's hierarchy.

tld Mental Model

tld models architecture as a hierarchy of elements and connectors.

  • An element is the node in the knowledge graph. It can represent a system, subsystem, service, module, class, database, external system, user, or any other entity relevant to the architecture.
  • A view is the canvas inside an element. Add children with --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.
  • A connector is the edges of the graph, describes a relationship between elements. The view is inferred from the elements' shared parent.
  • A kind is a broad role such as 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").
  • A technology is metadata. Prefer catalog names suggested by 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.

CLI Basics

Use the flat CLI shape:

bash
tld add "<name>" --ref <ref> --kind <kind> --parent <parent-ref>
tld connect --from <source-ref> --to <target-ref> --label "<specific interaction>"
tld validate

For root-level elements, omit --parent.

If a technology label is uncertain, check it first:

bash
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>.

Workflow

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:

  1. 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.

Show full SKILL.md (285 more words)Show less
  1. Inspect the codebase enough to identify entry points, major subsystems, storage, external systems, and runtime boundaries.
  2. Write a compact inventory before adding elements:
text
Subsystem inventory:
- API: handles HTTP requests | calls: services, auth, database | called by: frontend
- Worker: processes queued jobs | calls: redis, external API | called by: queue
  1. Create a root view with a few high-level elements that match the system, not a fixed template.
  2. For each view, add children first, then immediately add labeled connectors for that same view.
  3. Drill down on sub-systems if asked for: service internals, module responsibilities, key classes, important data paths, or complex methods. Children reuses the parent element ref when connecting, unless children exists as indiviual elements
text
API
Subsystem inventory:
-  Parent Element: Users 
    - endpoints: GET /users, POST /users
    - services: UserService
    - handlers: UserHandler
    - calls: UserService, GetUserData
  1. Reuse shared elements in every relevant view and reconnect them, optionally with labels specific to that context.
  2. Run tld 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.

Modeling Guidance

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.

Handoff

To view the diagram:

bash
tld serve --open

Ask 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

Files

Just SKILL.md in skills/create-diagram of Mertcikla/tld.

Open the folder on GitHubat commit 5099941

Compare with similar skills

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.

Create Diagram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create Diagram this skillMertcikla/tld288—~1.6kAutomated safety check: PassApache-2.0
GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram18k—~427Automated safety check: PassMIT
Deepwiki Rssopaco/deepwiki-rs3.1k—~748Automated safety check: PassMIT
Code Graph Mermaid Diagramstrailofbits/skills7.5k—~1.7kAutomated safety check: PassCC-BY-SA-4.0
GitDiagram Repo Architectureahmedkhaleel2004/gitdiagram18k—~429Automated safety check: PassMIT
Render Code Shapecitypaul/.dotfiles740—~2.5kAutomated safety check: PassMIT

Similar skills

  • 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 today
    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 26 days ago
    DevelopmentAuto-check passed
  • 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 today
    DevelopmentAuto-check passed
  • GitDiagram Repo Architecture

    ahmedkhaleel2004/gitdiagram

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

    18k GitHub stars~429 tokensUpdated today
    DevelopmentAuto-check passed
  • Render Code Shape

    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.

    740 GitHub stars~2.5k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Answers questions about code structure, history, bugs and PR risk using a CodeScope knowledge graph and semantic index built from the repository.

    28k GitHub starsUsed in 1 repo~9.3k tokens
    DevelopmentAuto-check passed

Categories

Questions about Create Diagram

What does Create Diagram do?

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.

When should I use Create Diagram?

Create Diagram fits situations like: the user asks to diagram a repo; map system architecture; show component relationships; create drill-down views.

How do I install Create Diagram in Claude Code?

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.

How do I install Create Diagram in Codex?

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.

Can I use Create Diagram 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 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.

What does Create Diagram need to run?

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 *).

Does Create Diagram 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 Create Diagram 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 Create Diagram use?

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.

How many tokens does Create Diagram use?

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.

What are the alternatives to Create Diagram?

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.

Who maintains Create Diagram?

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.