Skills
Create reviewable inline diagrams with ak:mermaidjs-v11
Turn a process, relationship, timeline, or data model into Mermaid v11 source and render it only when approved tooling is available.
Use ak:mermaidjs-v11 to express flows, interactions, structures, timelines,
and journeys as Mermaid v11 source. The primary artifact is declarative text
that can live inline in Markdown or in a .mmd file. Rendering to SVG, PNG, or
PDF is a separate step that requires compatible tooling.
Choose Mermaid for text-based diagrams
Use ak:mermaidjs-v11 when
- Documentation needs an inline flowchart, sequence, state, class, ER, Gantt, journey, architecture, or other supported Mermaid diagram.
- Reviewers should be able to inspect and diff the diagram source.
- You need a small visual whose structure matters more than custom illustration.
- You already have facts and want to map their relationships without inventing new claims.
Choose another workflow when
- You need a publish-grade SVG and PNG with controlled layout and visual styles.
Use
ak:tech-graph. - You need a strategic HTML presentation. Use
ak:slides. - The underlying evidence is not ready. Gather and approve it before asking for a diagram.
Prepare the facts and rendering boundary
Provide the audience, diagram goal, verified nodes or participants, labeled relationships, preferred direction, and desired output. State whether the Skill may edit a file or should return source only.
Inline Mermaid needs no extra file renderer. Converting .mmd to an image or
PDF requires Mermaid CLI (mmdc), which is not guaranteed by installing this
Skill. Browser integration may use a local package or a CDN; either can create a
dependency or network effect and needs separate approval.
| Runtime | Invocation | Availability boundary |
|---|---|---|
| Claude Code | /ak:mermaidjs-v11 ... | Native delivery is the default; explicit plugin delivery is also supported. |
| Cursor | /ak:mermaidjs-v11 ... | Slash invocation is user-verified; rendering tools still depend on the local environment. |
| Codex | $ak:mermaidjs-v11 ... | Native Skill discovery is supported; supporting Hook behavior is capability-specific. |
Create a bounded diagram
/ak:mermaidjs-v11 Create an inline Mermaid v11 sequence diagram for the approved lead-review flow: marketer submits a draft, reviewer requests changes or approves, and publishing stays a separate manual action. Return Mermaid source only/ak:mermaidjs-v11 Create an inline Mermaid v11 sequence diagram for the approved lead-review flow: marketer submits a draft, reviewer requests changes or approves, and publishing stays a separate manual action. Return Mermaid source only$ak:mermaidjs-v11 Create an inline Mermaid v11 sequence diagram for the approved lead-review flow: marketer submits a draft, reviewer requests changes or approves, and publishing stays a separate manual action. Return Mermaid source onlyThe argument is a diagram type or description. File paths, rendering, theme, and integration behavior should be requested explicitly rather than inferred.
Follow the diagram stages
- Choose the diagram type. Match the outcome to a flowchart, sequence, state, ER, class, Gantt, journey, architecture, or other supported form.
- Extract verified structure. Identify nodes, participants, relationships, direction, labels, and any grouping from supplied evidence.
- Write Mermaid v11 source. Use a
mermaidfenced block for inline docs or a.mmdfile when a standalone source is requested. - Configure deliberately. Add diagram frontmatter, theme, layout, or accessibility text only when required by the host and reviewed.
- Validate. Use
mermaid.parseormmdcwhen the compatible tool is already available and execution is approved. - Render and review when requested.
mmdc -i diagram.mmd -o diagram.svgdetermines output format from the extension. Inspect the rendered artifact for clipped labels, crossings, contrast, and factual accuracy.
Keep rendering and integration safe
Source generation is separate from installation and publication
The Skill may write diagram source without installing anything. Installing Mermaid CLI, pulling a container, loading CDN scripts or icon packs, editing a site integration, and publishing rendered files are separate actions. Review dependency, network, security, and licensing policy before approving them.
Keep Mermaid's securityLevel at the host's approved setting; the bundled
guidance identifies strict as the default and recommended level. Do not place
secrets or private identifiers in node labels. A diagram can simplify evidence,
but it must not convert inference into fact or imply that a review gate has
already authorized a live action.
Verify source and outputs
Depending on the request, the output can be:
- a
mermaidcode block for Markdown or MDX; - a standalone
.mmdsource file; - an
.svg,.png, or.pdfrendered by availablemmdc; or - integration code for an approved browser or application surface.
Check the source parses, labels match the supplied evidence, accessibility text describes the diagram, and the rendered output remains readable at its intended size. Record the exact source and rendered paths. If no renderer ran, say so; valid-looking source is not proof of a clean visual result.
Troubleshoot and understand limits
| Symptom | Safe next step |
|---|---|
The runtime does not recognize ak:mermaidjs-v11 | Confirm target and scope, restart the runtime, then follow Runtime cannot find a Skill or Agent. |
mmdc is unavailable | Keep the Mermaid source, report that rendering was skipped, and ask before installing a local/global package or container. |
| Parsing fails | Reduce to the smallest failing source, confirm the diagram keyword and v11 syntax, then retry validation. |
| The diagram renders differently in another host | Check that host's Mermaid version, supported diagram type, configuration, and security policy. |
| Labels overlap or the diagram is too dense | Shorten labels, split the diagram, change direction or layout, then render and inspect again. |
| The visual needs precise publication layout | Move the approved facts to ak:tech-graph instead of forcing Mermaid styling. |
The Skill does not guarantee a host supports every Mermaid v11 feature or that an external CDN remains available. It does not publish, deploy, or edit a live site unless those separate actions are explicitly approved.
Continue with ak:tech-graph, ak:docs, or the
Marketing Kit overview.
Keep marketing project knowledge current with ak:docs
Create, update, or summarize the smallest evidence-backed documentation route your marketing project needs.
Produce publish-grade technical diagrams with ak:tech-graph
Generate, validate, export, and visually review an SVG and PNG technical diagram from an approved system or flow description.