Skip to content
Operations
Skill

/kibana-dashboards

Create and manage Kibana Dashboards and Lens visualizations. Use when you need to define dashboards and visualizations declaratively, version control them, automate their deployment, or improve layout, sections, controls, or chart design.

From plugin
agent-skills
61330 skills

Claude Code

$ npx -y skills add elastic/agent-skills --skill kibana-dashboards --agent claude-code

SKILL.md

kibana-dashboards.SKILL.md
name: kibana-dashboards
description: >
  Create and manage Kibana Dashboards and Lens visualizations. Use when you need to
  define dashboards and visualizations declaratively, version control them, automate
  their deployment, or improve layout, sections, controls, or chart design.
metadata:
  author: elastic
  version: 0.4.0
  universal: true
compatibility: Kibana 9.4 or later (Dashboards and Visualizations APIs) with matching
  Elasticsearch, self-managed, Elastic Cloud Hosted, or Elastic Cloud Serverless.
  Requires the `elastic` CLI ≥ 0.4 with `stack kb` support (dedicated `dashboards`
  and `visualizations` commands).

Kibana Dashboards and Lens Visualizations

Create, update, and delete Kibana dashboards and standalone Lens visualizations using the Kibana 9.4+ Dashboards and Visualizations APIs. Produce minimal, diffable JSON bodies; prefer inline panel definitions over library references; choose the correct dataset type (data view vs ES|QL) before writing metrics or chart layers; and follow the design guidance in [Dashboard Design Guidelines](references/dashboard-design.md) and [Chart Design Guidelines](references/chart-design.md) so the result reads like a well-made Kibana dashboard, not a schema dump.

<!-- begin-partial: preamble -->

Environment Configuration

This skill executes Elasticsearch operations through the `elastic` CLI. If the [`elastic` CLI](https://github.com/elastic/cli#configuration) is not installed, tell the user what it is needed for. Do not guess credentials, call the HTTP API directly, or attempt other workarounds.

This skill references operations in HTTP-shorthand form (e.g., `GET /`, `GET /_cat/indices`, `GET /{index}/_mapping`, `GET /{index}/_settings/index.mode`, `POST /_query`). The [Operations](#operations) table at the end of this document maps each shorthand to the equivalent `elastic` CLI command — always use the CLI rather than calling the HTTP API directly.

<!-- end-partial: preamble -->

Prerequisites

**Version requirement:** Kibana 9.4+ (Dashboards and Visualizations APIs).

**ES|QL placement:**

  • Standalone library charts: `PUT kbn:/api/visualizations/{id}` with `data_source.type: "esql"`.
  • ES|QL panels embedded in a dashboard: inline `vis` panel `config` with `data_source.type: "esql"` via

`PUT kbn:/api/dashboards/{id}`.

  • Do not use `data_source.type: "data_view_reference"` or index-pattern aggregations when the user explicitly requests

ES|QL — the persisted Lens state must use a text-based ES|QL datasource (`textBased` / `esql`), not a data-view count operation.

Process

1. **Verify Kibana connectivity.** Call `GET kbn:/api/status`. If the call fails, stop and surface the error — do not guess endpoints or credentials. Read `version.number` to confirm the cluster meets the 9.4+ requirement, and keep the version in mind: a few settings are marked 9.5+ or 9.6+ in [Design essentials](#design-essentials) and have a fallback for older clusters. Never refuse a dashboard on 9.4 because of them.

2. **Classify the task.** Decide whether the user needs a **dashboard** (collection of panels, optional time range), a **standalone Lens visualization** (library item referenced by id or used alone), or **both**. Determine whether a deterministic saved-object id was supplied — when given, use upsert (`PUT`) with that id rather than `POST` (which auto-generates ids).

3. **Choose the dataset type before building metrics or layers.**

| User intent | Dataset | Metric / axis pattern | | ------------------------------------------------ | -------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | | Simple count or aggregation on a saved data view | `data_source.type: "data_view_reference"` with `ref_id` | `metrics: [{ type: "primary", operation: "count" }]` (or other aggregation operations) | | Ad-hoc index pattern | `data_source.type: "data_view_spec"` with `index_pattern` and `time_field` | Same aggregation `operation` fields | | ES\|QL query (explicit or complex logic) | `data_source.type: "esql"` with `query` | `metrics: [{ type: "primary", column: "<alias>" }]` or layer axes `{ column: "<alias>" }` — **never** `operation: "count"` on the metric |

Write the aggregation in the ES|QL query (`STATS count = COUNT()`), then reference the resulting column by name.

**Write the ES|QL with the `elasticsearch-esql` skill.** It covers schema discovery, time series data streams (`TS`, `RATE` for counters, `METRICS_INFO`), and query execution. Two dashboard-specific points on top of it:

  • Run every panel query before saving it, substituting fixed expressions such as `NOW() - 7 days` for `?_tstart` and

`?_tend`, which only Kibana can supply.

  • Check the data's time span (`STATS MIN(@timestamp), MAX(@timestamp)`). Without a saved `time_range`, Kibana opens

the dashboard on the last 15 minutes, so a dashboard over older or historical data renders empty panels. Tell the user which range shows data, or ask whether to persist one.

4. **Design before you write.** Read [Dashboard Design Guidelines](references/dashboard-design.md) and [Chart Design Guidelines](references/chart-design.md) and decide the composition, the chart type and grid size of each panel, the per-chart presentation settings, and the exact `grid` coordinates. The rules most often missed are summarized

Read more
@elastic
Ships withagent-skills

Elastic Agent Skills — built by the people who built Elastic — deliver native platform expertise directly to your AI coding agent.

Stars on GitHub

Momentum

stars in total
613
Star history of elastic/agent-skills on GitHub, a chart by star-history.com

Other skills on agent-skills.

onboarding

onboarding

Onboard an Elastic Cloud organization: configure the `elastic` CLI's Cloud context and API key, establish a default region, then…

provisioning

provisioning

Provision and operate Elastic Cloud infrastructure: create, connect to, update, and delete Serverless projects (Elasticsearch,…

elasticsearch-esql

elasticsearch-esql

Execute ES|QL (Elasticsearch Query Language) queries, use when the user wants to query Elasticsearch data, analyze logs,…

More skills from other plugins.

diagnose-crash

diagnose-crash

Diagnose why a program crashed on this machine, from a systemd-coredump core dump. Use when a process has segfaulted, aborted, or…

omarchy8d47k
@basecamp@basecampInstall Skill
firewall-auditor

firewall-auditor

Audit UniFi firewall policies for conflicts, redundancies, security gaps, and best practices. Use when asked to review firewall…

unifi-mcp6d1.1k
@sirkirby@sirkirbyInstall Skill
add-custom-domain

add-custom-domain

Add a custom domain to a Temps project and provision an automatic SSL/TLS certificate via Let's Encrypt, driven entirely from the…

temps4d934
@gotempsh@gotempshInstall Skill

Questions about kibana-dashboards.

Which coding agents can use kibana-dashboards?
kibana-dashboards installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.