render-mermaid
Render Mermaid diagrams to PNG/SVG/PDF and fix syntax errors.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 1
01 前言 Front Matter
- model
- haiku
- description
- Render Mermaid diagrams to PNG/SVG/PDF and fix syntax errors.
- argument-hint
- [target_path]
03 SKILL.md 正文
Mermaid Rendering and Repair
Usage: /architect:render-mermaid [target_path]
Shared files: a path written @rules/…, @skills/…, @templates/… or @docs/… is relative to the
plugin root, ${CLAUDE_PLUGIN_ROOT} — not to the project being worked on. Read it from there.
Desired Outcome
Convert Mermaid diagrams in the specified Markdown file or directory to images. Automatically fix any syntax errors found.
Features
- Mermaid to PNG/SVG/PDF conversion (using the mmdc command)
- Automatic syntax error detection and repair
- Quote correction for non-ASCII text
- Mismatched bracket repair
Tools
- Uses
mmdc(mermaid-cli) if installed - Falls back to syntax validation only if not installed
Output
Output language and frontmatter: @rules/output-conventions.md.
Rendered output is placed in the same directory as the source file.
04 同仓库更多 Skills
doctor
Check the install and a project: plugins at the repository's version, hooks and skills in place, the two knowledge bundles present and fresh, the project's registry, question store, audit log, learned rules and claims readable. Run it first when a command misbehaves.
verify-sql-migration
Prove a SQL migration on data: golden checks against an authorized source database and differential tests against ScalarDB. Never touches production.
verify-implementation
Check code against the design (API contract, transactions, security, requirements, the example chain) and report every divergence; optionally runs the eight-stage quality gate.
update-knowledge
Fetch or update an OKF knowledge bundle: ScalarDB/ScalarDL, or the vendored Kubernetes/Terraform bundle.
start
Interactive entry point for system architecture work: refactor a legacy application into services, or design a new system from requirements; picks the path from the project's state. To move a database to ScalarDB, use migrate-database.
select-scalardb-edition
Choose the ScalarDB edition (Community, Enterprise Standard or Premium, plus Enterprise Options), deployment mode and cluster topology through a short interview.