developing-in-lightdash
できること
コンテンツのツールを通じて、Lightdashのダッシュボードとグラフを扱う方法を説明します。Lightdashのコンテンツをプログラムで管理するアナリストや開発者向けです。
使う場面
- ✓Lightdashのダッシュボードのレイアウトを読んだり変えたりしたいとき。
- ✓特定のグラフの種類に合った設定で、グラフを作りたいとき。
- ✓ツールの接続を通じて、保存済みのLightdashのグラフを編集したいとき。
スキルのリンク
https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/developing-in-lightdash/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“売上ダッシュボードを読んで、地域ごとの月次売上の棒グラフを追加してください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、ダッシュボードとグラフの読み取り、作成、編集に使うコンテンツツールを一覧にします。レイアウトと各グラフの種類の設定について、参考メモをエージェントに示します。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Developing in Lightdash
For in-process agents and MCP clients working with JSON content tools; Autopilot reuses the chart references with its own workflow.
Use this skill when working with Lightdash dashboards and charts.
MCP tool names
This skill is shared with Lightdash's native agent, so its workflows use camelCase tool names. When reading it through MCP:
- Use
read_content,edit_content, andcreate_contentforreadContent,editContent, andcreateContent. - Use
grep_fieldsandget_metadatafor nativegrepFieldsandgetMetadata. - Use
generate_hashesfor nativegenerateHashes. - Replace
runContentQuerywithrun_metric_queryto validate a chart's governed semantic-layermetricQuery. Do not userun_sqlfor this validation. - Use
run_sqlwhere a workflow runsrunContentQuerywithsource.type: "sql"orchartType: "sql_chart"; for a saved SQL chart, pass thesqlfromread_content.
What You Can Do
| Task | Tools/Action | References |
|---|---|---|
| Read dashboards and charts | readContent |
dashboard-reference, chart refs |
| Create, read, edit SQL charts | createContent / readContent / editContent, sql_chart |
sql-chart-reference |
| Read data apps (read-only) | readContent with type: data_app |
manifest-shaped JSON, no source code |
| Edit dashboards | editContent with RFC6902 JSON Patch |
dashboard-reference |
| Edit charts and tiles | editContent, then update referencing dashboards if needed |
Chart refs, dashboard-reference |
| Create charts | grepFields, getMetadata, runContentQuery, createContent |
Chart refs |
| Create dashboards | grepFields, getMetadata, createContent |
dashboard-reference, best practices |
| Add period comparisons | Edit chart metricQuery and config |
period-over-period-reference |
| Verify changed metric queries | runContentQuery with source.type: "metricQuery" |
Chart refs |
Rules:
- Always read content before editing if you have not read it since the last user message.
- Preserve unrelated fields.
- Prefer minimal patches.
- Follow the dashboard or chart shape from the resource instead of inventing structure.
- When you create or edit content, please provide links for them in the final response
Common Mistakes
| Mistake | Consequence | Prevention |
|---|---|---|
| Guessing filter values | Case mismatches like "Payment" vs "payment" can make a chart silently return no data |
Verify exact values before editing filters. Do not guess string filter values |
| Not updating dashboard tiles after renaming a chart | Dashboard tile still shows the old title because tile title and chartName do not auto-update |
If you change a chart's name or purpose, also update dashboard tiles that reference its chartSlug |
Including unused dimensions in metricQuery |
Extra dimensions change grouping and can produce wrong numbers | Every dimension in metricQuery.dimensions must be used by the chart configuration |
| Leaving invalid touched tile positions | Edited tiles overlap, sit outside the 36-column grid, or leave unintended gaps | Validate touched tiles against dashboard-reference grid layout rules after tile actions |
Missing contentType |
Content type becom |
よくある質問
どのツールを使いますか?
読み取り、作成、編集などのコンテンツツールを使い、作業ごとに対応するツールが示されています。
すべてのグラフの種類に対応していますか?
グラフの種類ごとの設定の参考メモが含まれています。
特別な接続が必要ですか?
LightdashのMCPまたはプロセス内のコンテンツツールを使うエージェント向けだと説明されています。
詳細
作者による元の説明
Use when reading, creating, and editing Lightdash dashboards and charts as JSON, including dashboard layout and chart-type-specific configuration.
repo: lightdash/lightdash
人気
- GitHubのスター
- 6.2k
- ランキング
- #14396
- ライセンス
- —
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
breakup-pr
6.2k大きなプルリクエストを、一つずつレビューしてマージできる、小さく積み重ねたスライスに分割するのを支援します。
lightdash-agent-slack-messaging
6.2k証拠に基づいて、Lightdashの管理者向けに、わかりやすく親しみのある保守とアクティビティの報告を書くのを支援します。
filter-expressions
6.2kLightdashの指標クエリに、正しいフィルター式を書くのを支援します。カスタム指標へのフィルターも含みます。
mcp-artifact-integration
6.2kLightdashのクエリ結果をHTMLやReactのアーティファクトに表示し、読み込み中、エラー、データなしの状態を扱うのを支援します。
似ているスキル
gitcrawl
394k保存されたGitHubのイシューとプルリクエストのアーカイブを検索し、重複をまとめ、GitHub上の現在の状態を確認するようエージェントを支援します。
slacrawl
394kローカルのSlackアーカイブ内のメッセージを検索して件数を数え、アーカイブの新しさを確認し、必要に応じて更新するようエージェントを支援します。
goplaces
394kGoogle Placesを使って、場所を検索し、詳細や口コミを取得し、場所の名前を解決するようエージェントを支援します。スクリプト用にJSON出力もできます。