跳到正文
Skillpedia
分析与电子表格6.2k · #14396

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 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, and create_content for readContent, editContent, and createContent.
  • Use grep_fields and get_metadata for native grepFields and getMetadata.
  • Use generate_hashes for native generateHashes.
  • Replace runContentQuery with run_metric_query to validate a chart's governed semantic-layer metricQuery. Do not use run_sql for this validation.
  • Use run_sql where a workflow runs runContentQuery with source.type: "sql" or chartType: "sql_chart"; for a saved SQL chart, pass the sql from read_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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能