/datalens-skills:datalensfrom datalens-skills
Orients users to Yandex DataLens and DataLens Platform (DLP) concepts: installations, object model (connection, dataset, chart, dashboard), IDs, and URLs. Routes to the correct interface (MCP, SDK, API, UI) or skill for the actual work.
Ships in datalens-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.
None: SKILL.md is the whole skill.
DataLens is a business intelligence and data visualization system: it connects to databases, models the data into datasets, and renders charts and dashboards on top of them. It is offered as a managed service in Yandex Cloud, deployed on-premise, and run internally at Yandex.
This file orients and routes. It does not teach any one interface — pick the interface below and follow the skill that owns it.
database → connection → source → dataset → chart → dashboard
Build left to right and reference by id. Deleting upstream breaks everything downstream.
DataLens URLs for objects with an explicit type can use either of these forms:
/<object_type>/<object_id>-<readable_slug> — pass only the object ID before the readable
suffix to the API./<object_type>/<object_id> — when the readable suffix is absent, the entire final path segment
is the object ID.Dashboard links have an additional short form: https://datalens.ru/<dashboard_id>. When the URL
is identified as a dashboard link, the only path segment is the dashboard ID; there is no object
type segment. For example, https://datalens.ru/bgquq1234567 refers to dashboard ID
bgquq1234567.
For an explicitly typed object, https://datalens.ru/connections/r6wa2j1ww5cad-demo refers to the connection ID
r6wa2j1ww5cad; demo is a human-readable URL suffix. If the URL is
https://datalens.ru/connections/r6wa2j1ww5cad, use the same complete segment as the ID. The same
rule applies to connections, datasets, and charts. Do not apply the root-level short form to those
object types.
Treat object IDs as opaque values. Prefer the value from Copy ID or the API response's id
field when available. If a URL is ambiguous or does not match these forms, do not guess the ID.
Do not confuse an object ID with a display name, readable URL suffix, or a field UUID.
Where entries are filed — a separate axis from the flow above. Connections, datasets, charts, and dashboards are all entries, and entries live in a container tree. Two schemes exist, and which one is available differs per installation:
newer collection
├── collection … nested, arbitrarily deep
└── workbook
└── entries connection, dataset, chart, dashboard
older folder tree, path-addressed e.g. Users/someone/reports
└── entries held directly, no workbook in between
The workbook is the unit of grouping and permissions in the newer scheme; the folder path plays that role in the older one. Never assume which is available — an installation may offer one, the other, or both, so establish it the way the interface skill tells you rather than writing path-based logic against a workbook-only deployment.
Never assume which one is in play — hosts, auth, and the available connectors and chart types all differ. Establish it before writing anything that talks to an API.
| Installation | UI | API host | Auth |
|---|---|---|---|
| Yandex Cloud | datalens.ru | api.datalens.tech | yc CLI IAM token, plus an organization id |
| On-premise | ask the user | ask the user | deployment-specific; commonly an OAuth token in the environment |
| Yandex Team (internal) | datalens.yandex-team.ru | api.datalens.yandex.net | internal |
Yandex Cloud is the managed service. On-premise covers both the open-source self-host
(docker compose, UI on :8080) and the commercial enterprise build. Yandex Team is the
internal Yandex installation — see Installation-specific detail below before answering anything
specific to it.
Tool-specific skills detect the installation for you — the SDK, for instance, ships a preflight that reports it. Do not hand-roll detection.
For storage and data-processing work in DataLens Platform (DLP), identified by the
request or established context, also load datalens-platform. This covers REST
Catalog, data transfers, saved SQL queries, Spark, Airflow, and CloudEnv.
Choose the execution interface below; for Python work, also load
datalens-sdk. BI-only work with connections, datasets, charts, and dashboards,
and standalone Trino/Spark/Airflow work outside DLP, do not require the platform skill.
| Want to | Use | Skill |
|---|---|---|
| Manage entities from Python — create, update, inspect, export, clone | Python SDK (datalens-sdk on PyPI) | datalens-sdk |
| Let an agent call the DataLens API directly through tools | MCP server (@datalens-tech/mcp) | — see its README |
| Anything else programmatic | the public HTTP API | — see below |
| Explore, click around, look at a rendered chart | the web UI | — human work, not agent work |
SDK vs MCP. The SDK is the default for anything scripted, repeatable, or committed to a
repository — it is typed, it has a documented object model, and the work survives as code. The MCP
server suits interactive one-offs inside an agent session: it fetches the API's OpenAPI spec at
startup and exposes a three-tool gateway (list_commands → describe_commands →
invoke_command) instead of hundreds of tools. Do not mix them for one task.
The HTTP API, when neither fits. The SDK and the MCP server are both built on it, so reach for
it directly only where they fall short. It is an HTTP API in an RPC style rather than a REST one:
you call named commands with JSON payloads, not resources. It is also self-describing — fetch the
OpenAPI spec from /json/ on the installation's API host (Installations above;
https://api.datalens.tech/json/ on the cloud) and work from the spec rather than guessing command
names or payload shapes. On the cloud the organization id is required, sent as an x-dl-org-id
header.
Two installations withhold something you need, and in both cases the answer is to ask rather than to fill the gap yourself.
Yandex Team is extended by a skill distributed separately, datalens-yateam. If it is present
in the available skills list and the environment targets that installation, invoke it: it adds and
overrides installation-specific detail from this file, and it wins where the two disagree. If the
task concerns Yandex Team and the skill is not in the list, stop and ask the user to install it,
following the instructions at https://datalens.yandex-team.ru/get-skills. Do not reconstruct its
content in the meantime — say which part of the answer is installation-dependent and leave it
there.
On-premise publishes no endpoints, and the API does not necessarily sit on the UI's host. Stop and ask the user for both — the DataLens endpoint and the DataLens API endpoint — before writing anything that talks to either. Do not derive one from the other, do not fall back to a cloud default, and do not carry on with a placeholder.
State the boundary and stop rather than improvising an adjacent solution:
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub datalens-tech/datalens-skills --plugin datalens-skills6 skills in this plugin
/datalens-html-pagesUse this skill to build, fix, or publish a standalone HTML page or report in DataLens. DataLens takes a whole self-contained HTML document — often an AI-generated report with tables, charts, and a CSV/download button — and renders it in a sandboxed, CSP-locked iframe, so normal web code silently breaks. Reach for it when generating such a page from scratch, and when one already in DataLens misbehaves: images, fonts, scripts, or CDN libraries blocked or throwing Content-Security-Policy errors; fetch/XHR/localStorage failing; charts blank; a download or Export button doing nothing; an upload rejected as too large or the wrong encoding; or the page needing to match the user's DataLens theme (light/dark) and language (ru/en); or embedding a Yandex map. Also covers which CDNs and hosts are allowed and making the page fully self-contained. Not for DataLens chart cells or HTML-markup table columns./datalens-onprem-installInstall, configure, troubleshoot, update, or remove the commercial DataLens On-premises distribution using current docs. Use for single-node K3s setup, sizing, interrupted installs, feature changes, Public API, service accounts, MCP, LDAP/OIDC, and backup or restore. Not for Yandex Cloud, Yandex Team, the Open Source edition, or building charts and dashboards./datalens-platformUse for storage and data-processing work in DataLens Platform (DLP): REST Catalog, data transfers, saved SQL queries, Spark jobs, Airflow orchestration, CloudEnv storage, and DLP access troubleshooting. Applies when DLP is identified by the request or established context. For Python automation of these resources, also load datalens-sdk. Not for BI-only connections, datasets, charts, or dashboards, or standalone Trino, Spark, or Airflow work outside DLP./datalens-sdkUse this skill for any Yandex DataLens automation task through the Python package `datalens-sdk`. Trigger on: DataLens, datalens, даталенс, chart, чарт, график, dashboard, дашборд, dataset, датасет, connection, подключение, workbook, воркбук, collection, коллекция, wizard chart, QL chart, editor chart, BI automation, автоматизация DataLens, "create a dashboard", "построй дашборд", "создай чарт", "export dataset", or "clone dashboard"; entity ids such as dataset_id, chart_id, dashboard_id, or workbook_id; and requests to create, update, inspect, import, export, copy, or diagnose DataLens objects with code. NOT for: business questions about metric values; viewing or screenshotting the DataLens web UI; embedding or iframes; raw SQL/YQL analysis that does not manage DataLens entities; raw HTTP API calls; standalone HTML pages or reports, except publishing or managing them through this SDK./datalens-yc-rls-resolveUse this skill when a DataLens user on datalens.ru (Yandex Cloud) needs to resolve user, email, service-account, or Cloud Organization group names into RLSv2 subject IDs, fill the `rls2` field, or migrate a legacy `rls` configuration.Other plugins' skills for the same job