perf-dashboard
Skill2 starsChanged 6 months agoMITView on GitHub
Generate an interactive local HTML dashboard from Firebase Performance query results. Shows worst-performing screens, highest-volume screens, and 30-day trends with Chart.js. TRIGGER when: user asks for a dashboard, visualization, chart, report, HTML output, "show me the results", or "open dashboard" after running /perf-query. SKIP if: user hasn't run /perf-query yet (no .perf/data/ exists), or if they're asking to fetch new data (use /perf-query) or fix a screen (use /perf-fix).
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- perf-fixSkill
- perf-querySkill
- perf-setupSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 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.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Check that these files exist:
- Very specific: line 29
If any are missing, STOP: "Query data not found.
- Distinctive: line 48
If the script is not found, assemble the dashboard manually:
- Very specific: line 49
Read the dashboard-template.html from the skill directory
- Distinctive: line 60
If the script didn't auto-open, open manually:
- Very specific: line 72
Read .perf/data/screen_summary.json.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Firebase Performance Dashboard
Generate a self-contained HTML dashboard from BigQuery performance data. This skill uses a helper script for deterministic template assembly.
IMPORTANT: Autonomous Execution
Run all steps without asking for confirmation. Verify data, assemble dashboard, open in browser, and print summary — all in one go. Only pause if data files are missing (tell the user to run /perf-query first). Do NOT ask "Ready to proceed?" or "Should I open the dashboard?"
Step 1: Verify Data Exists
Check that these files exist:
.perf/config.json.perf/data/screen_summary.json.perf/data/app_daily_trend.json.perf/data/query_metadata.json
If any are missing, STOP: "Query data not found. Run /perf-query first."
Step 2: Assemble Dashboard
Locate and run the assembly script. Check these paths in order:
.claude/skills/perf-dashboard/scripts/assemble_dashboard.shskills/perf-dashboard/scripts/assemble_dashboard.sh
bash {script_path}/assemble_dashboard.sh .The script:
- Reads all data JSON files from
.perf/data/ - Reads the
dashboard-template.htmlfrom its own skill directory - Injects the data into template placeholders
- Writes
.perf/dashboard.html - Auto-opens in the default browser
If the script is not found, assemble the dashboard manually:
- Read the
dashboard-template.htmlfrom the skill directory - Replace
{{SCREEN_SUMMARY_JSON}}with contents of.perf/data/screen_summary.json - Replace
{{SCREEN_DAILY_JSON}}with contents of.perf/data/screen_daily.json(or[]if missing) - Replace
{{APP_TREND_JSON}}with contents of.perf/data/app_daily_trend.json - Replace
{{QUERY_METADATA_JSON}}with contents of.perf/data/query_metadata.json - Replace
{{APP_ID}},{{PLATFORM}},{{TABLE_NAME}}from.perf/config.json - Replace
{{GENERATED_AT}}with current ISO timestamp - Write to
.perf/dashboard.html
Step 3: Open in Browser
If the script didn't auto-open, open manually:
if [[ "$OSTYPE" == "darwin"* ]]; then open .perf/dashboard.html
elif [[ "$OSTYPE" == "linux"* ]]; then xdg-open .perf/dashboard.html 2>/dev/null
elif [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "cygwin"* ]]; then explorer.exe .perf/dashboard.html 2>/dev/null
else echo "Open .perf/dashboard.html in your browser"
fiStep 4: Print Summary
Read .perf/data/screen_summary.json. Each row has fields: screen_name, frozen_frames_pct, slow_render_pct, total_samples, plus a daily breakdown. Numeric fields come back as strings — cast with float() before arithmetic.
Rank the top 5 worst screens by composite score (frozen * 0.6 + slow * 0.4). For "highest volume," sort descending on total_samples.
Dashboard generated at .perf/dashboard.html
Quick stats:
- {N} screens analyzed
- Worst screen: {name} (frozen: {X}%, slow: {Y}%)
- Highest volume: {name} ({N} samples)
- 30-day trend: frozen {direction}, slow render {direction}
Top 5 worst performing:
1. {name} — frozen: {X}%, slow: {Y}%
2. {name} — frozen: {X}%, slow: {Y}%
3. {name} — frozen: {X}%, slow: {Y}%
4. {name} — frozen: {X}%, slow: {Y}%
5. {name} — frozen: {X}%, slow: {Y}%That's it — this is the end of the main workflow. If the developer wants to go further and fix issues in the code, they can run /perf-fix {worst screen name} as an optional next step. Do not suggest this unless they ask — the dashboard is the deliverable.
Error Handling
| Error | Action |
| Data files missing | "Run /perf-query first to fetch performance data." |
| Template not found | "Dashboard template not found. Reinstall the perf-dashboard skill." |
| python3 not available | "Python 3 is required for dashboard assembly. Install from python.org." |
| Browser open fails | "Dashboard saved to .perf/dashboard.html — open it manually in your browser." |
| Empty screen summary | "No screen data to display. Run /perf-query to refresh." |
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.

