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.
In this repository14 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- api_docSkill
- code_reviewSkill
- crash_skillSkill
- csv_to_chartSkill
- data_cleanerSkill
- email_draftSkill
- expense_reportSkill
- hello_worldSkill
- inventory_anomaly_reportSkill
- landing_pageSkill
- meeting_summarySkill
- seo_metaSkill
- slow_skillSkill
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
- Distinctive: line 27
Import Inter font from Google Fonts
- Distinctive: line 55
If unit is "$", prefix it: $48,500
- Distinctive: line 56
If unit is "%", suffix it: 3.8%
≈ “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.
Files
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 titlemetrics(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
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
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.

