developing-data-apps-locally
Что он делает
Этот скилл направляет локальное редактирование приложения данных Lightdash, созданного или скачанного через CLI. Он нужен разработчикам, которые создают собственные приложения поверх Lightdash.
Когда использовать
- ✓Когда вы хотите отредактировать приложение данных Lightdash на своём компьютере.
- ✓Когда нужно собрать, открыть предпросмотр или загрузить приложение данных.
- ✓Когда вы хотите подключить внешний API к приложению данных через связанное подключение.
Ссылка на скилл
https://github.com/lightdash/lightdash/blob/main/packages/cli/src/handlers/apps/authoring/developing-data-apps-locally/SKILL.mdСкопируйте и вставьте её в ваш ИИ (Claude, ChatGPT или Cursor) с просьбой следовать инструкциям.
Как использовать
Самый простой способ: скопируйте сообщение и вставьте его в свой ИИ. Он прочитает скилл и выполнит инструкции.
Готовое сообщение для вставки
Для Claude Code, Codex или Cursor: запустите в папке проекта, и скилл установится.
Скачайте SKILL.md и положите его в папку скиллов вашего агента.
Пример запроса к вашему ИИ
“Настрой моё скачанное приложение данных Lightdash локально, открой предпросмотр и загрузи его, когда всё заработает.”
5 новых скиллов в неделю. 1 минута чтения.
Как это работает
Скилл объясняет, что доступ к данным идёт только через SDK для запросов Lightdash, а внешние API работают через связанные подключения. Затем он проводит по шагам сборки, предпросмотра и загрузки и проверкам, которые показаны в выводе загрузки.
Технический текст (оригинальный SKILL.md)
Оригинальный текст автора на английском, прямо с GitHub.
Developing Lightdash Data Apps Locally
You are editing a Lightdash data app that was created or downloaded with the Lightdash CLI.
The only way to reach data is the SDK
- All app data access goes through
@lightdash/query-sdk. Deployed apps use Lightdash's postMessage bridge;lightdash apps previewuses a loopback proxy restricted to the same SDK routes and project. Do not add directfetchor REST calls. - For the SDK surface (query builder,
useLightdash, filters, downloads), read thelightdash-data-appskill in this folder.
External HTTP APIs go through linked connections
- The one sanctioned path to a third-party API is
lightdash.externalFetch('<alias>', ...)against an external connection a project admin configured and linked to this app (see thelightdash-data-appskill). - The app's links are declared in this folder's
lightdash-app.ymlunderexternalConnections(- alias: stripe/connectionSlug: stripe-api). When the key is present, upload reconciles the app's links to match it exactly — so to link a connection that already exists in the project, add its{alias, connectionSlug}entry and upload. Do not remove entries casually: an entry removed from the list (or an empty list) unlinks on upload, and a manifest without the key leaves links unchanged. - Watch the upload output: a
connectionSlugthat doesn't exist in the target project is skipped with a warning (the app uploads, butexternalFetchon that alias fails at runtime). Linking requires either the admin-levelmanage:ExternalConnectionpermission or an admin-enabled connection plus permission to manage the target data app — if a link is skipped or forbidden, report it to the user instead of retrying. - If the app needs an API with no existing connection, stop and say so — do not vendor an HTTP client or try to reach it another way. An admin must create the connection first (in project settings, or as code:
lightdash download --include-external-connections, editlightdash/external-connections/<slug>.yml,lightdash uploadwith the secret inLIGHTDASH_EXTERNAL_CONNECTION_SECRET_<SLUG>); then it can be linked via the manifest as above.
Library boundaries — build with what's preinstalled
- The app builds against a fixed template dependency set — see
package.json(React, Recharts, d3 + d3-cloud/d3-sankey, Radix primitives, Tailwind, lucide-react, date-fns, html-to-image, jspdf, and more). Design within this set; it covers almost all data-app needs. - Adding new npm packages only works when the Lightdash organization has custom dependencies enabled — assume it does not. When disabled, upload rejects new dependency declarations. Do not attempt
pnpm addto find out; ask the user whether their organization has custom dependencies enabled before considering a new library. - Do not work around a missing library by vendoring its source into
src/, inlining minified code, or fetching code at runtime. If the template set genuinely cannot express what's asked, say so and let the user decide.
The edit → build → upload loop
Run these commands from this folder under apps/<slug>/. The upload path ../.. selects the Lightdash content root.
- Edit files under
src/only. - Run
lightdash apps validateto check the source, manifest, dependencies, external-connection aliases, and semantic references against the downloaded context. Uselightdash apps validate --buildto add the Cloud-parity Vite production build; use--liveto check against fresh project explores or--format jsonin CI. A green run reports any call sites it could not fully analyze instead of silently claiming complete coverage. lightdash upload --apps <slug> --path ../..(theslugfrom this folder'slightdash-app.yml) — the server rebuilds and serves the app. The server rebuild remains the final result that ships.
Cloud-parity local builds
lightdash apps validate --buildassemblessrc/in an isolated copy of the CLI's trusted template and invokes barevite build— it deliberately does not typecheck because the Cloud build does not typecheck.- Apps made with
lightdash apps createalready have the standard template dependencies installed. Afterlightdash download, runnpm installbefore requesting--buildifnode_modulesis absent. Validation does not install the standard dependency set implicitly. - Apps with custom dependencies are restored into the isolated build di
Частые вопросы
Могу ли я обращаться к данным напрямую?
Нет, скилл говорит, что весь доступ к данным идёт через SDK для запросов, а не через прямые обращения.
Как работают внешние API?
Администратор настраивает внешнее подключение, а приложение ссылается на него в своём файле манифеста.
Что проверить после загрузки?
Скилл велит читать вывод загрузки, в котором есть предупреждение, если имя подключения не существует.
Подробности
Оригинальное описание автора
Use when editing a locally created or downloaded Lightdash data app — how local editing, building, and uploading work, and what is read-only.
repo: lightdash/lightdash
Популярность
- Звёзды на GitHub
- 6.2k
- Место в рейтинге
- #14403
- Лицензия
- —
- Обновлён
- 02.11.2026
Комментарии
- …
Другие скиллы из этого репозитория
breakup-pr
6.2kПомогает агенту разбить большой pull request на меньшие части, выстроенные цепочкой, которые можно проверять по одной.
lightdash-agent-slack-messaging
6.2kПомогает агенту писать короткие и понятные отчёты о работе для администраторов Lightdash, опираясь только на имеющиеся факты.
developing-in-lightdash
6.2kПомогает агенту читать, создавать и менять дашборды и графики Lightdash в виде JSON, включая настройки каждого типа графика.
filter-expressions
6.2kПомогает агенту писать правильные выражения фильтров для запросов метрик Lightdash, включая фильтры по своим метрикам.
Похожие скиллы
angular-developer
280kПомогает агенту писать код на Angular и советовать по структуре проекта. Полезен для новых проектов, создания частей кода и улучшения производительности.
frontend-a11y
280kПомогает агенту делать веб-интерфейсы доступными для всех, чтобы сайты и приложения работали с программами чтения с экрана и клавиатурой.
frontend-patterns
280kАгент применяет современные паттерны фронтенд-разработки: оптимизирует производительность, управляет состоянием и следует практикам React и Next.js.