跳到正文
Skillpedia
数据库6.2k · #14404

developing-in-lightdash

它能做什么

这项技能涵盖使用 YAML 和 dbt 文件构建 Lightdash 项目,以及使用 Lightdash 命令行工具。适合把指标、维度和内容当作代码管理的分析工程师。

适用场景

  • ✓当你在 dbt 或 Lightdash YAML 中定义指标、维度和关联时。
  • ✓当你想使用 CLI 部署、上传、下载或检查 Lightdash 项目时。
  • ✓当你需要把图表、仪表板、空间或定时内容作为代码进行管理的时候。

技能链接

https://github.com/lightdash/lightdash/blob/main/skills/developing-in-lightdash/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/lightdash/lightdash/blob/main/skills/developing-in-lightdash/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请在 orders 的 dbt 模型中添加一个营收指标和一个地区维度,检查项目,并用 Lightdash CLI 部署它。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能说明指标、维度和关联所需的 YAML 和 dbt 元数据。它列出部署、上传、检查和预览的 CLI 命令,并指向每项任务的参考说明。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Developing in Lightdash

For CLI users and writeback sandboxes working with YAML and dbt files.

Build and deploy Lightdash analytics projects. This skill covers the semantic layer (metrics, dimensions, joins) and content (charts, dashboards).

When to Use

  • Working with Lightdash YAML files (charts, dashboards, models as code)
  • Using the lightdash CLI (deploy, upload, download, preview, lint, warehouse-catalog, sql)
  • Defining metrics, dimensions, joins, or tables in dbt or pure Lightdash projects
  • Creating or editing charts and dashboards as code
  • Downloading, uploading, or locally developing data apps (enterprise)
  • Creating, downloading, editing, or uploading custom chart types built in Chart Studio (enterprise)
  • Creating, editing, migrating, downloading, or uploading organization Data App themes

Don't use for: Developing the Lightdash application itself (use the codebase AGENTS.md), general dbt work without Lightdash metadata, or raw SQL unrelated to Lightdash models.

What You Can Do

Task Commands References
Create a pure Lightdash project from warehouse metadata Use Lightdash or an already-authenticated warehouse CLI to inspect catalog metadata and aggregate profiles Creating from a Warehouse Catalog
Discover warehouse tables and fields lightdash warehouse-catalog --json CLI Reference
Explore data warehouse values lightdash sql to execute raw sql, read .csv results CLI Reference
Define metrics & dimensions Edit dbt YAML or Lightdash YAML Metrics, Dimensions
Create or edit charts UI, Lightdash AI agent, MCP, or YAML via lightdash download/upload Content Workflow, Chart Types
Add period comparisons Add PoP additional metrics to chart YAML Period over Period
Create or edit dashboards UI, Lightdash AI agent, MCP, or YAML via lightdash download/upload Content Workflow, Dashboard Reference
Manage content as code across project and organization resources lightdash download, lightdash upload Content as Code
Manage data apps as code (enterprise) lightdash download --apps <ref> (one app) or --include-apps (all), edit bundle, lightdash upload --apps <ref>; local dev via lightdash apps create/preview/validate Data Apps, Content as Code
Build or edit a custom chart type (enterprise) lightdash apps create "<name>" --chart-type or lightdash download --chart-types <ref>, edit chart-types/<slug>/src/, lightdash upload --chart-types <ref> Custom Chart Types
Manage organization Data App themes as code lightdash download --organization, edit themes/<slug>/, lightdash upload --organization Data App Themes
Manage data-app external connections (enterprise) lightdash download --include-external-connections, edit YAML, lightdash upload Content as Code
Lint yaml files lightdash lint CLI Reference
Set warehouse connection lightdash set-warehouse from profiles.yml CLI Reference
Deploy changes lightdash deploy (semantic layer), lightdash upload (content) CLI Reference
Test changes lightdash preview Workflows

Common Mistakes

Mistake Consequence Prevention
Guessing filter values Case mismatches ('Payment' vs 'payment') cause charts to silently return no data Always run lightdash sql "SELECT DISTINCT column FROM table LIMIT 50" -o values.csv and use exact values
Not updating dashboard tiles after renaming a chart Dashboard tile still shows old title — title and chartName are independent overrides that do NOT auto-update Download the dashboard, find tiles with matching chartSlug, update
常见问题

涵盖哪些命令?

涵盖 deploy、upload、download、preview、lint 等命令,以及数据仓库目录工具。

它能用于纯 dbt 项目吗?

它适用于带有 Lightdash 元数据的 dbt 模型,以及纯 Lightdash 项目。

它用于一般的 dbt 工作吗?

不用于。描述中说明,它不适用于没有 Lightdash 元数据的一般 dbt 工作。

详情

作者的原始描述

Use when working with Lightdash YAML files, dbt models with Lightdash metadata, the lightdash CLI (deploy, upload, download, preview, lint, warehouse-catalog, sql, set-warehouse, apps create/preview/validate), or managing charts, dashboards, spaces and access, AI agents, scheduled content, data apps, custom chart types (Chart Studio, `apps create --chart-type`, `--chart-types`), organization Data App themes, data-app external connections, users, groups, custom roles, metrics, and dimensions as code

repo: lightdash/lightdash

热度

GitHub 星标
6.2k
排名
#14404
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能