markdown-viewer/skills

documd-visuals

Create text-driven visuals in Markdown: charts, diagrams, cards, architecture and page layouts.

Voir la source
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

documd visuals

Routing for every diagram, chart, card and layout this document pipeline can render.

Figures are text, in place. A fence (plantuml · vega · echarts · infographic) or bare HTML written into the Markdown is the figure: the viewer draws it live, the block stays editable, and nothing is pre-rendered, built or exported first. documd is optional — export and verification only.

Iron rules

  1. Allowed fences — plantuml / puml · vega · vega-lite · echarts · infographic,

plus bare HTML — which is how system architecture diagrams, cards and page layouts are drawn.

  1. Nothing outside that list. A fence the list does not name is a bug, not a lesser option —

there is no second-tier engine.

  1. One diagram per fence. Do not put two engines in one block, and never nest fences.
  2. HTML is bare, never ` ```html ` — a fenced block becomes an image. Start from a real file rather

than inventing one: `layered-with-wings.md` for a system, `executive-brief-summary.md` for a card.

  1. Inline the data. vega / vega-lite / echarts must carry their own values / series data;

external URLs are unreliable on the export path.

  1. State the reading in the copy. Every figure answers one question — put it in the prose or the

block's title.

  1. Pick a theme, then colour from it. Colours come from one of the themes indexed in

`styles/palette.md`; copy that theme's block for your engine and take every value from it — a hex picked by hand, or two themes in one figure, is a bug. Charts pass the categorical ramp in order; cards use one accent plus neutrals.

Route by goal

Find the reader's goal, open the goal guide, pick an example. Engines are suggestions; the guide and examples are authoritative.

A — data & metrics

GoalTrigger keywordsEnginesRead
service-reliabilitylatency · p95/p99 · SLO · SLA · error budget · burn rate · availability · uptime · reliabilityecharts vega infographicgoals/service-reliability.md
ops-monitoringincident load · alert volume · outliers · anomalies · service scorecard · support volumeecharts vega infographicgoals/ops-monitoring.md
delivery-throughputthroughput · cycle time · lead time · velocity · capacity · staffing · backlog · WIP · rank movementecharts vega infographicgoals/delivery-throughput.md
goal-and-status-reportingOKR · KPI · target vs actual · goal attainment · status board · dashboard · scorecardecharts vega infographic html-cssgoals/goal-and-status-reporting.md
product-metricsconversion · funnel · adoption · retention · churn · activation · signup · cohorts · experimentecharts infographicgoals/product-metrics.md
business-reportingquarterly results · revenue · ARR · revenue mix · margin · periodic results · forecastinfographic vega echartsgoals/business-reporting.md
go-to-marketpipeline · channel · partner · partner tiers · market entry · sales funnel · SWOT · campaignsecharts infographicgoals/go-to-market.md
cost-and-budgetcost · spend · budget · cloud bill · savings · cost reduction · capex · unit economicsecharts infographic vegagoals/cost-and-budget.md
data-explorationcorrelation · distribution · regression · outlier detection · missing data · small multiples · densityvega echartsgoals/data-exploration.md

B — process & systems

GoalTrigger keywordsEnginesRead
engineering-operationsstandup · sprint ritual · team rhythm · on-call · coverage · shift handover · deploy cadence · checklistinfographic vega echartsgoals/engineering-operations.md
incident-managementincident · postmortem · escalation · triage · runbook · change request · launch readiness · reviewinfographic echarts html-cssgoals/incident-management.md
process-and-workflowapproval · workflow · swimlane · SOP · process map · BPMN · gate · procurementplantuml infographicgoals/process-and-workflow.md
software-designclass · domain model · component · package · layering · use case · object · C4 container · SysMLplantumlgoals/software-design.md
software-behaviourstate machine · lifecycle · sequence · interaction · messaging · event flow · EIP · deploymentplantumlgoals/software-behaviour.md
dependencies-and-relationsdependency · call graph · impact analysis · coupling · ownership · causality · fishboneplantuml vega echarts infographicgoals/dependencies-and-relations.md
system-architecturesystem architecture · layer stack · zones · pipeline stages · service catalog · request path · connectorshtml-cssgoals/system-architecture.md

C — infrastructure & governance

GoalTrigger keywordsEnginesRead
cloud-architectureAWS · Azure · Kubernetes · container · serverless · IoT · edge · VPC · observabilityplantuml infographicgoals/cloud-architecture.md
data-platformETL · lakehouse · warehouse · CDC · streaming · ingestion · catalog · ML pipeline · ER modelplantumlgoals/data-platform.md
network-topologynetwork · topology · DMZ · wireless · firewall · switch · packet · route · trafficplantuml echartsgoals/network-topology.md
security-and-compliancezero trust · IAM · encryption · threat model · trust boundary · controls · evidence · audit · compliance · riskplantuml infographic html-cssgoals/security-and-compliance.md
enterprise-architectureArchiMate · capability map · value stream · stakeholder map · business architectureplantuml infographicgoals/enterprise-architecture.md
organization-and-rolesorg chart · reporting line · workforce · capability coverage · capability maturity · handoffs · responsibilitiesinfographic vega echarts html-cssgoals/organization-and-roles.md
people-and-hiringhiring · headcount plan · interview loop · onboarding · career ladder · certifications · progressioninfographicgoals/people-and-hiring.md

D — knowledge & expression

GoalTrigger keywordsEnginesRead
knowledge-and-outlinemind map · outline · knowledge map · concept map · topics · word cloudplantuml infographic vega echartsgoals/knowledge-and-outline.md
planning-and-roadmaproadmap · milestone · timeline · Gantt · quarterly plan · release schedule · strategy focusinfographic vega plantuml html-cssgoals/planning-and-roadmap.md
migration-and-rolloutmigration · cutover · rollout waves · phased delivery · programme · work breakdownplantuml infographicgoals/migration-and-rollout.md
comparison-and-selectioncompare · versus · build or buy · decision record · quadrant · vendor selection · trade-off · priorityinfographic html-cssgoals/comparison-and-selection.md
internal-documentsmemo · brief · charter · abstract · policy · quote · principleshtml-css infographicgoals/internal-documents.md
catalogues-and-inventoriescatalogue · inventory · entitlements · offerings · standard tools · support tiersinfographicgoals/catalogues-and-inventories.md
customer-and-partner-commscustomer story · case study · sales brief · bulletin · announcement · partner brief · education modulehtml-cssgoals/customer-and-partner-comms.md
theme-and-toneprint · photocopy · handout · low vision · large print · colour-blind · slide · projected · long-forminfographic echarts plantumlgoals/theme-and-tone.md

Engine cheat sheet

EngineReach for it whenLook elsewhere when
plantumlUML/ArchiMate/BPMN semantics, brand and device icons (9,514 stencils), or a relationship graph that should lay itself outIt is a chart
vega / vega-liteThe data needs work first — join, window, fold, regression, density, facets, small multiplesOne polished chart with heavy styling (echarts)
echartsReport-grade chart or KPI dashboard: axes, series, thresholds, annotations, gaugesThe data must be transformed first
infographicA designed-looking board: roadmap, timeline, checklist, comparison, quadrant, knowledge mapAxes, several series or statistical shapes (echarts)
HTML/CSSCards, memos, overviews, page-level layoutsAnother engine already renders that diagram

Details, limits and pitfalls: `plantuml` · `echarts` · `vega` · `infographic` · `html-css`.

Capability boundaries

These are not possible; pick the fallback instead of retrying.

WantFallback
3D / globe / WebGL charts (no echarts-gl)2D echarts; scatter/graph for shape
Geographic maps (no bundled map data, no GeoJSON offline)schematic rectangle layout, or an HTML/CSS region diagram
dataset.transform in ECharts (throws RangeError in 6.1.0)sort and derive upstream, then dataset.source
Functions in an echarts option (parsed as JSON)template strings ("{c}%"), per-item label objects
External data or images (data.url, remote URLs)inline values, data URLs
PlantUML WBS / Salt / Timing / ditaa / JSON / YAML / EBNF / nwdiag / SDL / math (parse, draw nothing useful)@startmindmap, a boxed rectangle tree, HTML/CSS mockups, or a code fence
Interactive charts (tooltip, zoom, brush)annotate directly: labels, thresholds, callouts
Icons in vega / echartsplantuml stencils
Free-form positioning in infographicHTML/CSS for pixel control

Reading a document

To read a document in the browser or in VS Code, install docu.md Markdown Viewer: <https://docu.md>.

Exporting & verifying — optional

Authoring never needs this. The `documd` CLI converts a document or a diagram source to a file, extracts figures as images, and verifies that blocks render — for when the output is a file. Nothing to install: npx @markdown-viewer/documd in.md out.docx. Flags, formats and the npm-scope warning: converting.md.

When a block does not render

  1. Fence in the allowed list? Exactly one block per figure?
  2. Is it a listed anti-pattern in that engine's reference (see Engine cheat sheet) — or strict

syntax (JSON for echarts/vega, no empty lines in bare HTML)?

  1. Then switch to the alternative engine the goal guide names; most scenarios have two.
  2. Or verify by rendering: npx @markdown-viewer/documd file.md --assets /tmp/figs.

Where everything lives

`catalog/scenarios.md` indexes every scenario with its domain, engines, tier and example path — start there; then goals/<domain>.md, engines/<engine>.md, examples/<domain>/<file>.md.

du même dépôt

Autres Skills

Tous les Skills