Agent skill

Workflow Diagram

by athola in athola/claude-night-market

Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions.

MITAuto-check passedDevelopment

Install Workflow Diagram

skills CLI
$ npx skills add athola/claude-night-market --skill workflow-diagram -a claude-code

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

GitHub CLI
$ gh skill install athola/claude-night-market workflow-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/athola/claude-night-market.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/cartograph/skills/workflow-diagram .claude/skills/workflow-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
workflow-diagram
GitHub stars
341
Token cost
~827 tokens
SKILL.md length
281 words
Files
1
Skills in repo
154
Repo updated
First seen
Licence
MIT

At a glance

Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions.

  • Works in 4 steps: Explore the Codebase → Generate Mermaid Syntax → Render via MCP → …
  • Documenting CI/CD pipelines
  • SKILL.md covers When To Use, When NOT To Use, Workflow and Exit Criteria
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Workflow Diagram is an agent skill from athola/claude-night-market. Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions. Use when documenting CI/CD pipelines or lifecycle processes.

Its SKILL.md is about 830 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 CI/CD. It works with Mermaid and Model Context Protocol. The repository describes itself as: 23 Claude Code plugins: TDD enforcement hooks, git/PR workflows, spec-driven development, code review, project lifecycle, fix-from-error, maintenance automation, context… The licence is MIT.

When your agent uses it

  • Documenting CI/CD pipelines
  • Lifecycle processes

Example prompts

  • “Use the workflow-diagram skill to generate a Mermaid workflow diagram showing process steps, decisions, and state transitions”
  • “/workflow-diagram”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Explore the Codebase
  2. Generate Mermaid Syntax
  3. Render via MCP
  4. Present Results

What it can do on your machine

Read from SKILL.md and the folder at commit 9f3eb00. 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 (its code samples are mermaid).

    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

Workflow Diagram loads about 827 tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 281 words of instructions outside code blocks.

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

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 athola/claude-night-market at commit 9f3eb00, republished under its MIT licence (© athola). 281 words, ~827 tokens.

Download SKILL.mdSave it as .claude/skills/workflow-diagram/SKILL.md (or your agent's skills folder).
name
workflow-diagram
description
Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions. Use when documenting CI/CD pipelines or lifecycle processes.

Workflow Diagram

Generate a Mermaid flowchart showing process workflows, pipelines, or state machines from code or documentation.

When To Use

  • Visualizing CI/CD or deployment pipelines
  • Documenting multi-step development workflows
  • Mapping state machines or lifecycle processes
  • Answering "what steps happen when X runs?"

When NOT To Use

  • Data moving between components (use cartograph:data-flow)
  • Component structure (use cartograph:architecture-diagram)

Workflow

Step 1: Explore the Codebase

Dispatch the codebase explorer agent:

Agent(cartograph:codebase-explorer)
Prompt: Explore [scope] and return a structural model.
Focus on process steps, conditional logic, state
transitions, and pipeline stages for a workflow diagram.
Look for: Makefiles, CI configs, hook chains, command
sequences, and lifecycle methods.
Step 2: Generate Mermaid Syntax

Transform the structural model into a Mermaid flowchart with decision nodes and process steps.

Rules for workflow diagrams:

  • Use flowchart TD for sequential processes
  • Use flowchart LR for pipelines with parallel tracks
  • Use shapes to distinguish step types:
    • [Rectangle] for process steps
    • {Diamond} for decision points
    • ([Stadium]) for start/end states
    • [[Subroutine]] for sub-processes
    • ((Circle)) for join/sync points
  • Use -->|label| for transition conditions
  • Group parallel tracks into subgraphs
  • Color-code by outcome:
    • Default for happy path
    • Dotted (-.->) for error/fallback paths
    • Thick (==>) for critical path
  • Limit to 20 nodes maximum

Example output:

mermaid
flowchart TD
    start([Start: PR Created])
    lint[Run Linters]
    test[Run Tests]
    review{Code Review}
    approve[Approved]
    changes[Request Changes]
    merge([Merge to Main])

    start --> lint --> test
    test --> review
    review -->|pass| approve --> merge
    review -->|fail| changes -.-> lint
Step 3: Render via MCP

Call the Mermaid Chart MCP to render:

mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram
  prompt: "Workflow diagram of [scope/process]"
  mermaidCode: [generated syntax]
  diagramType: "flowchart"
  clientName: "claude-code"

If rendering fails, fix syntax and retry (max 2 retries).

Step 4: Present Results

Show the rendered diagram with a brief description of the workflow stages and decision points (2-3 sentences).

Exit Criteria

  • Mermaid flowchart syntax generated containing at least one diamond {Decision} node representing a conditional branch
  • mcp__claude_ai_Mermaid_Chart__validate_and_render_mermaid_diagram called and returns without error (or retry attempted and result reported)
  • Error/fallback paths rendered as dotted arrows (-.->) distinct from happy-path arrows when error paths exist in the source
  • Node count is at most 20; if more steps exist, sub-processes are collapsed into [[Subroutine]] nodes
  • A 2-3 sentence description of workflow stages and decision points is shown alongside the diagram

© athola, 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/cartograph/skills/workflow-diagram of athola/claude-night-market.

Open the folder on GitHubat commit 9f3eb00

Compare with similar skills

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

Workflow Diagram compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Workflow Diagram this skillathola/claude-night-market341—~827Automated safety check: PassMIT
Docs CIjh941213/my-cc-harness126—~989Automated safety check: NotesNone
Drawio MCP Diagrammingthomast1906/github-copilot-agent-skills202—~6.6kAutomated safety check: PassNone
Excalidraw Skillyctimlin/mcp_excalidraw2.5k—~4.6kAutomated safety check: PassMIT
Terravision Cloud Diagramspatrickchugh/terravision1.6k—~5.6kAutomated safety check: NotesAGPL-3.0-only
GitDiagram Repository Overviewahmedkhaleel2004/gitdiagram18k—~427Automated safety check: PassMIT

Similar skills

  • Docs CI

    jh941213/my-cc-harness

    Scaffold a docs-as-code CI/CD pipeline + docs drift detection — link check, OpenAPI lint/breaking gate, mermaid validation, docs freshness check, CHANGELOG automation, docs.yaml manifest.

    126 GitHub stars~989 tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Drawio MCP Diagramming

    thomast1906/github-copilot-agent-skills

    Create and edit diagrams using the Draw.io MCP server — any shape, any vendor.

    202 GitHub stars~6.6k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Excalidraw Skill

    yctimlin/mcp_excalidraw

    Excalidraw canvas toolkit for creating, editing, and refining diagrams on a live canvas.

    2.5k GitHub stars~4.6k tokensUpdated 4 days ago
    DevelopmentAuto-check passed
  • Terravision Cloud Diagrams

    patrickchugh/terravision

    Draw cloud architecture diagrams for AWS, Azure or GCP with the official provider icon sets, using TerraVision.

    1.6k GitHub stars~5.6k tokensUpdated 3 days ago
    DevOps & CloudAuto-check: notes
  • 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
  • Drawio

    bahayonghang/drawio-skills

    Create, edit, replicate, import, and export draw.io diagrams with an offline YAML-first workflow: architecture, network topologies, flowcharts, UML/ER, org charts, Mermaid/CSV conversion, existing…

    287 GitHub stars~4.1k tokensUpdated 1 mo ago
    DevelopmentAuto-check: notes

More from athola/claude-night-market

All 154 skills in this repo
  • Night Market Diagnostics Toolkit

    athola/claude-night-market

    Run and interpret repo diagnostic scripts (ratchets, validators, token stats).

    341 GitHub stars~3.4k tokensUpdated 3 days ago
    Auto-check passed
  • Skills Eval

    athola/claude-night-market

    Evaluate Claude skill quality through auditing. An agent skill from athola/claude-night-market.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed
  • Agent Teams

    athola/claude-night-market

    Coordinates Claude agent teams via filesystem protocol. An agent skill from athola/claude-night-market.

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Delegation Core

    athola/claude-night-market

    Delegates execution to eight CLIs (Gemini, Qwen, MiniMax, GLM, Muse, Codex, OpenCode, Glimmer).

    341 GitHub stars~2.5k tokensUpdated 3 days ago
    Auto-check passed
  • Elegant Code

    athola/claude-night-market

    Guide minimal code via a decision ladder with full safety, edge, and negative-case coverage.

    341 GitHub stars~2.1k tokensUpdated 3 days ago
    Auto-check passed
  • Skill Library Mission

    athola/claude-night-market

    Build a project skill library in .claude/skills/ via discovery, parallel authoring, and review.

    341 GitHub stars~1.6k tokensUpdated 3 days ago
    Auto-check passed

Questions about Workflow Diagram

What does Workflow Diagram do?

Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions. Workflow Diagram is an agent skill from athola/claude-night-market. Generates a Mermaid workflow diagram showing process steps, decisions, and state transitions.

When should I use Workflow Diagram?

Workflow Diagram fits situations like: documenting CI/CD pipelines; lifecycle processes.

How do I install Workflow Diagram in Claude Code?

Run `npx skills add athola/claude-night-market --skill workflow-diagram -a claude-code`. Or copy the skill folder (plugins/cartograph/skills/workflow-diagram in athola/claude-night-market) into .claude/skills/workflow-diagram in your project. Claude Code loads it when a task matches its description.

How do I install Workflow Diagram in Codex?

Run `npx skills add athola/claude-night-market --skill workflow-diagram -a codex`. Or copy the skill folder (plugins/cartograph/skills/workflow-diagram in athola/claude-night-market) into .agents/skills/workflow-diagram in your project. Codex loads it when a task matches its description.

Can I use Workflow 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 athola/claude-night-market --skill workflow-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/workflow-diagram, .gemini/skills/workflow-diagram, .github/skills/workflow-diagram and .opencode/skills/workflow-diagram in your project.

What does Workflow Diagram need to run?

SKILL.md names no scripts, command-line tools or credentials: Workflow Diagram is instructions for the agent only.

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

Workflow Diagram 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 Workflow Diagram use?

About 827 tokens (SKILL.md is roughly 3.3k 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 Workflow Diagram?

Skills that share tags, products or a category with Workflow Diagram: Docs CI (jh941213/my-cc-harness, 126 stars), Drawio MCP Diagramming (thomast1906/github-copilot-agent-skills, 202 stars), Excalidraw Skill (yctimlin/mcp_excalidraw, 2.5k stars) and Terravision Cloud Diagrams (patrickchugh/terravision, 1.6k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Workflow Diagram?

athola (a GitHub user) maintains it in athola/claude-night-market, which has 341 GitHub stars. The repository holds 154 skills in this directory. The repository was last updated on October 6, 2026.

Source: athola/claude-night-market on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.