Agent skill

Performance Budget

by mohitagw15856 in mohitagw15856/pm-claude-skills

Define and document performance budgets for a web service or application.

MITAuto-check passedFrontend & Design

Install Performance Budget

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill performance-budget -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills performance-budget --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/performance-budget .claude/skills/performance-budget && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
performance-budget
GitHub stars
1.4k
Token cost
~3.1k tokens
SKILL.md length
1,443 words
Files
1
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Define and document performance budgets for a web service or application.

  • Asked to set performance targets
  • SKILL.md covers Required Inputs, Output Format, Overview and Key User Journeys, plus 9 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Define SLOs for latency

What it does

Performance Budget is an agent skill from mohitagw15856/pm-claude-skills. Define and document performance budgets for a web service or application. Use when asked to set performance targets, define SLOs for latency or throughput, establish Core Web Vitals targets, create a performance baseline, or document performance regression policy. Produces a structured performance budget covering key user journeys, Core Web Vitals, backend latency SLOs, measurement tooling, CI enforcement, and breach response process.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Frontend & Design, covering Web performance. The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked to set performance targets
  • Define SLOs for latency
  • Establish Core Web Vitals targets
  • Create a performance baseline

Example prompts

  • “/performance-budget”

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are bash and json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Performance Budget loads about 3.1k tokens when it runs. Until then it costs about 114 tokens; SKILL.md has 1,443 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~114
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 1,443 words, ~3,098 tokens.

Download SKILL.mdSave it as .claude/skills/performance-budget/SKILL.md (or your agent's skills folder).
name
performance-budget
description
Define and document performance budgets for a web service or application. Use when asked to set performance targets, define SLOs for latency or throughput, establish Core Web Vitals targets, create a performance baseline, or document performance regression policy. Produces a structured performance budget covering key user journeys, Core Web Vitals, backend latency SLOs, measurement tooling, CI enforcement, and breach response process.

Performance Budget Skill

Produce a complete, actionable performance budget document for a web service or application. A performance budget is not a wishlist — it is a set of measurable, enforced constraints that define what "acceptable performance" means and who is responsible when those constraints are violated.

A good performance budget answers: what are the targets, how are they measured, what triggers an investigation, and what happens when a budget is breached.

Required Inputs

Ask for these if not already provided:

  • Service name and type — web app, API service, mobile app, or combination
  • Key user journeys — the 3–5 most important flows users take (e.g. "search → product page → checkout")
  • Current baseline metrics — P50/P95/P99 latency, LCP, CLS, INP if available (state "no baseline" if not collected yet)
  • Tech stack — frontend framework, backend language/framework, CDN, database
  • Deployment environment — cloud provider, region(s), edge/CDN configuration
  • Cost constraints — any budget or infrastructure limits that affect headroom

Output Format


Performance Budget: [Service Name]

Service: [Name] | Team: [Team name] Last updated: [Date] | Owner: [Name / role] Environment: [Production / Staging baseline] | Review cadence: [Quarterly / per-sprint]


Overview

[2–3 sentences describing the service, its user-facing performance requirements, and why performance is a priority. Reference the business impact of latency — e.g. conversion rate, user retention, SLA obligations.]

Performance philosophy: [e.g. "Performance is a feature. Every engineer is responsible for keeping the service within budget. Regressions must be caught in CI before they reach production."]


Key User Journeys

Define the critical paths that the performance budget is designed to protect.

Journey IDJourney nameEntry pointExit pointCriticality
UJ-1[e.g. New user sign-up][Landing page][Dashboard]Critical
UJ-2[e.g. Core workflow task][e.g. /app/tasks][e.g. Task complete]High
UJ-3[e.g. Search and select][e.g. /search][e.g. Detail page]High
UJ-4[e.g. API data fetch][e.g. GET /api/items][e.g. 200 response]Medium

Frontend Performance Budget

Complete this section for web and mobile applications. Skip for API-only services.

Core Web Vitals Targets

Targets apply to the 75th percentile of real user sessions (field data), measured on a mid-range Android device on a 4G connection unless otherwise stated.

MetricDescriptionGoodNeeds ImprovementPoorOur TargetCurrent baseline
LCPLargest Contentful Paint — perceived load speed≤2.5s2.5–4.0s>4.0s[≤X.Xs][Xs / not measured]
INPInteraction to Next Paint — responsiveness≤200ms200–500ms>500ms[≤Xms][Xms / not measured]
CLSCumulative Layout Shift — visual stability≤0.10.1–0.25>0.25[≤0.X][X.XX / not measured]
FCPFirst Contentful Paint≤1.8s1.8–3.0s>3.0s[≤X.Xs][Xs / not measured]
TTFBTime to First Byte≤800ms800ms–1.8s>1.8s[≤Xms][Xms / not measured]
Page Weight Budget
Asset typeMax size (compressed)CurrentStatus
Total page weight[e.g. 500KB][XKB / unknown][Within / Over / Unknown]
JavaScript (initial load)[e.g. 200KB][XKB / unknown][Within / Over / Unknown]
CSS[e.g. 50KB][XKB / unknown][Within / Over / Unknown]
Images (above fold)[e.g. 150KB][XKB / unknown][Within / Over / Unknown]
Web fonts[e.g. 50KB][XKB / unknown][Within / Over / Unknown]
Third-party scripts[e.g. 100KB][XKB / unknown][Within / Over / Unknown]
Per-Journey Frontend Targets
JourneyLCPINPCLSFCPTTFB
UJ-1: [Journey name][≤Xs][≤Xms][≤0.X][≤Xs][≤Xms]
UJ-2: [Journey name][≤Xs][≤Xms][≤0.X][≤Xs][≤Xms]
UJ-3: [Journey name][≤Xs][≤Xms][≤0.X][≤Xs][≤Xms]

Backend Performance Budget

API Latency SLOs

Targets measured at the service boundary (not including client-side network latency).

Endpoint / operationMethodP50P95P99Max (hard limit)Error rate
[e.g. /api/auth/login]POST[≤Xms][≤Xms][≤Xms][≤Xms][<X%]
[e.g. /api/items]GET[≤Xms][≤Xms][≤Xms][≤Xms][<X%]
[e.g. /api/items/:id]GET[≤Xms][≤Xms][≤Xms][≤Xms][<X%]
[e.g. /api/items]POST[≤Xms][≤Xms][≤Xms][≤Xms][<X%]
[e.g. Background job: sync]—[≤Xs][≤Xs][≤Xs][≤Xs][<X%]

Overall service SLOs:

SLOTargetMeasurement window
Availability[99.X%]30-day rolling
P95 latency (all endpoints)[≤Xms]30-day rolling
Error rate (5xx)[<X%]30-day rolling
Throughput (sustained)[≥X req/s]Peak hour
Database Query Budget
Query / operationP50P95MaxNotes
[e.g. User lookup by ID][≤Xms][≤Xms][≤Xms]Index on user_id
[e.g. List items for user][≤Xms][≤Xms][≤Xms]Paginated, max 100 rows
[e.g. Full-text search][≤Xms][≤Xms][≤Xms]Elasticsearch / pg_trgm

Measurement Methodology

Real User Monitoring (RUM)

Tool: [e.g. Google CrUX, SpeedCurve, Datadog RUM, Sentry Performance, custom] Data source: [Field data from real users / Lab data from synthetic tests / Both] Sample rate: [X% of sessions] How to access: [Dashboard URL or tool access instructions]

What is measured:

  • Core Web Vitals (LCP, INP, CLS) per page and journey
  • Custom performance marks for business-critical interactions
  • Resource timing for key assets
  • Long tasks (>50ms on main thread)
Synthetic Monitoring

Tool: [e.g. Lighthouse CI, WebPageTest, k6, Artillery, Playwright with performance assertions] Frequency: [Every X minutes / on every deploy / nightly] Test location(s): [e.g. eu-west-1, us-east-1] Device profile: [Desktop 10Mbps / Mobile 4G Moto G4 / both]

Synthetic test suite location: [Link to test files]

Backend Observability

APM tool: [e.g. Datadog, Grafana + Prometheus, New Relic, AWS X-Ray] Metrics collected:

  • Request rate, error rate, duration (RED metrics) per endpoint
  • Database query duration and connection pool utilisation
  • Cache hit/miss rates
  • Background job queue depth and processing latency

Dashboard: [Link to primary performance dashboard]


CI/CD Performance Enforcement

Performance budgets are enforced at two gates:

Gate 1 — Build-time Bundle Analysis

Tool: [e.g. bundlesize, size-limit, webpack-bundle-analyzer with CI assertion] Config file: [[.bundlesizerc / .size-limit.js / etc.]] Trigger: Every PR targeting main Blocking: Yes — PR cannot merge if bundle size budget is exceeded

json
// Example .size-limit.js
[
  {
    "path": "dist/js/*.js",
    "limit": "200 KB"
  },
  {
    "path": "dist/css/*.css",
    "limit": "50 KB"
  }
]
Show full SKILL.md (585 more words)Show less
Gate 2 — Synthetic Performance Tests in CI

Tool: [e.g. Lighthouse CI, k6, Artillery] Trigger: On deploy to staging Blocking: Yes — production deploy is blocked if thresholds fail Thresholds checked:

  • LCP ≤ [Xs]
  • CLS ≤ [0.X]
  • P95 API latency ≤ [Xms]
  • Error rate < [X%]

CI config location: [[.github/workflows/perf.yml / ci/performance.yaml]]

How to run locally:

bash
# Run Lighthouse CI against local build
[command — e.g. lhci autorun --config=lighthouserc.js]

# Run load test locally
[command — e.g. k6 run load-tests/api-smoke.js]

Budget Breach Response Process

A budget breach is when a measured metric exceeds its target for [X consecutive measurements / X minutes sustained / a single deploy].

Breach Severity Levels
SeverityConditionResponse timeWho acts
P1 — Critical>2× budget threshold in productionImmediateOn-call engineer + team lead
P2 — High>1.5× budget threshold in productionWithin 4 hoursOn-call engineer
P3 — MediumThreshold exceeded in productionWithin 1 sprintPR author + team
P4 — LowThreshold exceeded in staging onlyBefore mergePR author
Breach Investigation Checklist

When a breach is detected, work through this checklist in order:

1. Identify the regression commit

bash
# Compare performance across recent deploys
[command — e.g. datadog metrics query, lighthouse-ci compare, git bisect]

2. Classify the breach

  • Is this a code change? (new feature, refactor, dependency bump)
  • Is this an infrastructure change? (new instance type, config change)
  • Is this an external factor? (CDN issue, DNS, upstream dependency)
  • Is this a measurement anomaly? (test environment issue, sample size)

3. Immediate actions

  • If P1/P2 in production and a code cause is confirmed: roll back or disable the feature flag
  • If cause is unknown: do not roll back immediately — gather more data first
  • Notify [#performance / #incidents Slack channel] with: metric name, current value, budget target, suspected cause

4. Resolution

  • Fix the root cause — do not just adjust the budget threshold
  • Budget thresholds should only change after a team discussion and explicit approval from [tech lead / EM]
  • Document the breach in the [performance log / incident record]

Budget change policy: Budget thresholds may only be relaxed if: (a) the feature delivering the regression has measurable business value that outweighs the performance cost, and (b) the change is reviewed and approved by [tech lead].


Performance Review Cadence

TriggerAction
Every sprintReview P95/P99 latency trends; flag any creeping degradation
Every quarterFull performance budget review — update baselines, adjust targets, audit tooling
After major feature launchRe-measure all Core Web Vitals and API SLOs; update baselines
After infrastructure changeRe-run full synthetic test suite; confirm no regression
After dependency upgradeRun bundle size diff; confirm no unexpected size increase

Next scheduled review: [Date] Review owner: [Name / role]


Quality Checks

  • Every budget threshold is a specific number — not a range or "TBD"
  • Both frontend (if applicable) and backend targets are defined — not just one or the other
  • Measurement tooling is named with a link to the dashboard or config file
  • CI enforcement is configured for at least one gate (build-time or deploy-time)
  • Budget breach response process names specific Slack channels and owners
  • Budget thresholds are anchored to baseline measurements or a justified target — not pulled from thin air
  • Per-journey targets are defined for critical user journeys, not just global averages

Anti-Patterns

  • Do not set budget thresholds without measuring a current baseline first — targets must be anchored to reality
  • Do not define global averages only — critical user journeys need individual budgets as they may diverge significantly
  • Do not omit CI enforcement — a performance budget that is not enforced in the build pipeline will not be respected
  • Do not leave the breach response process without named owners and escalation channels
  • Do not set budgets that apply only to one environment — production and staging targets should be documented separately if they differ

Example Trigger Phrases

  • "Set performance targets."
  • "Define SLOs for latency."
  • "Create a performance baseline."
  • "Document performance regression policy."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/performance-budget of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Performance Budget next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Performance Budget compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Performance Budget this skillmohitagw15856/pm-claude-skills1.4k—~3.1kAutomated safety check: PassMIT
Ssr Boost MigrateLomray-Software/vite-ssr-boost118—~2.3kAutomated safety check: PassMIT
Gstack Performance Benchmarkgarrytan/gstack136k—~7.3kAutomated safety check: NotesMIT
React Doctormakeplane/plane61k12 repos~657Automated safety check: PassAGPL-3.0
Vercel Optimize Auditvercel-labs/agent-skills32k8 repos~4.3kAutomated safety check: PassNone
Fixing Motion Performanceibelick/ui-skills9.6k5 repos~1.4kAutomated safety check: PassMIT

Similar skills

  • Ssr Boost Migrate

    Lomray-Software/vite-ssr-boost

    Migrate an existing Vite and React Router SPA to vite-ssr-boost SSR in Data mode, preserving route objects and checking streaming, hydration, bundle size, and deployment readiness.

    118 GitHub stars~2.3k tokensUpdated 17 days ago
    Frontend & DesignAuto-check passed
  • Establishes page load, Core Web Vitals and resource-size baselines, then compares before and after on every pull request to track performance trends over time.

    136k GitHub stars~7.3k tokensUpdated today
    Frontend & DesignAuto-check: notes
  • React Doctor

    makeplane/plane

    Scans React code for lint, accessibility, bundle size and architecture issues, reports a health score and checks that changes do not lower it.

    61k GitHub starsUsed in 12 repos~657 tokens
    Frontend & DesignAuto-check passed
  • Vercel Optimize Audit

    vercel-labs/agent-skills

    Official

    Runs a metrics-first audit of a deployed Vercel project, gating investigations on real signals to produce ranked, citation-backed cost and performance recommendations.

    32k GitHub starsUsed in 8 repos~4.3k tokens
    DevOps & CloudAuto-check passed
  • Fixing Motion Performance

    ibelick/ui-skills

    Audits and fixes web animation performance: layout thrashing, work that belongs on the compositor, scroll-linked motion and costly blur effects.

    9.6k GitHub starsUsed in 5 repos~1.4k tokens
    Frontend & DesignAuto-check passed
  • GSAP Performance Tuning

    greensock/gsap-skills

    Guides the agent to keep GSAP animations smooth by animating transforms and opacity, batching DOM reads and writes, and avoiding layout-heavy properties.

    16k GitHub starsUsed in 3 repos~1k tokens
    Frontend & DesignAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Questions about Performance Budget

What does Performance Budget do?

Define and document performance budgets for a web service or application. Performance Budget is an agent skill from mohitagw15856/pm-claude-skills. Define and document performance budgets for a web service or application.

When should I use Performance Budget?

Performance Budget fits situations like: asked to set performance targets; define SLOs for latency; establish Core Web Vitals targets; create a performance baseline.

How do I install Performance Budget in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill performance-budget -a claude-code`. Or copy the skill folder (skills/performance-budget in mohitagw15856/pm-claude-skills) into .claude/skills/performance-budget in your project. Claude Code loads it when a task matches its description.

How do I install Performance Budget in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill performance-budget -a codex`. Or copy the skill folder (skills/performance-budget in mohitagw15856/pm-claude-skills) into .agents/skills/performance-budget in your project. Codex loads it when a task matches its description.

Can I use Performance Budget in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill performance-budget -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/performance-budget, .gemini/skills/performance-budget, .github/skills/performance-budget and .opencode/skills/performance-budget in your project.

What does Performance Budget need to run?

SKILL.md names no scripts, command-line tools or credentials: Performance Budget is instructions for the agent only.

Does Performance Budget access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Performance Budget safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Performance Budget use?

Performance Budget is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Performance Budget use?

About 3.1k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Performance Budget?

Skills that share tags, products or a category with Performance Budget: Ssr Boost Migrate (Lomray-Software/vite-ssr-boost, 118 stars), Gstack Performance Benchmark (garrytan/gstack, 136k stars), React Doctor (makeplane/plane, 61k stars) and Vercel Optimize Audit (vercel-labs/agent-skills, 32k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Performance Budget?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,434 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 9, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.