Skip to content
Agentmart
Submit a tool
This entry duplicates kibana-dashboards, which is the one we list in search.

kibana-dashboards

Create and manage Kibana Dashboards and Lens visualizations.

Skill by elasticOfficial

IndexedApache-2.0★ 600
Write a review

Chalk Labs

Need help deploying kibana-dashboards?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/elastic-kibana-dashboards-492460

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

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

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions: not checked yet.

What's inside

Skill 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, or automate their deployment.
License
Apache-2.0
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.3 with `stack kb` support (dedicated `dashboards` and `visualizations` commands).
Metadata
author: elastic · version: 0.3.0 · universal: true
Instructions
215 lines in SKILL.md · view on GitHub

Files (12)

  • SKILL.md
  • bar-chart-esql.json · assets/
  • dashboard-basic.json · assets/
  • dashboard-with-visualizations.json · assets/
  • datatable.json · assets/
  • demo-dashboard.json · assets/
  • ecommerce-analytics-dashboard.json · assets/
  • line-chart-timeseries.json · assets/
  • metric-esql.json · assets/
  • chart-types-reference.md · references/
  • dashboard-api-reference.md · references/
  • lens-api-reference.md · references/

SKILL.md (first lines)

# 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 in [Design essentials](#design-essentials) below. Choices you do not make deliberately fall back to those
   defaults; they are not optional polish.

5. **Build a dashboard body when creating or updating dashboards.** The request body is flat — `title`, `panels`, and
   optional `description`, `time_range`, and `pinned_panels` at the root. Do not wrap in `{ data: ... }` on write.
   Required fields:
   - `title` — exact string the user requested; otherwise a title derived from what the panels measure. Never empty.
   - `description` — set on every new dashboard.
   - `panels` — array of panels and sections; use `[]` when the user asks for an empty dashboard (do not omit the key or
     invent panels).
   - `time_range` — when the user specifies a default time filter, set `{ "from": "<expr>", "to": "<expr>" }` (for
     example `{ "from": "now-7d", "to": "now" }`). Supplying `time_range` persists the dashboard time filter on open
     (equivalent to enabling time restore in the UI). Do not invent a range the user did not ask for.
   - `pinned_panels` — the controls chosen in the design step (see the Controls section of the design guidelines).

   **Upsert with a deterministic id:**

   ```json
   {
     "title": "Sales Overview",
     "panels": [],
     "time_range": { "from": "now-7d", "to": "now" }
   }
   ```

   Call `PUT kbn:/api/dashboards/eval-sales-overview` with the body above when the user supplies that id.

   **Inline ES|QL metric panel example** (inside `panels`):

   ```json
   {
     "type": "vis",
     "id": "total-requests",
     "grid": { "x": 0, "y": 0, "w": 12, "h": 5 },
     "config": {
       "type": "metric",
       "data_source": {
         "type": "esql",
         "query": "FROM logs* | STATS `Total requests` = COUNT()"
       },
       "metrics": [{ "type": "primary", "column": "Total requests" }]
     }
   }
   ```

   The metric has no `title` because its label already names it, and it is a quarter-width, 5-row panel — both are
   design defaults, not stylistic choices. Prefer inline `config` properties over `config.ref_id` for portable
   dashboards. Read [Dashboard API Reference](references/dashboard-api-reference.md) for panel types and copy workflows.

From elastic/agent-skills, Apache-2.0.

More from elastic/agent-skills

Signals

Stars
600
Forks
55
Open issues
4
Last commit (this folder)
Sep 4, 2026 (1 month ago)
Last release
Sep 4, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

Version
0.3.0
License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from elastic

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get kibana-dashboards running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying kibana-dashboards?

CallGet help
Cite this page

kibana-dashboards skill. Agent Mart. https://agentmart.dev/skills/elastic-kibana-dashboards-492460 (last updated 2026-10-24)