lulufoo/lulu-board / skills/mermaid
mermaid
VerifiedList Mermaid types, or draw an open catalog type and open it on the public viewer.
mermaid
List the catalog, or author an open catalog type and open it on the public viewer.
Done when the list is shown, or a tool url is shown.
Syntax
Author Mermaid 12.1.0 built-in syntax. Drawer renders flowchart with Pele 1.7.0 and mindmap with a custom SVG pipeline, not Mermaid.js.
CLI
The shared CLI reference defines $BOARD_CLI.
- Load cli before the first
$BOARD_CLIcall of a session.
References
Load only what the current interface needs.
- list — load catalog only.
- route — after an open type is chosen, load that one file from catalog.
Interfaces
Two entries. Do not author during list.
- list — slash
list, or the ask is which types exist. Load catalog. Show the class table, including Open. Stop. - route — any draw ask. Pick exactly one catalog type. If it is not open, say it is not open, then stop. If it is open, load only that file. Author. Preview.
Route
The catalog is the type boundary. Open is flowchart (flowchart /
graph), mindmap, and the Design group (sequence, class, state,
er, requirement, c4, usecase, eventmodeling, railroad).
flowchart-elk is the flowchart type.
- A named type or alias wins.
- Else pick the type that matches what must be visible.
- Two fit → pick one; do not stop to ask.
- None fit → ask one line, then stop.
- A closed type → say it is not open, then stop. Do not author.
- Source already in hand and the ask is to publish it → skip Author; run the Short link flow.
Author
What to write, after the open type file is loaded.
- Use one sample in that file (minimal default). Flowchart: one edge-meaning category. Mindmap: one root, indented branches. Design: Pele preview; Title and Source.
- Replace labels; keep the sample's node and edge kinds.
- Prefer ≤ ~12 primary elements unless the user asked for more.
- Mint without
%% style. On update, leave those lines unchanged.
Mode
Pick short link or cloud. Short link is the default.
- Use cloud mode only when one of these holds: the user asks to save, keep, or update a cloud diagram, or to search cloud diagrams; the user pastes a
#b:link; this session already created the diagram in cloud mode. Load cloud. - Otherwise use short-link mode.
- If
loginfails or times out, use short-link mode and tell the user why. - If the user pastes a viewer URL, load pointers.
Short link flow
Publish unsigned.
- No scene to draw (and not an update): show
https://luluboard.app/and stop. - Write the Source to
.cache/mermaid/<name>.mmd.<name>is a short English name for the diagram. - Run
$BOARD_CLI preview-diagram --file <file>. - Show only the
urlfield and stop. - To change, edit the file and publish again. That creates a new short url.
- To keep, use cloud mode (
#b:).
Open wording
Show the url. One line.
Boundaries
- CLI contract:
$BOARD_CLI --help. - CLI success completes the skill; do not open the URL, drive the viewer, or screenshot the layout unless the user explicitly requests visual verification.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |