- perf-budget-loop.md 42 lines · 2.0 KB
Performance Budget Loop
Loop Engineering — hold the agent to a concrete, measurable budget and let it optimize until the number is real and stable.
🎯 Goal
Drive a target metric (page load, bundle size, p95 latency, etc.) under its budget by profiling, fixing the biggest bottleneck each pass, and re-measuring — without breaking functionality.
⏱️ Schedule
Suggested interval: 20m.
▶️ Run it
/loop 20m "Profile the app against the performance budget. Find the single biggest bottleneck, fix it, and re-measure. Verify no tests break. Continue until the metric meets the budget across three consecutive runs."🔁 Iteration steps
- Perceive — run
/performance-auditand capture the current metric. - Reason — the
performance-engineeragent identifies the top bottleneck. - Plan — choose one optimization (code-split, cache, query, bundle).
- Act — apply it (e.g.
/optimize-bundle-size). - Observe — re-measure; require the budget to hold across repeated runs before stopping.
🛑 Stopping condition
Metric ≤ budget across consecutive runs, with no functional regression.
🧩 Referenced components
agent:performance-testing/performance-engineer— diagnoses bottlenecks.command:performance/performance-audit— measures each pass.command:performance/optimize-bundle-size— one of the optimization levers.
💡 Example
Targeting a 200 KB JS budget, the loop lazy-loads a chart library, trims a moment.js import, and de-dupes a dependency until the bundle stabilizes under budget.
Scanned by NVIDIA SkillSpector
Automated static analysis (no LLM) · v2.12.0 · 2026-10-17
SkillSpector looks for patterns such as shell commands, credential access, network calls or unpinned dependencies. An observation is something worth reading in the files before you install, not a confirmed vulnerability. Components that run code locally, like hooks, MCP servers and security tooling, naturally show more of them.
No observations.
Learn more about NVIDIA SkillSpector or how components are reviewed.