跳到正文
cccskills
免费在 GitHub 公开

dashboard-design

Use when designing monitoring dashboards — visualization selection, layout principles, observability strategies (RED/USE/Golden Signals), and data storytelling.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(3)

  • SKILL.md5.7 KB
  • evals/evals.json754 B
  • evals/triggers.json3.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

dashboard-design

When to use

Use when designing a new Grafana or admin dashboard, deciding what goes where (Grafana vs. app), or embedding Grafana panels in the Laravel app.

Do NOT use when:

  • Writing Grafana queries/JSON (use grafana skill)
  • Building Livewire components (use livewire skill)

Procedure: Design a dashboard

  1. Inspect the data sources — Identify which signals already exist (logs, metrics, app queries) and where they live (Grafana / Loki / app DB) before designing a new panel.
  2. Pick the surface — Use the decision tables below to choose Grafana, app dashboard, or embed; document audience and refresh cadence.
  3. Draft the layout — Sketch panels, choose visualization per signal (RED / USE / Golden Signals), define filters and thresholds. Ground the chart-type choice in the adopted data-viz corpus instead of memory: node <skills-root>/corpus-grounding/scripts/ground.mjs search --manifest <skills-root>/design-intelligence/data/manifest.json --domain chart "<data shape>" returns the best chart type, when-NOT-to-use, data-volume threshold, a11y grade + colorblind fallback, and a library recommendation per row (see design-intelligence).
  4. Implement and verify — Build the dashboard, load realistic data, and confirm every panel answers a named question for the named audience.
DomainTechnologyPurpose
MonitoringGrafana + LokiInfrastructure health, error rates, logs, SLAs
Business/AdminLaravel + Livewire + TailwindCustomer KPIs, import stats, usage metrics

Decision: What goes where?

DataWhere
Server metrics, error rates, latencyGrafana
Log analysis, tracesGrafana (Loki)
SLA/uptime trackingGrafana
Customer-facing KPIsApp dashboard
Import statistics per customerApp dashboard (+ Grafana embed)
User activity, usage metricsApp dashboard

Grafana Embedding

<iframe
  src="https://grafana.example.com/d-solo/{dashboard-uid}/{panel-id}?orgId=1&from=now-24h&to=now&var-fqdn={{ $customer->fqdn }}&theme=light"
  width="100%" height="300" frameborder="0"
></iframe>

Config required: allow_embedding = true, cookie_samesite = none (cross-origin), anonymous access/auth proxy, tenant variables via URL params, &theme=light|dark.

ScenarioApproach
Quick KPI overviewEmbed Grafana stat panels
Detailed investigationLink to full Grafana dashboard
Customer-facingBuild in app (full UX control)

Admin Dashboard Design (Laravel)

Widget types

WidgetImplementation
Stat cardLivewire + Tailwind
Trend cardStat + sparkline (Chart.js / Grafana embed)
Table widgetLivewire table with pagination
Chart widgetChart.js / Grafana embed
Status listBlade component with color indicators
Activity feedLivewire with polling/streaming

Layout: F-pattern

┌──────────┬──────────┬──────────┬──────────┐
│ Stat     │ Stat     │ Stat     │ Stat     │  ← KPI row
├──────────┴──────────┼──────────┴──────────┤
│ Chart (trend)       │ Chart (breakdown)   │  ← Viz row
├─────────────────────┼─────────────────────┤
│ Table (recent)      │ Activity feed       │  ← Detail row
└─────────────────────┴─────────────────────┘

Livewire patterns

  • wire:poll.30s for auto-refresh
  • wire:init for lazy loading expensive queries
  • $dispatch('refresh-stats') for cross-widget updates
  • Cache expensive aggregations, refresh on schedule

Validate

  • Verify each panel answers exactly one question.
  • Confirm time ranges are explicit, not "last X" without context.
  • Check that critical KPIs are visible without scrolling.
  • Ensure no chart mixes unrelated metrics on the same axis.

Output format

  1. Dashboard layout with panel placement and visualization types
  2. Data source mapping — which metrics/queries feed each panel
  3. Alerting thresholds where applicable

Gotcha

  • Max 8 panels per dashboard — cognitive overload kills usability.
  • Simple table often beats fancy visualization.
  • Always scope to customer/tenant — no unfiltered admin views.
  • Always define time range explicitly.

Do NOT

  • Do NOT create dashboards with more than 8 panels — cognitive overload.
  • Do NOT mix ops metrics with business KPIs on the same dashboard.
  • Do NOT show admin data without tenant scoping.

Anti-slop

Dashboards have their own signature tell: the hero-metric template (giant number + small label + a row of stats + gradient) is L1 in docs/guidelines/design-antipatterns.md. Pull the catalog and check L1–L3 (hero-metric, identical-card grids, monotonous spacing) before finalizing the layout — a dashboard is product-mode (docs/guidelines/design-modes.md): design serves the task, so favour data density and earned familiarity over decorative variance.

Auto-trigger keywords

  • dashboard
  • monitoring dashboard
  • visualization
  • KPI
  • metrics display

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

中文简介正在准备中。当前显示原文说明。

event4u-app/agent-config132026年10月22日 更新

查看 event4u-app 的全部技能

报告此技能的问题