Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds and fixes slow page performance by analyzing captured or user-supplied Firefox profiles for layout thrashing and heavy JavaScript.
52% 57%+4 ptsof test cases passed
Passed 13 of 23 test cases with the skill, and 12 of 23 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
79 agent runs
1 forkA fork is a copy of this skill that someone made so they could edit it for their own use. The original doesn't change.
Work from a real profile, find the cause in the user's code, report it honestly, and if asked, fix it and prove the fix worked. The Firefox MCP drives Firefox and records a profile when there is none yet; profiler-cli queries the profile, whether you captured it or the user brought it. Report in web-platform terms (LCP, main-thread blocking, reflow, render-blocking resources), not Gecko internals - unless the target is Firefox itself rather than a page, in which case platform frames are the subject and the fix lands in mozilla-central.
profiler-cli needs Node.js >= 24:
command -v profiler-cli >/dev/null 2>&1 || npm install -g @firefox-devtools/profiler-cli@latest
npx @firefox-devtools/profiler-cli@latest also works but re-resolves on every call.
The rest of this step is only for capturing. Skip it when the user already has a profile.
The profiler tools need Firefox 154+. Check with get_firefox_info, which also launches it. If Firefox is missing or older, stop and ask the user to install a current release or point the server at one with --firefox-path. The profiler tools also need the developer tool preset: if profiler_start is absent, ask the user to restart the server with --tool-preset developer, since the default basic preset has no profiler.
If the user already has a profile - a saved .json.gz, or a share.firefox.dev / profiler.firefox.com link - there is nothing to capture: skip to Step 3 and load it directly. Ask what they were doing while it recorded, since the capture type decides the entry point in the playbook. Verifying a fix (Step 6) still needs a capture, so if you cannot reach their setup, hand them the recipe and ask for an after profile.
Otherwise ask if unclear: page load, interaction / STR (one slow action), or ongoing jank (scroll stutter, dropped frames, CPU pinning). Each has a recipe in references/capture-recipes.md.
Follow that recipe. Keep the window tight - start late, stop early - and keep the profile path profiler_stop returns.
profiler-cli guide and read the entire output; it is the command reference for everything below. Do not skim, and make sure that Bash did not truncate it.profiler-cli load <path>, or profiler-cli load <share-url> for a profile the user shared.references/analysis-playbook.md: thread selection, the entry point for each capture type, and a symptom-to-command map.Run the commands and interpret the output yourself; do not print commands for the user to run.
Grep/Glob/Read the project for the code behind a hot function or request, and confirm the mechanism. If you cannot connect a finding to real source, say so instead of inventing a code path.
Label every finding:
performance.measure you captured). State the evidence.Next to this one in the catalogue, plus more from the same author.