Logo Developing In Lightdash

Developing In Lightdash

Tổ chứcPhổ biến
lightdash
developing-in-lightdash

Dùng khi đọc, tạo và chỉnh sửa dashboard cùng biểu đồ Lightdash dưới dạng JSON, bao gồm bố cục dashboard và cấu hình riêng cho từng loại biểu đồ.

Add to TypingMind

Tổng quan

Nhà phát hànhlightdash
Kho mãlightdash
Tên kỹ năngdeveloping-in-lightdash
Sao
6.1K
Bản fork
778
Tệp đi kèm
14
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 14 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được lightdash công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Developing In Lightdash trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/lightdash/lightdash/tree/main/packages/backend/src/ee/services/ai/skills/builtInSkills/developing-in-lightdash
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/lightdash/lightdash.git /tmp/lightdash
mkdir -p .claude/skills
cp -r /tmp/lightdash/packages/backend/src/ee/services/ai/skills/builtInSkills/developing-in-lightdash .claude/skills/developing-in-lightdash
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Developing In Lightdash trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Developing In Lightdash ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Developing In Lightdash với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

What You Can Do

TaskTools/ActionReferences
Read dashboards and chartsreadContentdashboard-reference, chart refs
Read data apps (read-only)readContent with type: data_appmanifest-shaped JSON, no source code
Edit dashboardseditContent with RFC6902 JSON Patchdashboard-reference
Edit charts and tileseditContent, then update referencing dashboards if neededChart refs, dashboard-reference
Create chartsgrepFields, getMetadata, runContentQuery, createContentChart refs
Create dashboardsgrepFields, getMetadata, createContentdashboard-reference, best practices
Add period comparisonsEdit chart metricQuery and configperiod-over-period-reference
Verify changed metric queriesrunContentQuery 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

MistakeConsequencePrevention
Guessing filter valuesCase mismatches like "Payment" vs "payment" can make a chart silently return no dataVerify exact values before editing filters. Do not guess string filter values
Not updating dashboard tiles after renaming a chartDashboard tile still shows the old title because tile title and chartName do not auto-updateIf you change a chart's name or purpose, also update dashboard tiles that reference its chartSlug
Including unused dimensions in metricQueryExtra dimensions change grouping and can produce wrong numbersEvery dimension in metricQuery.dimensions must be used by the chart configuration
Leaving invalid touched tile positionsEdited tiles overlap, sit outside the 36-column grid, or leave unintended gapsValidate touched tiles against dashboard-reference grid layout rules after tile actions
Missing contentTypeContent type becomes ambiguousAlways keep contentType: "chart" or contentType: "dashboard"

Core Workflows

Edit Dashboards

  1. Call readContent and inspect the current JSON shape.
  2. Always read the dashboard-reference resource.
  3. Build the smallest possible JSON Patch.
  4. Call editContent with that patch.
  5. Re-read if needed to verify the final state.

Edit Charts and Dashboard Tiles

  1. Call readContent for the chart slug.
  2. Always read the chart reference for chart type (see Choosing the Right Chart Type below).
  3. If you add or change filters, verify exact filter values before patching.
  4. If you change the chart's name or purpose, also update dashboards that reference that chart.
  5. Build the smallest possible JSON Patch.
  6. If you changed the chart's metricQuery, call runContentQuery with source.type: "metricQuery" and the edited chart's tableName/metricQuery.
  7. Call editContent with that patch.
  8. Re-read if needed to verify the final state.

Create Charts

  1. Use grepFields, then getMetadata, to explore available fields and plan your chart.
  2. Always read the chart reference for chart type (see Choosing the Right Chart Type below) to understand required fields and configuration.
  3. Build the full chart JSON with that metric query and other required fields.
  4. Call runContentQuery with source.type: "metricQuery" and the chart's tableName/metricQuery.
  5. Call createContent with the verified chart JSON.

Create Dashboards

  1. Always read the dashboard-reference and dashboard-best-practices resources.
  2. Explore existing dashboards and charts to find reusable content and inspiration for layout and design.
  3. Use grepFields, then getMetadata, to explore available fields and plan which charts to include.
  4. Create an empty dashboard shell first.
  5. Start building charts and adding them to the dashboard one by one, using the workflow above for creating charts.

Editing Charts

Dashboard tiles have their own titles. A saved_chart tile's title and chartName are independent overrides and do not automatically change when a chart is renamed. If you change a chart from "Total Revenue" to "Gross Profit", update the dashboard tile too.

json
{
    "tiles": [
        {
            "properties": {
                "chartName": "Gross Profit",
                "chartSlug": "total-revenue-kpi",
                "title": "Gross Profit"
            },
            "type": "saved_chart"
        }
    ]
}

Slug Fields

slug is a read-only stable identifier.

Dashboards

  • spaceSlug is the dashboard's space path. Changing it moves the dashboard to another space.
  • Dashboard tile properties.chartSlug references an existing reusable or dashboard-owned chart.

Charts

Charts are either reusable space charts or dashboard-owned charts.

  • Reusable chart: no dashboardSlug; spaceSlug is its space path and changing it moves the chart.
  • Dashboard-owned chart: has dashboardSlug; both dashboardSlug and spaceSlug are read-only, and spaceSlug is the owning dashboard's space.

Chart Types

All charts share a common base structure:

json
{
    "chartConfig": {
        "config": {},
        "type": "<type>"
    },
    "contentType": "chart",
    "dashboardSlug": "my-dashboard",
    "metricQuery": {
        "dimensions": ["my_explore_category"],
        "exploreName": "my_explore",
        "filters": {},
        "limit": 500,
        "metrics": ["my_explore_total_sales"],
        "sorts": []
    },
    "name": "Chart Name",
    "slug": "unique-chart-slug",
    "spaceSlug": "target-space",
    "tableConfig": {
        "columnOrder": []
    },
    "tableName": "my_explore",
    "version": 1
}

Spaces can be nested. Use parent/child syntax in spaceSlug for sub-spaces, for example "sales/forecasts". A bare slug like "sales-forecasts" is a flat top-level space; the slash defines the hierarchy.

Choosing the Right Chart Type

Data PatternRecommended ChartWhy
Trends over timeLine or area (cartesian)Shows continuous change with time on the X-axis
Category comparisonsBar (cartesian)Easy visual comparison between discrete categories
Part-of-whole relationshipspie or treemapShows proportions or composition
Single KPI metricbig_numberFocuses attention on one important value
Conversion stagesfunnelShows drop-off between sequential stages
Progress toward targetgaugeShows current value relative to a goal
Geographic datamapPlaces values on points or regions
Flow between categoriessankeyShows how values move from source to target
Detailed recordstableShows row-level or pivoted data clearly
Advanced custom needscustomFull Vega-Lite control
TypeUse CaseResource
cartesianBar, line, area, scattercartesian-chart-reference
pieParts of wholepie-chart-reference
tableData tablestable-chart-reference
big_numberKPIsbig-number-chart-reference
funnelConversion funnelsfunnel-chart-reference
gaugeProgress indicatorsgauge-chart-reference
treemapHierarchical compositiontreemap-chart-reference
mapGeographic datamap-chart-reference
sankeyFlow diagramssankey-chart-reference
customVega-Litecustom-viz-reference

For period comparisons, read period-over-period-reference in addition to the chart type reference.

Resources

Charts

  • cartesian-chart-reference - Bar, line, area, scatter
  • pie-chart-reference - Parts of whole
  • table-chart-reference - Data tables
  • big-number-chart-reference - KPIs
  • funnel-chart-reference - Conversion funnels
  • gauge-chart-reference - Progress indicators
  • treemap-chart-reference - Hierarchical composition
  • map-chart-reference - Geographic data
  • sankey-chart-reference - Flow diagrams
  • custom-viz-reference - Vega-Lite
  • period-over-period-reference - PoP comparisons
  • field-formatting-reference - Chart-level field formatting overrides for metrics and dimensions

Dashboards

  • dashboard-reference - Dashboard structure, layout, tabs, tiles, and filters
  • dashboard-best-practices - Dashboard design guidance

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Developing In Lightdash làm được gì?

Dùng khi đọc, tạo và chỉnh sửa dashboard cùng biểu đồ Lightdash dưới dạng JSON, bao gồm bố cục dashboard và cấu hình riêng cho từng loại biểu đồ.

Vì sao nên dùng Developing In Lightdash trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Developing In Lightdash là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Developing In Lightdash trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/lightdash/lightdash/tree/main/packages/backend/src/ee/services/ai/skills/builtInSkills/developing-in-lightdash. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Developing In Lightdash?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Developing In Lightdash với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Developing In Lightdash với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Developing In Lightdash có miễn phí không?

Kỹ năng này được lightdash phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇