Agent Skills
› ryantsai/KKTerm
› dashboard-data-visualization
dashboard-data-visualization
GitHub指导设计KKTerm仪表盘组件,涵盖图表选择、可视化工作流及操作语义。强调数据真实性、无障碍访问和紧凑布局,避免误导用户,适用于指标、趋势、日志等数据的直观展示与状态管理。
Trigger Scenarios
需要设计仪表盘图表或指标展示
处理服务健康、趋势或日志的可视化需求
Install
npx skills add ryantsai/KKTerm --skill dashboard-data-visualization -g -y
SKILL.md
Frontmatter
{
"name": "dashboard-data-visualization",
"description": "Design KKTerm Dashboard widgets that show metrics, charts, logs, timelines, gauges, health states, trends, and operational data without misleading users."
}
Dashboard Data Visualization
Use this skill when a Dashboard widget needs charts, metrics, service health, trends, logs, gauges, timelines, counters, or operational summaries. Pair it with dashboard-widget-builder for implementation and dashboard-widget-designer for broader visual polish.
Visualization Workflow
- Identify the user's question before choosing a chart: current value, trend, comparison, distribution, threshold, incident, or history.
- Choose the simplest representation that answers that question inside the widget's available size.
- Preserve source units, timestamps, and uncertainty. Do not invent precision.
- Prefer glanceable summaries with drill-down details only when the widget has room.
- Include empty, loading, error, stale, and partial-data states for live or external data.
Chart Selection
- Single important value: metric tile with unit, trend delta, and freshness.
- Status across resources: compact status list with severity chips and counts.
- Short time trend: sparkline or mini area chart with clear last value.
- Threshold monitoring: gauge, progress bar, or banded meter with explicit threshold labels.
- Event sequence: timeline or log strip with severity and timestamp.
- Comparison across a few items: horizontal bars, not tiny pies.
- Dense logs: latest-events list with filtering or grouping, not a chart.
Avoid charts that look impressive but do not answer the user question.
Operational Semantics
- Use consistent severity order: healthy, info, warning, critical, unknown.
- Make unknown or stale data visually distinct from healthy data.
- Show last updated time for live data.
- Label units directly near numbers.
- Do not hide failed fetches behind optimistic green status.
- Do not show fake sample data unless the user explicitly asked for a mock.
Color and Encoding
- Color must reinforce meaning, not carry it alone.
- Use shape, label, icon, position, or text alongside color for health states.
- Avoid rainbow palettes for operational dashboards.
- Reserve red/orange for real warnings and failures.
- Use neutral tones for background gridlines and non-critical context.
Scale and Integrity
- Do not truncate axes in a way that exaggerates small differences unless the label makes the scale obvious.
- For sparklines without axes, label the current value and the time window.
- Keep moving averages, smoothing, or derived scores explicit.
- If data is missing, show missing rather than drawing a continuous line through it.
- Prefer exact numbers for small counts and rounded values for noisy telemetry.
KKTerm Widget Constraints
- Keep charts compact and legible at Dashboard widget sizes.
- Prefer SVG or canvas drawn from the widget viewport.
- Recompute dimensions on resize.
- Stop animation loops when a chart is static or when the widget no longer needs live rendering.
- Use curated local libraries only when their documented globals are actually needed.
Version History
- b4e2eb1 Current 2026-07-05 14:38


