pi-anthropic-auth: Skill for Claude Code

.pi/skills/mermaid/SKILL.md

mermaid is a skill for Claude Code, Codex from gotgenes/pi-anthropic-auth. It costs 27 tokens per session (938 once invoked), scanned A, original, MIT.

Instructions for creating and checking Mermaid diagrams, a text-based way to describe flowcharts, timelines, and other diagrams.

In plain words
What is it for?
Writing or reviewing Mermaid diagrams in plans, retrospectives, architecture documents, and README files.
Why use it?
It catches syntax patterns that can make diagrams render incorrectly in common documentation tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

This is gotgenes/pi-anthropic-auth's own configuration. It tells Claude Code and Codex how to work on pi-anthropic-auth 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 pi-anthropic-auth configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gotgenes/pi-anthropic-auth. 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/gotgenes/pi-anthropic-auth/main/.pi/skills/mermaid/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gotgenes/pi-anthropic-auth

Made for: Claude Code, Codex.

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 mermaid

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/mermaid/github.svg)](https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/mermaid)
Your own site
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/mermaid"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/mermaid/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 mermaid

Your own site · 80×15
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/mermaid"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/mermaid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 938 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00027 $0.00938
Opus 5.5 $0.00011 $0.00375
Sonnet 5.5 $0.00005 $0.00188
Haiku 4.5 $0.00003 $0.00094

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

Security

Grade A, and why

mermaid 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 1mo 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.

.pi/skills/mermaid/SKILL.md · 104 lines

How it starts

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

Mermaid

Load this skill before authoring or reviewing Mermaid diagrams in any doc type (plans, retros, architecture docs, READMEs).

Pitfalls

Backslash-n in node labels

\n inside a quoted node label is rendered as a literal backslash followed by the letter n — not a line break. Use <br/> for line breaks in node labels.

WRONG:  A["Step 1\nDo the thing"]
RIGHT:  A["Step 1<br/>Do the thing"]

Semicolons

Mermaid uses ; as a statement terminator. A semicolon inside an arrow message, Note over block, or stateDiagram-v2 transition label breaks rendering silently in vivify and GitHub, even though mmdc may accept it.

WRONG:  A --> B : pop (depth > 0; return to parent layer)
RIGHT:  A --> B : pop (depth > 0 — return to parent layer)

WRONG:  Note over A,B: Step 1; Step 2
RIGHT:  Note over A,B: Step 1, then Step 2

Angle-bracket tokens

Raw <word> tokens in arrow messages and participant aliases are HTML-parsed by the markdown processor before Mermaid sees them. mmdc accepts them; vivify and GitHub do not.

WRONG:  participant <id>
RIGHT:  participant id

WRONG:  A --> B : <sessionID>-<slug>.md
RIGHT:  A --> B : sessionID-slug.md   (or use curly braces: {sessionID}-{slug}.md)

WRONG:  A --> B : send `payload` with > marker
RIGHT:  A --> B : send payload with → marker

Quoted headings

"## Heading" inside a node label is rejected by some renderers.

WRONG:  A["## Overview"]
RIGHT:  A["Overview"]

Parentheses and special characters in node labels

(, [, {, and : inside an unquoted flowchart node label are parsed as shape delimiters, not text — A[Step 1 (foo)] makes Mermaid expect a nested round node and fails with Expecting ... got 'PS'. Quote the whole label.

WRONG:  S1[✅ Step 1 - Spike (#46)]
RIGHT:  S1["✅ Step 1 - Spike (#46)"]

Verify in a real renderer

Structural validators (rumdl) check Markdown syntax but not Mermaid semantics. mmdc catches most parser errors but not angle-bracket cases (the markdown pre-parse happens before Mermaid sees the input). Both checks must pass before a diagram is considered done:

Read the full file on GitHub · 104 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. 1mo ago Changed · -1 lines · -25 tokens per session 072d60b6d442
  2. 2mo ago First seen · 105 lines · 52 tokens per session scan A 327e3cea663f

Subscribe to this mod's changes

mermaid is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (426 stars, last pushed 13d ago), licensed MIT. It adds 27 tokens to every session and 938 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

Other skills, from other repositories

pi-tui-design

Create distinctive, crafted TUI components for pi using @mariozechner/pi-tui and @mariozechner/pi-coding-agent. Use when building interactive terminal UIs — custom components, overlays, dialogs, dashboards, widgets, data visualizations, animated elements, game-like interfaces, or any visual TUI work inside pi…

joelhooks/pi-tools · 139 tokens

configuration-authentication-ui

Configure portal UI templates, static assets, themes, languages, links, and custom CSS/JS/HTML. Use for branding and refresh-aware templates; transform-generated links belong to user transforms.

greenpau/caddy-security · 43 tokens

prose-review

Review prose written for others (e.g., user-facing documentation, prompts for other LLMs, reports, plans, inline comments, docstrings) for local jargon leakage, orphaned references, missing grounding, and audience or genre mismatch. Always run on prose you produce or materially edit, except for routine conversational…

w-winter/dot314 · 84 tokens

text-search

Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.

w-winter/dot314 · 22 tokens

rp

Always read this skill when the user mentions "rp" or "repoprompt", or before accessing a repository outside the current RepoPrompt workspace. Covers workspace discovery, binding, root verification, and workspace hygiene.

w-winter/dot314 · 44 tokens

diagram-workflow

Define, render, inject, and verify project architecture diagrams from JSON graph files.

rcarmo/piclaw-addons · 20 tokens