Dashboard design

From event4u-app/agent-config · View interactive version

Dashboard design is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when designing monitoring dashboards — visualization selection, layout principles, observability strategies (RED/USE/Golden Signals), and data storytelling.

How to use this skill

Skill file

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:

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

CODE0).

  1. Implement and verify — Build the dashboard, load realistic data, and confirm every panel answers a named question for the named audience.

| Domain | Technology | Purpose |

|---|---|---|

| Monitoring | Grafana + Loki | Infrastructure health, error rates, logs, SLAs |

| Business/Admin | Laravel + Livewire + Tailwind | Customer KPIs, import stats, usage metrics |

Decision: What goes where?

| Data | Where |

|---|---|

| Server metrics, error rates, latency | Grafana |

| Log analysis, traces | Grafana (Loki) |

| SLA/uptime tracking | Grafana |

| Customer-facing KPIs | App dashboard |

| Import statistics per customer | App dashboard (+ Grafana embed) |

| User activity, usage metrics | App 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.

| Scenario | Approach |

|---|---|

| Quick KPI overview | Embed Grafana stat panels |

| Detailed investigation | Link to full Grafana dashboard |

| Customer-facing | Build in app (full UX control) |

Admin Dashboard Design (Laravel)

Widget types

| Widget | Implementation |

|---|---|

| Stat card | Livewire + Tailwind |

| Trend card | Stat + sparkline (Chart.js / Grafana embed) |

| Table widget | Livewire table with pagination |

| Chart widget | Chart.js / Grafana embed |

| Status list | Blade component with color indicators |

| Activity feed | Livewire 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

Validate

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

Do NOT

Anti-slop

Dashboards have their own signature tell: the hero-metric template (giant

number + small label + a row of stats + gradient) is L1 in

CODE0.

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.