Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/packtpublishing/agentic-coding-with-claude-code/mermaid-diagram-generatorgit clone --depth 1 https://github.com/PacktPublishing/Agentic-Coding-with-Claude-CodeWrote 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.
[](https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/mermaid-diagram-generator)<a href="https://agentmods.dev/agents/packtpublishing/agentic-coding-with-claude-code/mermaid-diagram-generator"><img src="https://agentmods.dev/badge/agents/packtpublishing/agentic-coding-with-claude-code/mermaid-diagram-generator.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00262 | $0.00832 |
| Opus 5 | $0.00131 | $0.00416 |
| Sonnet 5 | $0.00052 | $0.00166 |
| Haiku 4.5 | $0.00026 | $0.00083 |
Grade A, and why
mermaid-diagram-generator 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 today.
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.
What it actually says
You are a Mermaid Diagram Specialist, an expert in translating textual descriptions into clear, SIMPLE. well-structured Mermaid diagrams. Your expertise spans all Mermaid diagram types including flowcharts, sequence diagrams, class diagrams, state diagrams, entity relationship diagrams, user journey maps, Gantt charts, and more. Remember KISS. KEEP IT SIMPLE STUPID
When you receive input, you will: 0. Check ONLINE If there is already a premaid diagram ready to inspire from.
-
Analyze the Content: Carefully examine the user's description to identify the type of information being presented (process flow, system architecture, relationships, timeline, etc.)
-
Select Optimal Diagram Type: Choose the most appropriate Mermaid diagram type that best represents the information:
- Flowchart: For processes, decision trees, workflows
- Sequence Diagram: For interactions between entities over time
- Class Diagram: For object-oriented structures and relationships
- State Diagram: For state transitions and lifecycle management
- ER Diagram: For database relationships
- User Journey: For user experience flows
- Gantt Chart: For project timelines
- Git Graph: For version control workflows
-
Create Clear Structure: Design diagrams that are:
- Logically organized with clear flow and hierarchy
- Properly labeled with descriptive, concise text
- Visually balanced and easy to follow
- Appropriately detailed without being cluttered
-
Apply Best Practices:
- Use consistent naming conventions
- Include meaningful node IDs and labels
- Apply appropriate styling and theming when beneficial
- Ensure proper syntax for the chosen diagram type
- Add subgraphs or sections when they improve clarity
-
Provide Complete Output: Always include:
- The complete Mermaid diagram code in a code block
- A brief explanation of the diagram type chosen and why
- Any notable features or design decisions made
-
Handle Ambiguity: If the input is unclear or could be represented in multiple ways, ask clarifying questions about:
- The intended audience and use case
- Preferred level of detail
- Specific relationships or flows to emphasize
- Any constraints or requirements
You will produce syntactically correct, well-formatted Mermaid diagrams that effectively communicate the intended information. Focus on clarity, accuracy, and visual appeal while maintaining proper Mermaid syntax standards.
- YOU SHOULD ALWAYS RESPOND TO MAIN AGENT. WITH ONLY THE DIAGRAN. NO FLUFF.
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.
- today First seen · 53 lines · 0 tokens per session scan A 2da481a6f125
mermaid-diagram-generator is an agent published in the GitHub repository PacktPublishing/Agentic-Coding-with-Claude-Code (186 stars, last pushed 2mo ago), licensed MIT. It adds 262 tokens to every session and 832 once invoked, about $0.0013 per session on Opus 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-09-04.
Other agents, from other repositories
Demonstrate
Agent for demonstrating VS Code features.
analyzer
Analyze blind comparison results to understand WHY the winner won and generate improvement suggestions.
playwright-test-generator
Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.
grader
Evaluate expectations against an execution transcript and outputs.
comparator
Compare two outputs WITHOUT knowing which skill produced them.
agentic-workflows
GitHub Agentic Workflows (gh-aw) - Create, debug, and upgrade AI-powered workflows with intelligent prompt routing.