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 skills add thapaliyabikendra/ai-artifacts --skill mermaid-diagram-patternsgit clone --depth 1 https://github.com/thapaliyabikendra/ai-artifactsWrote 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/skills/thapaliyabikendra/ai-artifacts/mermaid-diagram-patterns)<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/mermaid-diagram-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/mermaid-diagram-patterns/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.
<a href="https://agentmods.dev/skills/thapaliyabikendra/ai-artifacts/mermaid-diagram-patterns"><img src="https://agentmods.dev/badge/skills/thapaliyabikendra/ai-artifacts/mermaid-diagram-patterns.svg" alt="Reviewed on agentmods" width="80" 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.00067 | $0.01726 |
| Opus 5.5 | $0.00027 | $0.00690 |
| Sonnet 5.5 | $0.00013 | $0.00345 |
| Haiku 4.5 | $0.00007 | $0.00173 |
Grade A, and why
mermaid-diagram-patterns 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Mermaid Diagram Patterns
Create clear, professional Mermaid diagrams for technical documentation.
When to Use
- Database schema visualization (ERD)
- API interaction sequences
- Process and workflow flowcharts
- System architecture diagrams
- State machines and user journeys
- Decision trees
Diagram Type Selection
| Scenario | Diagram Type | Mermaid Syntax |
|---|---|---|
| Database schema | ERD | erDiagram |
| API calls | Sequence | sequenceDiagram |
| Process flow | Flowchart | graph TD or flowchart TD |
| Component architecture | Flowchart | graph LR |
| State transitions | State | stateDiagram-v2 |
| User workflow | Journey | journey |
| Project timeline | Gantt | gantt |
| Class relationships | Class | classDiagram |
ERD Pattern (Database Schema)
Use for entity definitions in technical design documents.
erDiagram
%% Entity definitions with attributes
PATIENT {
uuid Id PK
string FirstName
string LastName
string Email UK
string Phone
date DateOfBirth
timestamp CreationTime
uuid CreatorId FK
boolean IsDeleted
}
DOCTOR {
uuid Id PK
string FullName
string Specialization
string Email UK
string Phone
}
APPOINTMENT {
uuid Id PK
uuid PatientId FK
uuid DoctorId FK
timestamp AppointmentDate
string Description
smallint Status "0=Scheduled,1=Completed,2=Cancelled"
}
%% Relationships
PATIENT ||--o{ APPOINTMENT : "has"
DOCTOR ||--o{ APPOINTMENT : "conducts"
ERD Conventions
| Symbol | Meaning |
|---|---|
PK |
Primary Key |
FK |
Foreign Key |
UK |
Unique Key |
| ` | |
| ` | |
}o--o{ |
Many-to-Many |
Sequence Diagram Pattern (API Interactions)
Use for documenting API flows in technical design.
sequenceDiagram
autonumber
participant C as Client
participant API as API Gateway
participant S as AppService
participant DB as Database
C->>+API: POST /api/app/patients
API->>API: Validate JWT
API->>+S: CreateAsync(dto)
S->>S: Validate input
S->>+DB: Insert Patient
DB-->>-S: Patient entity
S-->>-API: PatientDto
API-->>-C: 201 Created
Note over C,DB: Error handling
C->>+API: POST /api/app/patients (invalid)
API->>+S: CreateAsync(dto)
S-->>-API: ValidationException
API-->>-C: 400 Bad Request
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.
- 2mo ago First seen · 266 lines · 67 tokens per session scan A b0dd1c33951d
mermaid-diagram-patterns is a skill published in the GitHub repository thapaliyabikendra/ai-artifacts (24 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 67 tokens to every session and 1,726 once invoked, about $0.0003 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-09-03.
mermaid-diagram-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mermaid-diagram-patternsthapaliyabikendra/ai-artifacts | Skill | 24 | 7mo ago | Apache-2.0 | A | 67 | Claude Code |
| mk:mermaidjs-v11ngocsangyem/MeowKit | Skill | 15 | 6d ago | MIT | A | 65 | Claude Code |
| tech-diagramdesirecore/market | Skill | 2 | today | MIT | A | 210 | Claude Code |
| diagram-creatorclaude-office-skills/skills | Skill | 567 | 9mo ago | MIT | A | 34 | Claude Code, Codex |
| frame-flowchart-stickynexu-io/open-design | Skill | 106k | today | Apache-2.0 | A | 26 | Claude Code, Codex |
| drawio-skillAgents365-ai/drawio-skill | Skill | 11k | yesterday | MIT | A | 107 | Claude Code, Codex |
| frame-flowchart-stickynexu-io/html-anything | Skill | 9.4k | today | Apache-2.0 | A | 27 | Claude Code, Codex |