vault-mermaid

vault-mermaid is a skill for Claude Code from jtprogru/bear-skills. It costs 52 tokens per session (405 once invoked), scanned A, original, MIT.

A skill that adds a required Mermaid configuration line to diagrams in notes. Mermaid is a text-based tool for creating diagrams, and this setting makes them use the available note width in Obsidian.

In plain words
What is it for?
Use it when creating or revising Mermaid flowcharts, sequence diagrams, or other diagrams in notes, especially in Obsidian workflows.
Why use it?
It prevents diagrams from being cut off or rendered too narrowly in notes. It also provides a consistent rule when diagrams are created or edited.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bear-skills plugin — 44 skills, 3 commands, 15 agents, 1 hook shipped together

Good fit Use it when creating or revising Mermaid flowcharts, sequence diagrams, or other diagrams in notes, especially in Obsidian workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jtprogru/bear-skills/vault-mermaid
Install

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.

Any agent
npx skills add jtprogru/bear-skills --skill vault-mermaid
Clone the repo
git clone --depth 1 https://github.com/jtprogru/bear-skills

Made for: Claude Code.

Or install bear-skills, the plugin that ships this one along with the rest of its 44 skills, 3 commands, 15 agents, 1 hook.

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 vault-mermaid

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jtprogru/bear-skills/vault-mermaid"><img src="https://agentmods.dev/badge/skills/jtprogru/bear-skills/vault-mermaid.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 405 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.00052 $0.00405
Opus 5 $0.00026 $0.00202
Sonnet 5 $0.00010 $0.00081
Haiku 4.5 $0.00005 $0.00040

Measured 12d ago against content hash 7f55fe7c3c73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

vault-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 12d 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.

domains/obsidian/skills/vault-mermaid/SKILL.md · 43 lines

What it actually says

Mermaid-схемы

Обязательная init-строка

Каждая mermaid-схема в заметках должна начинаться со строки настройки useMaxWidth: true — это включает адаптивную ширину рендера в Obsidian (схема растягивается по ширине заметки и не обрезается).

Первая строка внутри блока mermaid всегда:

%%{init: {"flowchart": {"useMaxWidth": true}}}%%

Пример

```mermaid
%%{init: {"flowchart": {"useMaxWidth": true}}}%%
flowchart LR
    A[Старт] --> B[Действие]
    B --> C[Результат]
```

Правила

  • Init-строка идёт первой строкой внутри блока, до объявления типа диаграммы (flowchart, sequenceDiagram и т.п.)
  • Не оборачивай init в комментарии — это специальный синтаксис mermaid, а не комментарий
  • Применяется ко всем типам диаграмм
  • При рефакторинге/правке существующих mermaid-блоков без init-строки — добавляй её

Где применяется

Все скиллы и рабочие процессы, которые создают или редактируют mermaid-схемы в заметках:

  • obsidian-ingest — при визуализации концептов
  • obsidian-split-note — при сохранении/переносе схем
  • Ручные правки заметок через ассистента
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 43 lines · 52 tokens per session scan A 7f55fe7c3c73

Subscribe to this mod's changes

vault-mermaid is a skill published in the GitHub repository jtprogru/bear-skills (1 stars, last pushed yesterday), licensed MIT. It adds 52 tokens to every session and 405 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

ocr

AI-powered multi-agent code review. Simulates a team of Principal Engineers reviewing code from different perspectives. Use when asked to review code, check a PR, analyze changes, or perform code review.

spencermarx/open-code-review · 44 tokens

OCR Review-to-Approval Loop

Drive a PR to an approved code review by looping OCR's multi-agent review and address steps. Runs /ocr:review then /ocr:address repeatedly until the review verdict is APPROVE, then one final /ocr:address for leftover suggestions, posting every review and every address round to the GitHub PR as comments. Use when the…

spencermarx/open-code-review · 178 tokens

receiving-code-review

Use when receiving code review feedback, before implementing suggestions - requires technical verification rather than performative agreement or blind implementation.

andreymudri/claude-teammates · 28 tokens

code-review

A code-review skill that examines changes for requirement fit, correctness, security, maintainability, and performance. It reports findings with risk levels.

ryanzhao1011/workframe · 40 tokens

code-to-doc

A code-reading tool that turns a module's implementation into four current-state documents: architecture, API surface, data model, and code map. A monorepo is a repository containing multiple related projects, and the tool can account for that structure as well as other supported project layouts.

ryanzhao1011/workframe · 111 tokens

refactoring-and-tech-debt

Use when tracking tech debt across a codebase, when planning a refactor, when deciding whether to rewrite vs incrementally improve, when a workaround has appeared in three places, or when a refactor PR is about to be combined with feature work.

aneja5/forge-skills · 57 tokens