{"id":18350,"plugin_id":"plugins_6a87bb246c908191b3e24054006a5446","kind":"skill","collection_source":null,"comparison_source":null,"observed_at":"2026-09-30T23:14:47.392Z","digest":"ea45bf9fd55a866e3d04a240825e4508370b0235c25a2bbd31c4401d974565eb","against":null,"payload":{"description":"Author, import, safely edit, preview, repair, validate, and optionally render portable Mermaid diagrams and multi-diagram Markdown. Use for Mermaid source, flowcharts, sequences, states, classes, ER models, mind maps, architecture, Gantt, timeline, or Kanban diagrams.","included_files":[{"relative_path":"agents/openai.yaml","size_in_bytes":233},{"relative_path":"references/canonical-v2.schema.json","size_in_bytes":10995},{"relative_path":"references/diagram-selection.md","size_in_bytes":2225},{"relative_path":"references/edit-markdown-v1.schema.json","size_in_bytes":1175},{"relative_path":"references/v2-contract.md","size_in_bytes":3248},{"relative_path":"scripts/create_mermaid.py","size_in_bytes":5998},{"relative_path":"scripts/mermaid_tool.py","size_in_bytes":81687},{"relative_path":"scripts/validate_mermaid.py","size_in_bytes":19495}],"name":"mermaid-diagrams","skill_md_contents":"---\nname: mermaid-diagrams\ndescription: Author, import, safely edit, preview, repair, validate, and optionally render portable Mermaid diagrams and multi-diagram Markdown. Use for Mermaid source, flowcharts, sequences, states, classes, ER models, mind maps, architecture, Gantt, timeline, or Kanban diagrams.\n---\n\n# Mermaid diagrams\n\nCreate editable Mermaid source that communicates the requested relationship clearly. Use `scripts/mermaid_tool.py` for deterministic file operations. Read `references/v2-contract.md` and validate authored JSON against `references/canonical-v2.schema.json`; use `references/edit-markdown-v1.schema.json` for targeted Markdown edits.\n\n## Routes\n\n- New work: choose a diagram family with `references/diagram-selection.md`, build canonical v2 JSON, then run `create`. Structured builders cover flowchart, sequence, state, class, ER, mind map, architecture, Gantt, timeline, and Kanban.\n- Existing source: run `import` for `.mmd`, `.mermaid`, or Mermaid-enabled Markdown, edit canonical diagrams, and `export` a new document.\n- Targeted Markdown edit: use `edit-markdown` with a persistent marker ID, or a one-based fence index plus the expected source SHA-256. This route preserves every byte outside the selected fence body and refuses ambiguous or stale edits.\n- Diagnosis: run `lint`; use `repair` only for syntax-preserving normalization.\n- Preview: run `preview --format svg|html`. Structured diagrams receive a deterministic, script-free structural preview. Raw Mermaid requires an explicitly requested compatible local renderer.\n- Rendering: default to source-only. Use `--render auto|required` only when the user requests rendered output and an existing `mmdc` runtime is available.\n\nPrefer stable ASCII IDs, concise labels, conservative syntax, and multiple small diagrams over one unreadable graph. Preserve IDs, diagram order, and comments inside raw Mermaid source when editing canonical JSON. Use the compatibility profile `11.16.1` for structured builders; pass an explicit `--target-version` only when the user names another target and retain version-profile warnings. Reject remote resources, raw HTML, JavaScript, external images, URL-bearing styles, and unsafe directives by default.\n\nAlways report evidence precisely. `lint` performs the documented static subset, not a complete Mermaid parse or semantic proof. Structural SVG/HTML previews are not host-rendering evidence. Static validation and controlled adapter tests are not renderer acceptance; a rendered artifact proves only the exact recorded local `mmdc` invocation.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}