developing-data-apps-locally
What it does
This skill guides local editing of a Lightdash data app created or downloaded with the CLI. It is for developers who build custom data apps on top of Lightdash.
When to use it
- βWhen you want to edit a Lightdash data app on your own computer.
- βWhen you need to build, preview or upload a data app.
- βWhen you want to connect an external API to a data app through a linked connection.
Skill link
https://github.com/lightdash/lightdash/blob/main/packages/cli/src/handlers/apps/authoring/developing-data-apps-locally/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βSet up my downloaded Lightdash data app locally, preview it, and upload it when it works.β
5 new skills a week. 1 minute to read.
How it works
The skill explains that data access goes only through the Lightdash query SDK and that external APIs use linked connections. It then walks through the build, preview and upload steps and the checks shown in the upload output.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Can I call the data directly?
No, the skill says all data access goes through the query SDK, not direct requests.
How do external APIs work?
An admin sets up an external connection, and the app links to it in its manifest file.
What should I check after upload?
The skill says to read the upload output, which warns if a connection name does not exist.
Details
Original description by the author
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
Popularity
- GitHub stars
- 6.2k
- Ranking position
- #14403
- License
- β
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
breakup-pr
6.2kHelps your agent split a large pull request into smaller, stacked slices that can be reviewed and merged one at a time.
lightdash-agent-slack-messaging
6.2kHelps your agent write clear, friendly maintenance and activity reports for Lightdash administrators, based only on the evidence it has.
developing-in-lightdash
6.2kHelps your agent read, create and edit Lightdash dashboards and charts as JSON, including each chart type's settings.
filter-expressions
6.2kHelps your agent write correct filter expressions for Lightdash metric queries, including filters on custom metrics.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.