developing-in-lightdash
できること
YAMLとdbtのファイルからLightdashのプロジェクトを構築し、Lightdash CLIを使う方法を扱います。指標、ディメンション、結合をコードとして管理するアナリティクスエンジニア向けです。
使う場面
- ✓dbtまたはLightdashのYAMLで、指標、ディメンション、結合を定義するとき。
- ✓CLIでLightdashのプロジェクトをデプロイ、アップロード、ダウンロード、lintしたいとき。
- ✓グラフ、ダッシュボード、スペース、予約されたコンテンツをコードとして管理したいとき。
スキルのリンク
https://github.com/lightdash/lightdash/blob/main/skills/developing-in-lightdash/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“ordersのdbtモデルに売上の指標と地域のディメンションを追加して、Lightdashのプロジェクトをlintして、CLIでデプロイしてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、指標、ディメンション、結合に必要なYAMLとdbtのメタデータを説明します。デプロイ、アップロード、lint、プレビューの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
lightdashCLI (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
コメント
- …
このリポジトリの他のスキル
breakup-pr
6.2k大きなプルリクエストを、一つずつレビューしてマージできる、小さく積み重ねたスライスに分割するのを支援します。
lightdash-agent-slack-messaging
6.2k証拠に基づいて、Lightdashの管理者向けに、わかりやすく親しみのある保守とアクティビティの報告を書くのを支援します。
developing-in-lightdash
6.2kLightdashのダッシュボードとグラフを、JSONとして読み、作成し、編集するのを支援します。各グラフの種類の設定を含みます。
filter-expressions
6.2kLightdashの指標クエリに、正しいフィルター式を書くのを支援します。カスタム指標へのフィルターも含みます。
似ているスキル
discrawl
394k保存済みのローカルなDiscordメッセージのアーカイブを検索して要約し、その新しさを確認し、ダイレクトメッセージを読めるようエージェントを支援します。
clickhouse-io
280kエージェントがClickHouseデータベースのクエリとスキーマを最適化できるようにします。高性能な分析処理向けのベストプラクティスを適用します。分析クエリが遅すぎるときに使います。
scientific-db-pubmed-database
280kエージェントが生物医学分野の科学論文を検索するのに役立ちます。特定の医療情報が必要な研究に便利です。