agentleFS
AnthonyDelaCruzAnthonyDelaCruz/agent-setup/skills/diagram/SKILL.md

diagram

Skill0 starsChanged 8 days agoMITView on GitHub

Generate visual Mermaid diagrams for code architecture, flows, sequences, components, and system design. Use when asked to diagram a system, visualize architecture, create a flowchart, or show a sequence, state, or ER diagram.

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ios-sync, benchmark-models and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • Saqlain-811Skill

    ios-sync

    Regenerate the iOS debug bridge against the latest upstream gstack templates. (gstack)

    Also in 5 projects that use this

  • ShreyRaviSkill

    benchmark-models

    Cross-model benchmark for gstack skills. Runs the same prompt through Claude, GPT (via Codex CLI), and Gemini side-by-side — compares latency, tokens, cost, and optionally quality via LLM judge. Answers "which model is actually best for this skill?" with data instead of vibes. Separate from /benchmark, which measures web page performance. Use when: "benchmark models", "compare models", "which model is best for X", "cross-model comparison", "model shootout". (gstack) Voice triggers (speech-to-text aliases): "compare models", "model shootout", "which model is best".

    Also in 6 projects that use this

  • ShreyRaviSkill

    landing-report

    Read-only queue dashboard for workspace-aware ship. Shows which VERSION slots are currently claimed by open PRs, which sibling Conductor workspaces have WIP work likely to ship soon, and what slot /ship would pick next. No mutations — just a snapshot. Use when asked to "landing report", "what's in the queue", "show me open PRs", or "which version do I claim next". (gstack)

    Also in 6 projects that use this

  • Saqlain-811Skill

    ios-fix

    Autonomous iOS bug fixer. (gstack)

    Also in 4 projects that use this

  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 5 projects that use this

  • timurgaleevSkill

    document-generate

    Generate missing docs for a feature, module or project as tutorials, how-tos, reference and explanation.

    Also in 4 projects that use this

  • +3 more from ShreyRavi
  • +1 more from Saqlain-811

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 54 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow these to avoid Mermaid parser errors:

    line 30
  2. Very specific:

    Write with item and depth instead of {item, depth}

    line 34
  3. Distinctive:

    Use semantic colors sparingly (skip for simple diagrams):

    line 60

“Common” is measured: kept by at least 6 in 10 of the 54 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Diagram Generation

Generate clean Mermaid diagrams for visualizing architecture, flows, and data relationships. Diagrams render natively in GitHub Markdown and most IDEs.

Workflow

  1. Understand — Clarify what to visualize, diagram type, and level of detail.
  2. Analyze — Inspect relevant code or docs first; identify real components and boundaries.
  3. Select type — Pick the diagram type that best fits the question (see table below).
  4. Generate — Write valid Mermaid syntax following the safety rules below.
  5. Save — Write to docs/diagrams/[feature]-[type].md if docs/ exists, otherwise [feature]-[type].md in the project root (or embed inline if requested).

Type Selection

TypeKeywordUse For
Flowchartflowchart TD / flowchart LRProcess flows, architecture, decision trees
SequencesequenceDiagramAPI calls, service interactions, async flows
ClassclassDiagramDomain models, OOP structure, interfaces
StatestateDiagram-v2State machines, request/entity lifecycles
ERerDiagramDatabase schemas and table relationships

Syntax Safety Rules

Follow these to avoid Mermaid parser errors:

  1. Use flowchart instead of graph for better renderer compatibility.
  2. Avoid raw operators/tokens in labels — don't put {}, ===, ..., ${}, or => unquoted in node labels:
    • Write with item and depth instead of {item, depth}
    • Write parent is null instead of parent === null
  3. Quote labels containing parentheses or brackets — e.g., api["API Gateway (Cloud Run)"].
  4. Keep subgraphs independent — avoid nesting shared main-flow nodes across conflicting subgraphs.
  5. Avoid duplicate node IDs across definitions and style classes.

Output Template

# [Title]

## Description
[1–2 sentences explaining what this diagram illustrates.]

## Diagram

```mermaid
[diagram code]

Key Elements

  • [Element]: [What it represents]

## Optional Styling (High-Contrast)

Use semantic colors sparingly (skip for simple diagrams):

```mermaid
classDef success fill:#166534,stroke:#14532d,color:#fff
classDef warning fill:#b45309,stroke:#92400e,color:#fff
classDef error fill:#b91c1c,stroke:#991b1b,color:#fff

Pre-Save Checklist

  • Uses flowchart rather than graph
  • Special characters in labels are quoted or avoided
  • Subgraphs are clean and independent
  • Readable density (aim for 10–15 nodes max per diagram)
  • Accurate to the inspected codebase

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.