Reviews Kibana dashboard JSON changes in PRs or branches. Extracts structured descriptions with kbdash, compares before/after, and checks guideline compliance.
Ships in integration-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when tasks include:
Do not use this skill as the primary guide for:
dashboard-guidelines)dashboard-guidelines → references/kibana-assets-layout.md)elastic-package-cli)integration-testing)kbdash must be installed:
go install github.com/efd6/kbdash@latest
Lines prefixed with [!] in the output are warnings about potential
issues in the dashboard JSON (consistency mismatches, incomplete
extraction, parse errors). Run kbdash -h for a description of each
warning type.
Read references/review-procedure.md for the full step-by-step
workflow. The high-level flow is:
kbdash.After summarizing changes, check the final state of every added or modified dashboard against the official dashboard guidelines. Report violations in a "Guideline notes" subsection after the change summary for each dashboard.
Check for these issues:
TSVB panels: Flag any visualization panel using TSVB. The
guidelines require Lens (form-based or ES|QL) for all new
visualizations. Migrating existing TSVB to Lens is encouraged.
Missing dataset filter: Each visualization should filter on
data_stream.dataset or an equivalently specific scope. Flag
panels that query broad index patterns (metrics-*, logs-*)
without scoping. An ES|QL panel is scoped when its FROM names the
package's data streams or a WHERE narrows on
data_stream.dataset.
By-reference visualizations: Visualization and lens panels
should be embedded by value. kbdash flags by-reference lens,
visualization, and map panels with [!] <type> ref: … (definition not inlined). Flag these. Saved searches are
inherently referenced and carry a separate [!] saved search ref
warning — do not flag those.
Deprecated input controls: The input-control-vis type is
deprecated. Dashboard-native controls should be used instead.
Package-name title prefix: Panel titles matching
[<Package Name> ...] create unnecessary repetition. Flag these.
Broad wildcard filters: Filters using unscoped -* patterns
without further qualification are a performance concern.
High panel count: kbdash includes the count in the panels
section header — Panels (N total, …). If N exceeds roughly 20,
note it. The guidelines recommend splitting across dashboards and
linking with drilldowns.
Queries on event.dataset instead of data_stream.dataset:
Saved-object queries (dashboards, saved searches, packaged ML job
datafeeds) must filter on data_stream.dataset. Some inputs
(e.g. packetbeat) never set event.dataset, so an
event.dataset filter silently matches nothing. Flag every
saved-object query in a diff that renames or re-maps fields.
YAML dashboard sources out of sync: When a package keeps YAML
dashboard sources in _dev/shared/kibana/*.yaml (compiled to
kibana/dashboard/*.json with kb-dashboard), BOTH must be
committed and in sync. Flag JSON-only edits when a YAML source
exists for that dashboard.
Regeneration diffs: A recompile PR is expected to change only
state.adHocDataViews, state.internalReferences, and per-layer
index keys (the ES|QL/Discover fix on Kibana 9.3+). Diffs beyond
those keys in a "regenerate" PR deserve inspection.
Settings above the package's Kibana floor: Take the floor from
conditions.kibana.version in the package manifest.yml (the
lowest version the constraint admits). Flag settings that need a
newer Kibana than the floor (see dashboard-guidelines, "Settings
that need a newer Kibana"). In saved-object JSON look for:
pinned_panels with
"values_source": "esql" (needs 9.5; Kibana 9.4 silently drops
the control)lnsMetric panel on the textBased (ES|QL) datasource whose
visualization state has a trendlineLayerId (trend background;
older versions show the value without the trend). It needs 9.5
when datasourceStates.textBased.layers contains that layer ID
(the query filters on ?_tstart/?_tend or uses TS), and 9.6
when the layer is missing"areaFill": "gradient" in an XY visualization state (needs 9.6;
older versions ignore it and draw a solid fill)Dashboards built through the 9.6 Dashboards API set the gradient fill on every area layer by default, so expect it in exports from newer stacks.
Hard-coded namespace in ES|QL: Flag FROM clauses that name a
concrete namespace, such as FROM logs-<pkg>.<dataset>-default.
The panel then shows nothing for policies using another namespace.
Expect logs-<pkg>.<dataset>-*, or a broad pattern followed by
WHERE data_stream.dataset == "…".
All-ES|QL dashboard without a dashboard-level filter: Expect a
data_stream.dataset filter at dashboard level
(kibanaSavedObjectMeta.searchSourceJSON.filter). The package-spec
validator does not read filters inside ES|QL queries and only checks
panels of type lens, map or visualization:
lens: a missing filter fails SVR00002 in CIvis (recent UI exports): CI passes; report the
missing filter as a scoping gapFlag a new SVR00002 exclusion in validation.yml unless the
panels read indices without data_stream.dataset (for example
transform destination indices).
Dashboards API body committed as an asset: A file in
kibana/dashboard/ with top-level panels, pinned_panels or
panel config.data_source keys is a Kibana Dashboards API request
body, not a saved object. Flag it; it must be exported from Kibana
or compiled from YAML.
Dashboard title convention (new dashboards): Titles of added
dashboards follow [<Logs|Metrics> <Package>] <Name>, or
[<Product> OTel] <Name> in OTel content packages. Flag other
styles such as <Vendor Product> - <Name>. Do not flag the titles
of existing dashboards that a PR only edits.
Layout of new dashboards (packages with a 9.4+ floor): New dashboards should have a description and, with roughly 6 or more visualization panels, collapsible sections. Note their absence (LOW). Do not ask existing dashboards to be redesigned.
Missing Kibana asset tags: kbdash shows a Tags: section for
each dashboard (resolved from kibana/tag/ when run on a package
directory). New content-pack dashboards are expected to carry
Kibana asset tags — note their absence (LOW).
Navigation link completeness: If a dashboard has a links panel,
verify that every dashboard in the package has a corresponding
entry. Run kbdash <package-dir> to see all dashboard titles
(the === … === headers) alongside each links panel's Link:
lines. Note any dashboard whose title has no matching link.
Only report issues that actually exist — skip passing checks. For pre-existing violations in unchanged panels, mention them once briefly ("N existing panels also use TSVB") rather than listing each one. Focus review attention on newly added or modified panels.
After the review is complete:
dashboard-guidelines for creation or export guidance if the review surfaces structural issuespackage-spec when dashboard changes require a release note entryelastic-package-cli for validation commandsreferences/review-procedure.md — full extraction, comparison, and output formatting workflowWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
15 skills in this plugin
/anonymize-logsAnonymize and sanitize customer-provided log files. Performs a line-by-line review and replaces all sensitive values inline, preserving log structure and format exactly — never reformats, re-indents, or restructures content. Use when sanitizing customer logs, sample events, or test fixtures. Invoke manually with /anonymize-logs./cel-programsUse for all CEL and mito work on integrations that collect from APIs — writing CEL programs, cel.yml.hbs templates, manifest configuration, mock-first development with the mito CLI, system test mock setup, and answering CEL/mito questions. Load this skill whenever any data stream uses the cel input type./create-integration/integration-skills:dashboard-reviewfrom integration-skills
npx claudepluginhub elastic/integration-skills --plugin integration-skillsOther plugins' skills for the same job