Performance budget lab

From TheGoat395/Codex-Skills · View interactive version

Performance budget lab is an AI agent skill from the GitHub repository TheGoat395/Codex-Skills. Set performance budgets before implementation.

How to use this skill

Skill file

Performance Budget Lab

Use this skill to keep visually rich sites fast.

Own the budget and acceptance policy. Route measured runtime diagnosis, implementation fixes, and React/Next performance work to $performance-audit-websites.

Budget Areas

Workflow

  1. Identify stack and deployment target.
  2. Inspect package dependencies and route structure.
  3. Define route, hardware/device, network/cache state and measurement method.
  4. Run Lighthouse or browser performance checks when feasible.
  5. Check Core Web Vitals (LCP, CLS, INP) and supporting diagnostics such as TTFB; choose metrics that measure the budgeted user experience.
  6. Set media/JavaScript/font budgets from the intended experience and baseline evidence.
  7. Prefer CSS and Motion for small interactions; reserve GSAP/R3F/video for clear value.
  8. Report tradeoffs honestly when visual richness costs performance.

Use Lighthouse or browser checks here to validate a budget decision, not to take ownership of deep runtime diagnosis. When the work shifts from setting thresholds to locating and repairing the bottleneck, hand off to $performance-audit-websites.

Output

Give:

Scope and evidence

Output a budget contract: route/device class, hardware, network/cache state, metric, threshold, test method and reconsideration condition. Route measured diagnosis/optimization to $performance-audit-websites; a budget-only request does not implement repairs.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.