Install
$ agentstack add skill-mblauberg-provenant-d2-diagrams ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
D2 diagrams
Use D2 when fixed layout, repeatable exports or publication quality justify maintaining source plus a rendered asset. The project's diagram conventions, source/render owners and terminology are authoritative. Where the project is silent, prefer native Mermaid for GitHub READMEs and living operational docs. Simplify or split an overloaded Mermaid graph before converting it; a tool change cannot fix mixed conceptual levels. A review or validation request is read-only unless edits or exports are explicitly authorised.
Publication figures (anything in a written document)
For a paper, thesis, report or manuscript:
- Match labels to the intended reader. Use implementation names only when
exact reproducibility is the figure's purpose.
- Match the target venue's output requirements. D2's native PDF path is
PNG-derived; when vector shapes/text are required, render SVG and use a project-approved converter, then inspect the PDF.
Read [publication-figures.md](references/publication-figures.md) before editing a publication figure.
Where To Put Things
- Use the project's diagram directory and naming convention when writes are
authorised; otherwise use an assigned run-owned temporary path.
- Export only when requested or required by the authorised workflow.
- Never overwrite unrelated Mermaid or Structurizr artefacts.
Default Workflow
- Choose the reader question and diagram type.
- Draft concise labels and stable identifiers.
- For authorised edits, run
d2 fmt; for read-only review, used2 --check. - Run
d2 validatewhen the installed CLI supports it. If D2 or a required
converter is unavailable, report the skipped check rather than installing it.
- Render SVG by default to an authorised path; use PNG only when raster is
required.
- Open the render and inspect labels, edges, grouping, whitespace and page fit.
Defaults
- Prefer
dagrefor directed flows; tryelkfor dense architecture. - Group related systems; distinguish roles only when it aids the argument.
- Keep detail in prose, follow the project's language convention (otherwise
Australian English), and exclude real PII.
Syntax And CLI References
- For core D2 syntax, read [references/syntax.md](references/syntax.md).
- For local CLI usage, read [references/cli.md](references/cli.md).
- For diagram-shaping and naming guidance, read [references/diagram-patterns.md](references/diagram-patterns.md).
Guardrails
- Prefer plain nodes and edges; avoid themes, icons and flourishes by default.
- Do not commit batches of exports without authority.
- Split crowded diagrams instead of forcing one canvas.
d2 playuses a hosted viewer. Do not invoke it for private or undisclosed
source without explicit external-disclosure authority.
- Close run-owned watch processes and remove only assigned temporary outputs.
- For high-stakes review, load
orchestrate; let runtime routing choose review
families and adjudicate findings against render/build evidence.
Official Sources
- D2 repository: https://github.com/terrastruct/d2
- D2 tour/docs: https://d2lang.com/tour/
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: mblauberg
- Source: mblauberg/provenant
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.