{"data":{"slug":"github-eosphoros-ai-db-gpt-skills-dashboard-builder-ea505300a247","title":"Dashboard Builder: Create and Revise Data Dashboards","summary":"Plan, generate, repair, and safely revise reusable dashboards from a selected database or registered multi-file tabular dataset through the DB-GPT Dashboard tools.","url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-skills-dashboard-builder-ea505300a247","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-eosphoros-ai-db-gpt-skills-dashboard-builder-ea505300a247","markdown_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-skills-dashboard-builder-ea505300a247.md","download_url":"https:\/\/skillshunter.net\/skills\/github-eosphoros-ai-db-gpt-skills-dashboard-builder-ea505300a247\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"A database must be selected in the data assistant. A registered multi-file upload dataset satisfies this condition. Use only the selected database. Never invent another data source.","instructions":"---\nname: dashboard-builder\ndescription: Plan, generate, repair, and safely revise reusable dashboards from a selected database or registered multi-file tabular dataset through the DB-GPT Dashboard tools.\nversion: 1.1.2\nauthor: DB-GPT Dashboard Lab\nallowed-tools: sql_query load_dashboard_style load_dashboard_draft resolve_dashboard_reference plan_dashboard revise_dashboard_plan create_dashboard_draft repair_dashboard_draft modify_dashboard_draft propose_dashboard_change question terminate\n---\n\n# Dashboard Builder\n\nUse this skill when the user asks to create, revise, or repair a reusable data\ndashboard from the database selected in the data assistant. A bounded CSV\/Excel\nupload group that DB-GPT registered as one SQLite data source counts as the\nselected database; use SQL tools against that durable source.\n\nThis skill **orchestrates** the workflow. Deterministic tools own persistence,\nSQL validation, query execution, revision checks, and publication safety. Do not\nreimplement those responsibilities in free-form reasoning or scripts.\n\n## Preconditions\n\n- A database must be selected in the data assistant. A registered multi-file\n  upload dataset satisfies this condition.\n- Use only the selected database. Never invent another data source.\n- If no database is selected, ask the user to select one and stop.\n- Respond in the same language as the user.\n\n## New dashboard: plan first\n\nVisual styles are owned by the internal\n[dashboard-design skill](internal\/dashboard-design\/SKILL.md). Gallery selections\nload only that skill and the chosen reference automatically. Keep its layout and\npalette while adapting the analytical content to actual data. When a user asks\nfor a style without choosing a gallery item, pass its exact name to\n`load_dashboard_style` before planning; list styles only when you need to find\nan appropriate reference. No style selection is needed\nfor a small dashboard with no requested visual preference. Internal chart, filter,\ncollaboration and design guidance lives under `internal\/`; these are not separate\nhomepage skills.\n\n1. Use `sql_query` only for the minimum read-only discovery needed to learn:\n   table relationships, field types, data grain, date range, and useful category\n   values. Use at most eight discovery queries in a planning turn. If validation\n   feedback already names the incorrect plan fields, fix the plan directly instead\n   of starting another round of discovery.\n   Use the server's temporal discovery evidence for every candidate time column:\n   storage type, actual sample values, inferred format and source distinct count.\n   Raw distinct dates and distinct calendar months are different grains. Use the\n   observed format to choose dialect-appropriate parsing, keeping the full year;\n   do not assume a text date is accepted by a native date function. Ambiguous,\n   mixed, unavailable or sampled evidence is not an exact source-wide fact.\n   Reuse already observed facts instead of querying the same counts or date\n   coverage again. Combine independent aggregates at the same table\/grain in\n   one discovery SELECT where possible. Stop discovery once the metric fields,\n   grain, relationships and required filter values are understood. Do not run\n   each future widget's ranking or trend query merely to preview its numbers;\n   those queries will be generated and validated after confirmation. Still\n   investigate unknown semantics, join cardinality, missing data and chart point\n   counts when they affect the plan; this is not permission to guess.\n2. When the selected source came from multiple uploaded files, inventory every\n   source table before planning:\n   - record its source file\/sheet, row count, columns, likely grain, nulls, and\n     duplicate-key counts;\n   - inspect `__dbgpt_dataset_manifest` for provenance;\n   - treat `__dbgpt_relationship_candidates` only as hints, never as confirmed\n     joins;\n   - verify candidate keys with distinct-key overlap, unmatched rows, and\n     one-to-one\/one-to-many\/many-to-many cardinality checks;\n   - never concatenate tables merely because columns match, and never join two\n     fact tables at raw grain when that would multiply measures. Aggregate the\n     child side to the intended dashboard grain first.\n3. Keep the user's requested scope: one component per listed analytical item;\n   do not add extra KPI cards or filters. For broad requests start with 3\u20134 core\n   widgets. Add filters only when requested or necessary for the stated decision.\n   If the requested period has no rows and an empty table is intended, set that\n   table's `expected_data_points` to 0, preserving the exact requested period.\n   Call `plan_dashboard` with exactly one `plan` argument containing a SQL-free\n   plan object (a JSON-encoded string is also accepted). Follow the generated\n   DashboardPlan validation shape in the registered tool inventory, including:\n   - business theme and intended decision;\n   - metric names as a string array; describe their meaning in the business text;\n   - dimensions as a string array and an appropriate grain;\n   - filters with real default values and options discovered from the data;\n   - widgets with stable ids, type, title, business question, metric, and\n     dimensions.\n   If a visual reference is selected, use its slot ids exactly once; the tools\n   preserve its layout and palette. Omit repeated layout hints, visual rationale\n   and unused default fields. Keep metric definitions concise while retaining\n   the requested population, time period, grain and data limitations. Otherwise\n   use individual widget width\/height hints and business layout rationale.\n   Do not add `layout_template` to the plan;\n   visual references are loaded separately from the SQL-free plan contract.\n4. Stop the turn with `terminate`. The user must see and confirm the plan before\n   component SQL is generated.\n\nNever call `create_dashboard_draft` in the planning turn. Never replace this\nworkflow with a one-off HTML report.\n\n## Confirmed plan: generate queries\n\nWhen the message contains an authoritative `[[confirm-dashboard:ID]]` marker:\n\n1. Use the persisted plan contract and its widget ids exactly.\n2. Call `create_dashboard_draft` with the supplied dashboard id and expected\n   revision. Without global filters, submit up to four widgets per call, using\n   fewer for long queries. With filters, submit at most two because each widget\n   also needs a frozen publication query and bindings. Follow the batch limit\n   reported by the tool after a retry. The server stages these bounded\n   batches and creates the draft atomically after every planned widget is present;\n   when it reports missing widget ids, send only those missing widgets next.\n3. Generate one parameterized, read-only query per widget.\n   Reuse the temporal evidence injected into this turn, not an assumed format\n   from a column name or a missing earlier discovery result. It is contextual\n   evidence, not a server guarantee of SQL business semantics.\n4. Declare typed output fields and a compatible chart encoding for every query.\n5. Map every global filter to named SQL parameters.\n   `filter_parameters` keys are saved filter ids; values are parameter-name\n   strings or `{start_parameter, end_parameter}` for date and number ranges. Output fields\n   are `{name, type}` objects, not strings or a field-name map. When the plan has\n   filters, every widget needs a publication binding. The frozen query must\n   return its filter fields and grouping\/measure fields within the declared\n   `max_rows` (default 1000, maximum 5000). If needed, aggregate at the full\n   filter\/grouping grain while preserving the measure; never truncate source\n   rows or average averages. The publication output columns must match the\n   widget output fields. See the generated DashboardQueryDraftRequest shapes.\n6. If a tool argument is reported as truncated or malformed JSON, do not resend\n   the complete payload. Retry with at most two widgets so the server can stage it.\n7. If a widget fails server validation, call `repair_dashboard_draft` only for\n   failed widgets. Preserve successful widgets.\n8. Finish with `terminate` and state which widgets succeeded or still need work.\n\n## Filter rules\n\n- Date and number ranges use separate start and end parameters; never bind\n  the two-value array to scalar equality.\n- A scalar select may use a null guard, for example\n  `(:category IS NULL OR category = :category)`.\n- A multi-select parameter may appear only inside `IN` or `NOT IN`, for example\n  `store_id IN (:store_ids)`.\n- Do not add `IS NULL` guards for multi-select lists. The backend normalizes an\n  empty list to mean no restriction.\n- Never concatenate user values into SQL or emulate list membership using\n  `INSTR`\/`LIKE` and comma-delimited strings.\n- An approved table with `expected_data_points: 0` permits a genuine empty\n  result. Never remove its predicate, change its year, or insert dummy rows to\n  make it nonempty. Other unexpected empty queries remain repairable failures.\n\n## Revise or repair\n\n- A `[[revise-dashboard-plan:ID]]` marker means replace the pending SQL-free plan\n  with `revise_dashboard_plan`, then stop for confirmation again.\n- Use `repair_dashboard_draft` for query or encoding failures in an existing\n  generated draft.\n- Use `modify_dashboard_draft` only for bounded changes explicitly requested by\n  the user. First call `load_dashboard_draft` in the same turn to obtain the\n  current schema and revision. Keep the dashboard id, data source, ownership,\n  and revision contract.\n- Never silently apply an AI change that requires user review.\n\n## Selection-aware annotation\n\nWhen the message contains an authoritative `[[dashboard-annotation:ID]]` marker:\n\n1. Do not reload this skill or call `load_tools`; the server has already selected\n   this workflow and registered its bounded tools.\n2. For a `[\u4fee\u6539\u7ec4\u4ef6]` annotation, use `propose_dashboard_change` with the exact\n   Dashboard and annotation ids in the message. Address widgets and filters by\n   stable ids, never by array indexes, and propose only the smallest change.\n3. For `[\u6307\u6807\u89e3\u91ca]` or `[\u5f02\u5e38\u5206\u6790]`, load only the persisted Dashboard context and\n   explain it. Deterministic anomaly evidence is authoritative: never run SQL,\n   recalculate a result, call a proposal\/mutation tool, or change `anomaly`,\n   `normal`, or `indeterminate` conclusions.\n4. Stop after the explanation or validated proposal. A modification proposal must\n   still be applied or rejected by the user in the Dashboard UI; never save it\n   silently.\n\n## Completion checks\n\nBefore reporting success, rely on tool observations to verify:\n\n- all requested widgets exist;\n- every widget query passed read-only and field-mapping validation;\n- filters have real options and parameter mappings;\n- multi-table metrics reconcile to source totals at the declared grain, and\n  join diagnostics show no unexplained fan-out;\n- failed widgets are reported without discarding successful widgets;\n- the result is a recoverable Dashboard draft, not only prose or an image.\n\nFor the detailed phase contract and examples, read\n`references\/workflow-contract.md` when needed.\n","use_cases":["Create a dashboard from a selected database with specific visual styles and data widgets.","Revise an existing dashboard plan to include new widgets or modify existing ones.","Repair a dashboard draft that has query or encoding failures."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/eosphoros-ai\/DB-GPT\/blob\/83e7ff9a50c6e1f87aa878f21d2d1355a1d79dbc\/skills\/dashboard-builder\/SKILL.md","source_commit":"83e7ff9a50c6e1f87aa878f21d2d1355a1d79dbc","license":null,"version":"1.1.2","listing_approved_at":"2026-11-16","created_at":"2026-11-15T15:46:51.000000Z","updated_at":"2026-11-16T08:27:30.000000Z","seo_title":"Create and Revise Data Dashboards with DB-GPT","seo_description":"Plan, generate, repair, and revise reusable dashboards from a selected database or registered dataset using DB-GPT Dashboard tools.","seo_keywords":["create dashboard","rev,ise dashboard","repair dashboard","dashboard planning","dashboard generation"]}}