domain-skills: add mermaid.live render & validate skill#400
Open
MatheusGSD wants to merge 1 commit into
Open
Conversation
How to render arbitrary Mermaid via the mermaid.live #pako: URL (zlib-deflate + URL-safe base64, NOT plain base64) and confirm a parse/render headlessly via the DOM (svg#graph-* with many <g> nodes vs syntax-error text) — no screenshot or local mermaid CLI needed. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
✅ Skill review passedReviewed 1 file(s) — no findings. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
domain-skills/mermaid.live/render.md.What it captures (non-obvious):
#pako:<data>where<data>is the editor-state JSON zlib-deflated then URL-safe base64 — plain base64 gives a blank editor. Includes a 6-line Python builder (the harness already runs Python).svg#graph-*with many<g>nodes vs a syntax-error string. Useful right after editing any file that embeds Mermaid.Field-tested rendering two diagrams from a docs repo (one with subgraphs + node→subgraph edges + dotted labels; SVG came back with 136
<g>nodes,syntaxErr:false).🤖 Generated with Claude Code
Summary by cubic
Adds a new
domain-skills/mermaid.live/render.mdskill that explains how to render and validate Mermaid diagrams inmermaid.livevia the#pako:URL hash. Enables headless parse checks without screenshots or the Mermaid CLI.#pako:hash format formermaid.live(zlib-deflated, URL-safe base64 editor state JSON; plain base64 yields a blank editor).svg#graph-*with many<g>nodes or detect syntax error text).Written for commit 51f0075. Summary will update on new commits.