Performance Budget Planner
Creates page budgets for JavaScript, CSS, images, fonts, third-party scripts, and Core Web Vitals targets.
Skill summary
Copy-ready skill file
Paste this into your assistant rules file
Recommended targets: AGENTS.md, CLAUDE.md, .cursorrules, .github/copilot-instructions.md
# Performance Budget Planner ## Purpose Creates page budgets for JavaScript, CSS, images, fonts, third-party scripts, and Core Web Vitals targets. ## When to Use - **"performance budget"** — Covers set budgets. - **"page weight"** — Covers prevent regressions. - **"JS budget"** — Covers prioritize optimizations. - **"speed target"** — Covers set budgets. ### AGENTS.md ```markdown # Performance Budget Planner — AI Assistant Rules # Place this file in your project root as AGENTS.md Creates page budgets for JavaScript, CSS, images, fonts, third-party scripts, and Core Web Vitals targets. ``` ## Operating Instructions 1. Measure first: record the metric, the device class and the conditions 2. Rank the causes by how much time they actually cost, not by how easy they look to fix 3. Separate main-thread work from network work, and attack the larger one 4. Apply the fix, then re-measure under identical conditions 5. Watch for regressions in the other metrics the change could have affected 6. Record the before and after numbers, and add the number to your budget ## Example Prompts - `"performance budget"` - `"page weight"` - `"JS budget"` ## Verification Checklist - [ ] A before and after measurement exists, taken the same way both times - [ ] The target metric moved in the intended direction and nothing else regressed - [ ] The change is covered by a budget or a check that will catch a regression - [ ] Any third-party cost is included in the numbers rather than ignored - [ ] The skill file is placed at `AGENTS.md` in the project root - [ ] Tested with Claude to confirm the rules load and fire ## Integration Guide Combine with **Analytics Tracker** to measure before/after metrics, or with **SEO Auditor** to check performance impact on SEO. ## Primary Use Cases - Set budgets - Prevent regressions - Prioritize optimizations ## Difficulty **Intermediate** — assumes you already work in this area; read the rules before pasting them in.
With the Performance Budget Planner rules in AGENTS.md, ask:
“performance budget”
The assistant then takes on set budgets — the approach, the checks and the shape of the answer are fixed by the file before the first token is written.
What it is for
- Set budgets
- Prevent regressions
- Prioritize optimizations
4 ways to trigger it
Skills in this category begin with a measurement and rank the causes by cost, not by how interesting they are to fix. They separate the main thread from the network, because a slow page is usually one of those two and the fixes barely overlap. The output tends to be a list of bottlenecks with the measurement that proves each one.
Practices that matter in Performance work
- Measure before changing anything. A guessed optimisation is a guess with a commit attached.
- Profile on a throttled device. Desktop numbers hide the experience most people actually get.
- Find the largest cost first. One 300ms blocking script beats eight 20ms ones you can never see in a list.
- Watch the main thread, not only the network. Hydration, layout and long tasks show up there.
- Set a budget and keep it in CI. A performance budget nobody enforces is a wish.
Start with AGENTS.md.
| Assistant | Rules file |
|---|---|
| Claude | CLAUDE.md |
| Cursor | .cursorrules |
| Windsurf | .windsurfrules |
| OpenCode | AGENTS.md |
| Cline | .clinerules |
| GitHub Copilot | .github/copilot-instructions.md |
| Continue | .continuerc.json |
| Aider | .aider.conf.yml |
| Cody | .cody.json |
| Amazon Q | .amazon-q.json |
CLAUDE.md.cursorrules.github/copilot-instructions.md- What does the Performance Budget Planner skill do?
- Creates page budgets for JavaScript, CSS, images, fonts, third-party scripts, and Core Web Vitals targets. The copy-ready file above carries the full rule set, the trigger phrases and the checks the assistant runs before it hands work back.
- How do I trigger the Performance Budget Planner skill?
- Ask for the work using one of its trigger phrases — for example “performance budget”, “page weight”, “JS budget”. Once the rules file is in place, assistants that read it also pick the skill up without the phrase.
- Which files should hold the Performance Budget Planner skill?
- AGENTS.md, CLAUDE.md, .cursorrules, .github/copilot-instructions.md. AGENTS.md is the one to start with; the rest exist so the same rules load in whichever assistant your team uses.
- Which assistants support the Performance Budget Planner skill?
- Claude, Cursor, Windsurf, OpenCode, Cline, GitHub Copilot, Continue, Aider, Cody, Amazon Q. Any assistant that reads a plain-text rules file can use it, so the format matters more than the product.
- Is the Performance Budget Planner skill hard to set up?
- It is rated intermediate. It assumes you already work in this area, so read the rule set once before pasting it in.
- What can I actually use the Performance Budget Planner skill for?
- The documented jobs are set budgets, prevent regressions, prioritize optimizations. Beyond those it still works — the rule set is instructions, and assistants follow it past the examples you give it.
- Does the Performance Budget Planner skill send my code anywhere?
- No. The file is static text in your repository. What happens to your code afterwards depends on the assistant you run it in and that provider's own data policy.
Related Skills
React Perf Optimizer
Optimizes React/Next.js performance — eliminates waterfalls, reduces bundle size, optimizes server/client rendering, and prevents unnecessary re-renders.
View skillCore Web Vitals Optimizer
Improves LCP, INP, CLS, TTFB, image loading, script strategy, and real-user performance metrics.
View skillBundle Size Auditor
Finds heavy dependencies, client bundle leaks, duplicate chunks, and opportunities for dynamic imports.
View skillImage Performance Optimizer
Optimizes formats, dimensions, lazy loading, decoding, responsive images, CDN transforms, and hero media.
View skill