developing-in-lightdash
Skill này làm gì
Skill này giúp agent làm việc với dashboard và biểu đồ Lightdash thông qua các công cụ nội dung. Skill dành cho nhà phân tích và lập trình viên quản lý nội dung Lightdash bằng code.
Khi nào nên dùng
- ✓Khi bạn muốn đọc hoặc thay đổi bố cục một dashboard Lightdash.
- ✓Khi bạn cần tạo một biểu đồ với cài đặt riêng cho loại biểu đồ đó.
- ✓Khi bạn muốn chỉnh sửa các biểu đồ Lightdash đã lưu thông qua một kết nối công cụ.
Liên kết skill
https://github.com/lightdash/lightdash/blob/main/packages/backend/src/ee/services/ai/skills/builtInSkills/developing-in-lightdash/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Đọc dashboard doanh thu, rồi thêm một biểu đồ cột về doanh số hằng tháng theo khu vực vào đó.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill liệt kê các công cụ nội dung dùng để đọc, tạo và chỉnh sửa dashboard và biểu đồ. Skill cũng chỉ agent đến các ghi chú tham khảo về bố cục và cài đặt của từng loại biểu đồ.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 |
Câu hỏi thường gặp
Skill dùng những công cụ nào?
Skill dùng các công cụ nội dung như đọc, tạo và chỉnh sửa, và nêu công cụ phù hợp cho từng việc.
Skill có bao quát mọi loại biểu đồ không?
Skill có các ghi chú tham khảo về cài đặt riêng cho từng loại biểu đồ.
Tôi có cần kết nối đặc biệt không?
Mô tả nêu rõ skill dành cho agent dùng MCP của Lightdash hoặc các công cụ nội dung chạy trong tiến trình.
Chi tiết
Mô tả gốc của tác giả
Use when reading, creating, and editing Lightdash dashboards and charts as JSON, including dashboard layout and chart-type-specific configuration.
repo: lightdash/lightdash
Độ phổ biến
- Sao GitHub
- 6.2k
- Vị trí xếp hạng
- #14396
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
breakup-pr
6.2kGiúp agent của bạn tách một pull request lớn thành các phần nhỏ, xếp chồng lên nhau, để có thể xem xét và gộp từng phần một.
lightdash-agent-slack-messaging
6.2kGiúp agent của bạn viết báo cáo bảo trì và hoạt động cho quản trị viên Lightdash rõ ràng, thân thiện, chỉ dựa trên bằng chứng có sẵn.
filter-expressions
6.2kGiúp agent của bạn viết biểu thức lọc đúng cho truy vấn số liệu Lightdash, kể cả lọc trên các chỉ số tùy chỉnh.
mcp-artifact-integration
6.2kGiúp agent của bạn hiển thị kết quả truy vấn Lightdash bên trong một artifact HTML hoặc React, có xử lý trạng thái tải, lỗi và rỗng.
Skill tương tự
gitcrawl
394kCho phép agent của bạn tìm trong kho lưu trữ issue và pull request GitHub, gom các mục trùng lặp và kiểm tra trạng thái hiện tại trên GitHub.
slacrawl
394kCho phép agent của bạn tìm và đếm tin nhắn trong kho lưu trữ Slack cục bộ, kiểm tra kho đó mới đến mức nào và làm mới khi cần.
goplaces
394kGiúp agent của bạn tìm địa điểm, lấy chi tiết và đánh giá, và xác định tên địa điểm bằng Google Places, với đầu ra JSON cho script.