Frontend Speed Optimizer
Automatically improves frontend page speed by iteratively analyzing Lighthouse reports and applying targeted optimizations. This loop runs until your target…
This loop is republished with attribution. Full credit and the original content belong to the source linked above.
AI Skill Market Insights
Real data. Real impact.
Emerging
Developers
Kickoff Prompt
Copy this prompt and run it with your agent to start the loop.
Start the "Frontend Speed Optimizer" loop.
Goal: Improve page speed to reach target Lighthouse score
Max iterations: 10
Between iterations run: lighthouse
Exit when: Lighthouse target reached
I want to optimize the frontend performance of my website. Please run Lighthouse on the provided URL and target a final performance score of 90. Identify the top 3 opportunities from the initial audit and implement them. After each change, re-run Lighthouse to verify progress. Stop once the target score is reached or after 10 attempts.
Self-pace this loop. After each iteration, run `lighthouse` and evaluate the output, and only continue if the exit condition is not met (Lighthouse target reached). Stop when the exit condition passes or 10 iterations are reached. Give a short status update each pass.