Compare page speed before and after a release
Lab metrics for your key pages after each production deploy, with each page that got slower.
- On an event: When a new production deploy finishes
What it does
The task
Check Netlify for a production deploy of the site site name that finished since the last run. When there is one, run PageSpeed Insights for mobile on each URL in this list: urls. Read the performance score, LCP, TBT, CLS and the page weight. Add a row per URL to the Google Sheet sheet url with the deploy ID. Send me the URLs where LCP is more than 10% slower than in the last row or CLS is above 0.1, with the top 2 fixes from the report.
- It works in Netlify, PageSpeed Insights and Google Sheets, in the workspace you pick, and signs in with passwords from your Cuiar vault.
- A routine checks every 15 minutes and acts on what is new: when a new production deploy finishes.
What you give it
| Blank | What to give | Example |
|---|---|---|
| site name | The Netlify site name | brightleaf-marketing |
| urls | The pages to test, separated by commas | https://brightleaf.app/, https://brightleaf.app/pricing, https://brightleaf.app/blog |
| sheet url | The Google Sheet that keeps the history | https://docs.google.com/spreadsheets/d/1SpeedHistory |
What you get back
An example run with the example values above. Your run uses your own data.
Deploy 6728c1f of brightleaf-marketing, 4 Nov 15:20. 3 URLs, mobile
| URL | Score | LCP | TBT | CLS |
|---|---|---|---|---|
| / | 92 (was 94) | 2.1 s | 120 ms | 0.02 |
| /pricing | 71 (was 89) | 3.9 s (was 2.4 s) | 310 ms | 0.04 |
| /blog | 88 | 2.6 s | 90 ms | 0.18 (was 0.05) |
Slower: /pricing. Fixes: the hero image is 1.4 MB, and the font CSS blocks rendering.
CLS above 0.1: /blog. Fix: give the newsletter box a fixed height.
Run it in Cuiar
- 01
Open it
Click Use in Cuiar on this page. The side panel opens with the task in the composer.
- 02
Fill in 3 blanks
Type site name, urls and sheet url. Tab moves to the next blank.
- 03
Run it, then repeat it
Run sends it once. To run it when a new production deploy finishes, make a routine on cuiar.com/routines or with the CLI below.
As a routine, from the terminal
cuiar routines create "Compare page speed before and after a release" --schedule "*/15 * * * *" --time-zone Europe/Berlin \
"Check Netlify for a production deploy of the site brightleaf-marketing that finished since the last run. When there is one, run PageSpeed Insights for mobile on each URL in this list: https://brightleaf.app/, https://brightleaf.app/pricing, https://brightleaf.app/blog. Read the performance score, LCP, TBT, CLS and the page weight. Add a row per URL to the Google Sheet https://docs.google.com/spreadsheets/d/1SpeedHistory with the deploy ID. Send me the URLs where LCP is more than 10% slower than in the last row or CLS is above 0.1, with the top 2 fixes from the report."Run it from your AI agent
Claude Code, Codex, Cursor and other MCP clients reach Cuiar at https://mcp.cuiar.com/mcp. Add the server one time, then ask for the task in plain words, or call create_routine yourself.
1. Add Cuiar to Claude Code
claude mcp add --transport http cuiar https://mcp.cuiar.com/mcp2. Ask your agent
Use the Cuiar tool create_routine to run my "Compare page speed before and after a release" template with site name = brightleaf-marketing; urls = https://brightleaf.app/, https://brightleaf.app/pricing, https://brightleaf.app/blog; sheet url = https://docs.google.com/spreadsheets/d/1SpeedHistory.Setup for other agents: AI agents.
The tool call
{
"name": "create_routine",
"arguments": {
"name": "Compare page speed before and after a release",
"task": "Check Netlify for a production deploy of the site brightleaf-marketing that finished since the last run. When there is one, run PageSpeed Insights for mobile on each URL in this list: https://brightleaf.app/, https://brightleaf.app/pricing, https://brightleaf.app/blog. Read the performance score, LCP, TBT, CLS and the page weight. Add a row per URL to the Google Sheet https://docs.google.com/spreadsheets/d/1SpeedHistory with the deploy ID. Send me the URLs where LCP is more than 10% slower than in the last row or CLS is above 0.1, with the top 2 fixes from the report.",
"schedule": "*/15 * * * *",
"time_zone": "Europe/Berlin"
}
}Related templates
All engineering templatesEngineering
Find broken links on your website
Every link and image that returns an error, with the page it is on and the link text, in a sheet.
You start it: When you start it- Any website
- Google Sheets
Engineering
Find flaky tests in your CI runs
Tests that fail and then pass on the same commit, with the count and the error, from your recent runs.
You start it: When you start it- GitHub
- Google Sheets
Engineering
Find the cause of a jump in your cloud bill
This month's cost per service against last month, with the resources that grew the most.
You start it: When you start it- Any admin panel
- Google Sheets
Engineering
Test redirects after a site migration
Each old URL checked against its new target, with wrong targets, temporary redirects and chains marked.
You start it: When you start it- Google Sheets
- Any website
Data
Fill in each new row of a sheet
The missing fields from official sources, with a source link for each value.
On an event: When a row is added to the sheet- Google Sheets
ResearchOdyssey
Estimate the size of a market
A top-down and a bottom-up estimate, with the source for each number and each step of the math.
You start it: When you start it- Any government site
- Google Scholar
- Google Sheets