agentleFS
jtprogrujtprogru/bear-skills/skills/vault-mermaid/SKILL.md

vault-mermaid

Skill1 starsChanged 3 months agoMITView on GitHub

Обязательная init-строка с `useMaxWidth` в начале каждого mermaid-блока заметки и правила её размещения. Используй, когда создаёшь или правишь mermaid-схему в заметке.

The file

Files
SKILL.md
<!-- СГЕНЕРИРОВАНО bin/mirror.js. Не редактировать: правки затрёт следующая генерация. Источник правды — domains/<домен>/. -->

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 — при сохранении/переносе схем
  • Ручные правки заметок через ассистента

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.