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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 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.2k帮你的智能体为 Lightdash 指标查询编写正确的筛选表达式,包括针对自定义指标的筛选。
mcp-artifact-integration
6.2k帮你的智能体在 HTML 或 React 产物中展示 Lightdash 查询结果,并处理加载、错误和空数据状态。