mapletechlabs/maple/maple-dashboard-widgets

Claude Code and agent skill by mapletechlabs/maple

Trust tier 2
  • community
  • ext:[{"type":"plugin","description":"Custom plugin integration"}]
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Build, repair, or review Maple dashboard widgets via the MCP. Triggers on phrases like 'create_dashboard', 'add_dashboard_widget', 'update_dashboard_widget', 'dashboard widget JSON', 'panel_type', 'QueryDraft', or any session that submits widget JSON to the maple MCP. Covers the panel-type table, the kind-discriminated data source, the percent vs percent_100 unit rule, valid aggregations and group-by tokens per source, the custom whereClause grammar, the scalar reduceToValue transform, and the…

Install

npx vskill@latest install mapletechlabs/maple/maple-dashboard-widgets

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as mapletechlabs/maple/maple-dashboard-widgets.

Maple dashboard widgets via MCP

Everything below is generated from the live widget schema by bun run --cwd apps/ai mcp:docs. Do not edit this file by hand. Edit apps/ai/src/mcp/lib/dashboard-schema-doc.ts and regenerate. The same module backs the describe_dashboard_schema MCP tool, so an agent at runtime and a reader here see one truth.

When to use this skill

When constructing widget JSON for mcp__maple__create_dashboard, mcp__maple__add_dashboard_widget, mcp__maple__update_dashboard_widget or mcp__maple__replace_dashboard_widgets.

For a brand-new dashboard, prefer the simplified widgets array on create_dashboard ({ title, source, metric, group_by?, service_name?, unit? }). It fills in the traps below. Reach for raw JSON when the simplified spec can't express what you need: multi-query charts, formulas, hidden series, non-default transforms.

The three silent failures

  1. A data source is a `kind`-discriminated union. { "endpoint": …, "params": … } is the

retired v2 shape and will not decode.

  1. `percent` means a 0–1 fraction; `percent_100` means 0–100. Inverted from Grafana.
  2. `groupBy` is ignored unless `addOns.groupBy` is `true`. No error, just an ungrouped total.

Verification

MCP success is not chart correctness. The mutation tools reject queries the engine can't honor and widgets that cannot render, and return an automatic inspect_chart_data summary for everything else. Read the verdict: suspicious or broken means fix and resubmit.

Panel types

panel_type is the whole answer to “what kind of widget is this”. Pass it and the persisted visualization, the display.chartId and the raw-SQL display type are all derived for you. The legacy visualization parameter is still accepted, but it collapses line/bar/area into chart and then needs a display.chartId to tell them apart. The two columns below are what panel_type resolves to, and are what you write directly when authoring an assembled widget rather than calling add_dashboard_widget. A panel whose chartId is - takes none: the visualization alone identifies it.

panel_typeLabelvisualizationdisplay.chartIdRaw-SQL typeDefault w×hRequirements
lineLinechartquery-builder-lineline4×6-
barBarchartquery-builder-barbar4×6-
hbarHorizontal Barhbarquery-builder-hbarhbar4×6needs a group-by
areaAreachartquery-builder-areaarea4×6-
piePiepiequery-builder-piepie4×6needs a group-by
statStatstat-stat3×4needs transform.reduceToValue
gaugeGaugegauge-stat4×6needs transform.reduceToValue
tableTabletable-table6×5-
listListlist--6×5no raw-SQL support
histogramHistogramhistogramquery-builder-histogramhistogram4×6-
heatmapHeatmapheatmapquery-builder-heatmapheatmap4×6needs a group-by
funnelFunnelfunnelquery-builder-funnelfunnel4×6needs a group-by
pathsPathspathsquery-builder-paths-6×5no raw-SQL support
markdownNotemarkdown--4×5no raw-SQL support
Choosing one
  • line / area / bar: a value over time. area and bar accept display.stacked; line does not.
  • hbar: a ranked “top N by volume”. Each row is labelled with its share of the total.
  • funnel: sequential stages with a drop-off. Labels each bar as a share of the largest,

so an unranked breakdown of four equal things reads “100%” four times. Use hbar for that. display.funnel.variant: "dropoff" draws the same funnel as one column per step with the loss between steps, the median time between them, and where the leavers went.

  • paths: what people do in the steps after (or before) one event or page, as a flow.

Defined by display.paths alone; no query set.

  • pie: composition, few slices. Collapses a long tail into “Other”.
  • stat / gauge: one number. A gauge adds an arc; set display.gauge.min/max to match the unit.
  • table: rows and columns; set display.columns for headers and per-column units.
  • list: recent traces/logs. Configured by display.listDataSource, never by SQL.
  • heatmap / histogram: a distribution. A histogram over traces can bucket raw values client-side.
  • markdown: a static note. Takes no query at all.

Data sources

A widget's dataSource is a discriminated union over kind: query, raw_sql, promql, route, static. Every arm requires its kind.

**If you have seen { "endpoint": …, "params": … } anywhere, that is the retired v2 shape
and it will not decode.** A query source spreads queries/formulas at the TOP LEVEL,
not under params, and requires resultShape.
kind: "query": the query builder

resultShape is required and is one of timeseries (a value over time), breakdown (one row per group) or list (raw rows). Optional: formulas, comparison, limit, defaultLimit, columns, transform.

json
{
"kind": "query",
"resultShape": "timeseries",
"queries": [
{
"id": "q1",
"name": "A",
"enabled": true,
"whereClause": "service.name = \"api\"",
"aggregation": "error_rate",
"stepInterval": "",
"orderByDirection": "desc",
"addOns": {
"groupBy": true,
"having": false,
"orderBy": false,
"limit": false,
"legend": false
},
"groupBy": [
"service.name"
],
"having": "",
"orderBy": "",
"limit": "",
"legend": "",
"dataSource": "traces"
}
]
}
kind: "raw_sql": your own ClickHouse SQL
json
{
"kind": "raw_sql",
"sql": "SELECT count() AS value FROM logs WHERE $__orgFilter AND $__timeFilter(Timestamp)",
"displayType": "stat"
}
kind: "promql": a PromQL query over the metrics

Prometheus names: http.server.request.duration answers to http_server_request_duration_seconds_bucket, a monotonic sum to ..._total. Grafana variables work ($var, ${var}, ${var:regex}, [[var]], an All selection becomes (a|b)), plus $__interval, $__rate_interval, $__range and $__range_s. legendFormat names series with {{label}}; minStepSeconds floors the step; displayType is the panel's raw-SQL display type (a stat reads the newest point of the first series with the first reducer on field value; a table gets one row per series).

json
{
"kind": "promql",
"query": "sum by (job) (rate(http_server_request_duration_seconds_count{job=~\"$service\"}[$__rate_interval]))",
"legendFormat": "{{job}}",
"displayType": "line"
}
kind: "static": a markdown note, no request
json
{
"kind": "static"
}
kind: "route": a curated built-in panel

{ "kind": "route", "endpoint": "service_overview", "params": { … } }. These back the prebuilt panels; you rarely author one by hand.

Scalar panels need a reduction

A stat or gauge reads data[0].value. Without transform.reduceToValue it renders [object Object]. add_dashboard_widget injects { field: "value", aggregate: "first" } when you omit it; set it explicitly to choose a different reducer. Valid aggregates: sum, first, count, avg, max, min: there is no `last`.

Which one depends on what the query returns, because the query is bucketed over time and the reducer collapses those buckets into one number:

  • A rate or a count (count, a metrics rate) → sum, for a window total.
  • A latency percentile or an average (p95_duration, avg_duration, a gauge metric)

→ avg for the typical value over the window, or max for the worst bucket. Not sum: adding percentiles together is meaningless, and it is the common wrong choice.

  • A current reading, where only the newest bucket matters → first.
json
{
"kind": "query",
"resultShape": "timeseries",
"queries": [
{
"id": "q1",
"name": "A",
"enabled": true,
"whereClause": "",
"aggregation": "count",
"stepInterval": "",
"orderByDirection": "desc",
"addOns": {
"groupBy": false,
"having": false,
"orderBy": false,
"limit": false,
"legend": false
},
"groupBy": [],
"having": "",
"orderBy": "",
"limit": "",
"legend": "",
"dataSource": "traces"
}
],
"transform": {
"reduceToValue": {
"field": "value",
"aggregate": "sum"
}
}
}
The breakdown shape

resultShape: "breakdown" returns one row per group instead of a series over time, the shape pie, hbar, funnel and heatmap need. It requires a group-by, and limit caps the rows (honoured for 1–100).

json
{
"kind": "query",
"resultShape": "breakdown",
"queries": [
{
"id": "q1",
"name": "A",
"enabled": true,
"whereClause": "",
"aggregation": "count",
"stepInterval": "",
"orderByDirection": "desc",
"addOns": {
"groupBy": true,
"having": false,
"orderBy": false,
"limit": false,
"legend": false
},
"groupBy": [
"service.name"
],
"having": "",
"orderBy": "",
"limit": "",
"legend": "",
"dataSource": "traces"
}
],
"limit": 10
}
Product-event funnels (panel_type: "funnel" + display.funnel.steps)

A funnel widget has two modes. Without display.funnel.steps it draws a group-by breakdown as descending stages (the shape above). With them it is a conversion funnel over product events (page views, track() events and server-side events, stitched per person), and the query set is not used at all. Set the definition on display_json.funnel and add_dashboard_widget derives the data source (kind: "route", endpoint: "product_events_funnel") for you; do not pass data_source_json.

  • steps: 1–10, in order. { kind: "event", eventName, attributeEquals? },

{ kind: "page", pagePath, host? }, or (step 1 only) { kind: "session", dimension, value } with dimension one of referrerHost, utmSource, utmMedium, utmCampaign, country, host.

  • keyBy: person (default; user id, else the visitor's linked user, else the visitor),

visitor, user, or session.

  • windowSeconds: the whole chain must complete within this many seconds of step 1

(default 86400). Must be positive.

  • breakdownBy: split the funnel by a session dimension (referrerHost, utmSource,

utmMedium, utmCampaign, country, host) or attribute:<key>; the widget draws one bar per group per step for the top 6 groups by step-1 count.

  • filters: the population filter: only persons with a session matching these

dimensions take part. { host?, pagePath?, referrerHost?, country?, deviceType?, browserName?, osName?, language?, utmSource?, utmMedium?, utmCampaign?, visitorType?: "new" | "returning" }. They are spread FLAT into the derived route params.

The step count, the step-1-only session rule and a positive windowSeconds are enforced on write: a definition that breaks one of them is rejected rather than saved, because the query engine would reject it again on every render.

Use list_product_events to see which event names exist, and query_funnel to try a definition before pinning it to a board.

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
1,936
Repository forks
127
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Extension points

  • pluginCustom plugin integration

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mapletechlabs/maple/maple-dashboard-widgets/badge)](https://verified-skill.com/skills/mapletechlabs/maple/maple-dashboard-widgets)

Something wrong with this skill or its page? Tell us.