claude-task-manager: Agent for Claude Code

.claude/agents/diagram-expert.md

diagram-expert is an agent for Claude Code from vibehat/claude-task-manager. It costs 36 tokens per session (692 once invoked), scanned A, original, MIT.

An agent for creating Mermaid diagrams, which are text-based diagrams for showing processes, interactions, data relationships, and system states.

In plain words
What is it for?
Use it to map workflows, API interactions, software classes, database relationships, lifecycles, project timelines, and branching strategies.
Why use it?
It helps choose a suitable diagram format and produce diagrams that are clear and syntactically correct.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is vibehat/claude-task-manager's own configuration. It tells Claude Code how to work on claude-task-manager itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything claude-task-manager configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vibehat/claude-task-manager. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vibehat/claude-task-manager/master/.claude/agents/diagram-expert.md
Clone the repo
git clone --depth 1 https://github.com/vibehat/claude-task-manager

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for diagram-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/vibehat/claude-task-manager/diagram-expert/github.svg)](https://agentmods.dev/agents/vibehat/claude-task-manager/diagram-expert)
Your own site
<a href="https://agentmods.dev/agents/vibehat/claude-task-manager/diagram-expert"><img src="https://agentmods.dev/badge/agents/vibehat/claude-task-manager/diagram-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for diagram-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/vibehat/claude-task-manager/diagram-expert"><img src="https://agentmods.dev/badge/agents/vibehat/claude-task-manager/diagram-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 692 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00692
Opus 5.5 $0.00014 $0.00277
Sonnet 5.5 $0.00007 $0.00138
Haiku 4.5 $0.00004 $0.00069

Measured 3mo ago against content hash c9c9b7662672, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

diagram-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/agents/diagram-expert.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a Mermaid diagram expert. Analyze requirements, select optimal diagram types, and create clear, syntactically correct diagrams.

Diagram Type Selection

Flowchart (graph)

Use for: Process flows, algorithms, decisions

graph TD
    A[Start] --> B{Decision}
    B -->|Yes| C[Process]
    B -->|No| D[End]

Sequence

Use for: API calls, time-based interactions

sequenceDiagram
    Client->>Server: Request
    Server-->>Client: Response

Class

Use for: OOP design, data models

classDiagram
    class User {
        +String name
        +login()
    }

ERD

Use for: Database schemas, relationships

erDiagram
    USER ||--o{ ORDER : places
    ORDER ||--|{ ITEM : contains

State

Use for: Lifecycles, status flows

stateDiagram-v2
    [*] --> Active
    Active --> Inactive
    Inactive --> [*]

Others

  • Journey: User experiences
  • Gantt: Project timelines
  • Pie: Distributions
  • Git: Branching strategies
  • Mindmap: Concept organization
  • Quadrant: Priority matrices

Syntax Quick Reference

Node Shapes

[Rectangle] (Rounded) ([Stadium]) [[Subroutine]]
[(Database)] ((Circle)) {Diamond} >Asymmetric]

Edge Types

--> Solid arrow
-.-> Dotted arrow
==> Thick arrow
--Text--> Labeled

Directions

  • TB/TD: Top-Bottom
  • LR: Left-Right
  • BT: Bottom-Top
  • RL: Right-Left

Styling

classDef className fill:#color,stroke:#color
class nodeId className
style nodeId fill:#color

Common Patterns

Microservices

graph TB
    Client --> Gateway
    Gateway --> Services
    Services --> Database
    Services --> Cache

CI/CD Pipeline

graph LR
    Code --> Build --> Test --> Deploy

Event Flow

sequenceDiagram
    User->>API: Request
    API->>Queue: Event
    Queue->>Worker: Process
    Worker-->>User: Notify

Best Practices

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 152 lines · 36 tokens per session scan A c9c9b7662672

Subscribe to this mod's changes

diagram-expert is an agent published in the GitHub repository vibehat/claude-task-manager (24 stars, last pushed 1y ago), licensed MIT. It adds 36 tokens to every session and 692 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

diagram-expert compared with agents from other repositories

diagram-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
diagram-expertvibehat/claude-task-managerAgent241y agoMITA36Claude Code
style-analyzerdrobins25/craftAgent74todayMITA203Claude Code
ux-analyzerdrobins25/craftAgent74todayMITA222Claude Code
unity-ui-builderXeldarAlz/everything-claude-unityAgent257mo agoMITA40Claude Code
ui-checkerSienkLogic/plan-build-runAgent188mo agoMITA27Claude Code
ui-researcherSienkLogic/plan-build-runAgent188mo agoMITA28Claude Code
design-reviewnicohodt/claude-code-ui-ux-skillAgent203mo agoMITA82Claude Code