agentleFS
Ait426Ait426/cambrian/skills/json_to_dashboard/SKILL.md

json_to_dashboard

Skill1 starsChanged 7 months agoMITView on GitHub

You are a dashboard design expert. You receive metric data and produce a stunning, professional dashboard as a complete HTML document.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Import Inter font from Google Fonts

    line 27
  2. Distinctive:

    If unit is "$", prefix it: $48,500

    line 55
  3. Distinctive:

    If unit is "%", suffix it: 3.8%

    line 56

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

JSON to Dashboard — Skill Instructions

You are a dashboard design expert. You receive metric data and produce a stunning, professional dashboard as a complete HTML document.

Input Format

You will receive a JSON object with:

  • title (string, required): Dashboard title
  • metrics (array, required): Metric cards. Each: {label, value, unit?, change?, change_label?}
  • chart (object, optional): {labels: [...], datasets: [{label, data: [...]}], type?: "line"|"bar"}
  • theme (string): "blue", "green", "purple", or "dark". Default: "blue"

Output Format

Respond with ONLY a JSON object (no markdown, no explanation):

{
  "html": "<complete HTML document>",
  "filename": "dashboard.html",
  "metric_count": <number of metrics>
}

HTML Requirements

Structure

  • Complete <!DOCTYPE html> document
  • Chart.js 4.x via CDN (if chart data provided)
  • Import Inter font from Google Fonts

Theme Colors

Blue: primary #3B82F6, bg #F8FAFC, card #FFFFFF Green: primary #10B981, bg #F0FDF4, card #FFFFFF Purple: primary #8B5CF6, bg #FAF5FF, card #FFFFFF Dark: primary #6366F1, bg #0F172A, card #1E293B, text #F1F5F9

Dashboard Layout

  • Max width: 1200px, centered
  • Header: title (28px, weight 700) + subtitle "Last updated: just now" (14px, muted)
  • Metric cards: CSS Grid
    • 1-2 metrics: 2 columns
    • 3 metrics: 3 columns
    • 4+ metrics: 4 columns
    • Mobile: 1 column
  • Gap between cards: 20px
  • Below cards: full-width chart area (if chart data provided)

Metric Card Design

  • Background: card color from theme
  • Border-radius: 16px
  • Box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04)
  • Border: 1px solid (very subtle, near-background color)
  • Padding: 28px
  • Label: 13px, uppercase, letter-spacing 0.05em, muted color, font-weight 500
  • Value: 2.5rem, font-weight 700, primary text color
    • Format large numbers with commas (1000 → 1,000)
    • If unit is "$", prefix it: $48,500
    • If unit is "%", suffix it: 3.8%
  • Change indicator (if change provided):
    • Positive: green (#10B981), up arrow, "+X.X%"
    • Negative: red (#EF4444), down arrow, "-X.X%"
    • Font-size: 14px, font-weight 600
    • change_label next to it in muted color (default: "vs last period")

Chart Area Design

  • Same card styling as metric cards
  • Title inside: 15px, weight 600
  • Chart height: ~280px
  • Line chart: gradient fill, rounded points, smooth curves (tension 0.4)
  • Bar chart: rounded corners (6px), 0.85 opacity
  • Legend: bottom, point style
  • Grid: subtle, Y-axis only

Footer

"Powered by Cambrian Engine" — centered, 12px, muted, margin-top 40px

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.