Data build dashboard

From frumu-ai/tandem · View interactive version

Data build dashboard is an AI agent skill from the GitHub repository frumu-ai/tandem. Build an interactive HTML dashboard with charts, filters, and tables

How to use this skill

Skill file

Build Interactive Dashboards

If you see unfamiliar placeholders or need to check which tools are connected, please ask about available integrations.

Build a self-contained interactive HTML dashboard with charts, filters, tables, and professional styling. Opens directly in a browser -- no server or dependencies required.

Usage

You can ask to build a dashboard with a description (e.g., "Build a sales dashboard" or "Create a support ticket dashboard").

Arguments

Workflow

1. Understand the Dashboard Requirements

Determine:

2. Gather the Data

If data warehouse is connected:

  1. Query the necessary data
  2. Embed the results as JSON within the HTML file

If data is pasted or uploaded:

  1. Parse and clean the data
  2. Embed as JSON in the dashboard

If working from a description without data:

  1. Create a realistic sample dataset matching the described schema
  2. Note in the dashboard that it uses sample data
  3. Provide instructions for swapping in real data

3. Design the Dashboard Layout

Follow a standard dashboard layout pattern:

┌──────────────────────────────────────────────────┐
│  Dashboard Title                    [Filters ▼]  │
├────────────┬────────────┬────────────┬───────────┤
│  KPI Card  │  KPI Card  │  KPI Card  │ KPI Card  │
├────────────┴────────────┼────────────┴───────────┤
│                         │                        │
│    Primary Chart        │   Secondary Chart      │
│    (largest area)       │                        │
│                         │                        │
├─────────────────────────┴────────────────────────┤
│                                                  │
│    Detail Table (sortable, scrollable)           │
│                                                  │
└──────────────────────────────────────────────────┘

Adapt the layout to the content:

4. Build the HTML Dashboard

Generate a single self-contained HTML file that includes:

Structure (HTML):

Styling (CSS):

Interactivity (JavaScript):

Data (embedded JSON):

5. Implement Chart Types

Use Chart.js for all charts. Common dashboard chart patterns:

6. Add Interactivity

Filters:

// All filters update a central filter state
// Charts and tables re-render when filters change
function applyFilters() {
  const filtered = data.filter((row) => matchesFilters(row));
  updateKPIs(filtered);
  updateCharts(filtered);
  updateTable(filtered);
}

Table sorting:

Tooltips:

7. Save and Open

  1. Save the dashboard as an HTML file with a descriptive name (e.g., sales_dashboard.html)
  2. Open it in the user's default browser
  3. Confirm it renders correctly
  4. Provide instructions for updating data or customizing

Output Template

The generated HTML file follows this structure:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>[Dashboard Title]</title>
    <script
      src="https://cdn.jsdelivr.net/npm/chart.js@4.5.1"
      integrity="sha384-jb8JQMbMoBUzgWatfe6COACi2ljcDdZQ2OxczGA3bGNeWe+6DChMTBJemed7ZnvJ"
      crossorigin="anonymous"
    ></script>
    <style>
      /* Professional dashboard CSS */
    </style>
  </head>
  <body>
    <div class="dashboard">
      <header><!-- Title and filters --></header>
      <section class="kpis"><!-- KPI cards --></section>
      <section class="charts"><!-- Chart containers --></section>
      <section class="details"><!-- Data table --></section>
    </div>
    <script>
      const DATA = [
        /* embedded JSON data */
      ];
      // Dashboard initialization and interactivity
    </script>
  </body>
</html>

Tips

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.