---
name: generate-version-controlled-dashboards-from-data-models
description: "Generates version-controlled dashboard definitions from metric requests. Use when a team member asks for a new chart or analytics view and the dashboard spec must be drafted, linted, and proposed for review."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Database, GitHub, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/generate-version-controlled-dashboards-from-data-models/"
  kind: workflow
  hermes:
    tags: ["dashboards", "sql", "analytics", "bi", "git"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Generate version-controlled dashboards from data models

Turn metric requests into declarative dashboard definitions with validation checks

## When to use

When team members request new analytics views, writing dashboard definitions by hand can be tedious. This workflow receives visualization requirements, inspects database schemas, drafts declarative dashboard files, and validates them via command-line tooling before opening a pull request.

## Inputs

- `metric_requirements`: The requested charts, metrics, and visualization needs from the team member.
- `existing_dashboard_spec` (optional): An existing declarative dashboard specification file to update, if one already exists.

## Steps

1. When you ask: Receive metric requirements (A team member asks in chat for a new chart or dashboard view.)
2. Draft and validate dashboard spec
3. Propose pull request for review

## Instructions

Analyze user requests for new charts and dashboards. Query the database schema to verify table structures and metric definitions. Generate or update declarative dashboard specification files using the appropriate templates. Run the local CLI linter in the terminal to validate queries and layout configurations. Once tests pass, prepare a git branch and pull request, but ask for user approval before pushing branches or creating pull requests.

## Approvals

- Pushing git branches requires user approval.
- Creating pull requests requires user approval.

## Output

Proposed git branch and pull request containing the validated dashboard specification for review. (format: pull_request)

## Source

Summarized in our own words from [Show HN: DAC – open-source dashboard as code tool for agents and humans](https://news.ycombinator.com/item?id=47949066) (Hacker News, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/generate-version-controlled-dashboards-from-data-models/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
