Index of every page on this site: llms.txt
All skills
markdown-viewer avatar

/documd-visuals

@2672b69
by Markdown Viewermarkdown-viewer/skills3.4k stars
192
Run it yourself

Create text-driven visuals in Markdown: charts, diagrams, cards, architecture and page layouts. Charts and analytical views (bar, line, pie, heatmap, correlation, regression); reliability and operations (latency, incident, throughput, cycle time, OKR, standup, on-call); product and finance (funnel, retention, revenue, budget); process and workflow (approval, BPMN); software design and behaviour (class, state machine, sequence, C4); dependencies and impact (dependency graph, ER, causality); system architecture as HTML (layer stack, wings, zones, topology, service catalogue, request paths); infrastructure (cloud, Kubernetes, ETL, network, security, IAM, compliance); governance and people (ArchiMate, org chart, hiring); knowledge and planning (mind map, roadmap, Gantt, migration); documents (comparison, SWOT, memo, policy, catalogue, case study). Use when a document needs a diagram, chart or card. Figures render live. Not for slide decks or math notation. Not recommended: mermaid / canvas / drawio / dot.

Use this Skill: https://skilld.dev/gh/markdown-viewer/skills/documd-visuals

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

examplesservice-reliabilityservice-latency-density.md

Density Curve — Latency Spread Without Bins (Vega-Lite)

Best for: the shape of a distribution — where the mass sits and how long the tail runs Avoid when: exact counts per range are needed, or there are only a handful of observations Answers: whether latency clusters tightly or trails away, and where the second hump lives

{
  "config": { "range": { "category": ["#2b66c4", "#2f9e44", "#f3a33c", "#d1242f", "#7048e8", "#0f9b9b", "#c16f8a", "#7c5a3d"] } },
  "$schema": "https://vega.github.io/schema/vega-lite/v6.json",
  "width": 520,
  "height": 220,
  "title": {"text": "Checkout Latency Distribution", "subtitle": "Kernel density over 28 sampled requests", "anchor": "start"},
  "data": {
    "values": [
      {"ms": 118}, {"ms": 124}, {"ms": 131}, {"ms": 137}, {"ms": 142},
      {"ms": 146}, {"ms": 151}, {"ms": 158}, {"ms": 163}, {"ms": 169},
      {"ms": 174}, {"ms": 181}, {"ms": 188}, {"ms": 196}, {"ms": 204},
      {"ms": 213}, {"ms": 221}, {"ms": 232}, {"ms": 244}, {"ms": 258},
      {"ms": 271}, {"ms": 289}, {"ms": 308}, {"ms": 331}, {"ms": 356},
      {"ms": 391}, {"ms": 438}, {"ms": 512}
    ]
  },
  "transform": [
    {"density": "ms", "bandwidth": 14}
  ],
  "mark": {"type": "area", "opacity": 0.6, "line": {"color": "#2b66c4"}, "color": "#0f9b9b"},
  "encoding": {
    "x": {"field": "value", "type": "quantitative", "title": "latency (ms)"},
    "y": {"field": "density", "type": "quantitative", "title": "density", "stack": null}
  }
}

Data Shape

A single quantitative column — one row per observation, not a pre-binned count. The density transform emits two fields: value (the smoothed position) and density (the curve height).

Key Options

Option Effect
transform.density Replaces binning with a kernel estimate; no bin width to justify
bandwidth The smoothing knob: too small shows every bump, too large flattens real structure
y.stack: null Prevents Vega-Lite from stacking the area to zero — a density curve is already normalised
mark.line + opacity The outline carries the shape, the fill carries the mass; keep the fill translucent
mark.color fixed One series, one hue — a legend for a single distribution is clutter

Pitfalls

  • ❌ Reading the y-axis as a count → ✅ density is a normalised estimate; say "density" or drop the axis and label the x range instead
  • ❌ Overlaying two densities with opaque fills → ✅ translucent fills plus stroked outlines, or the second curve hides the first
  • ❌ Tiny samples with heavy smoothing → ✅ under ~20 points the curve invents structure; use a strip plot (stripplot-region-spread.md)
  • ❌ A density that ignores extent → ✅ the tail is cut where the data ends; state the observation window

Alternatives

Variant Use instead
Exact bin counts release-duration-distribution.md
Median with quartiles per region boxplot-latency-distribution.md
Every observation as a dot stripplot-region-spread.md
<!-- source: Vega-Lite docs (density transform output fields value/density, area mark, y.stack) + the histogram/density gallery section -->

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts16d3 checks · Risk SAFE
  • Gen Agent Trust Hub16d

    This skill provides documentation and examples for creating various visuals in Markdown using engines like ECharts, Vega, PlantUML, and HTML. It recommends using the vendor-owned @markdown-viewer/documd CLI tool for document conversion and verification. The skill itself contains no executable code or malicious patterns.

  • Socket16d

    No alerts

  • Snyk16d

    Risk: LOW · No issues

Signed by skilld at 2672b69. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 3 weeks ago
Other metadata
compatibility
Figures are text in the Markdown — fenced blocks or bare HTML — and the host viewer renders them live: nothing to pre-render, build or install. Export to html / epub / docx / pdf is optional and needs Node 18+ and Chrome/Chromium, via `npx @markdown-viewer/documd`.

README badge

README badge for markdown-viewer/skills