Skip to content
cccskills
FreePublished on GitHub

performance-budgeting

Axis-by-axis interview methodology for establishing engineering performance budgets during architecture PRD compilation. Use when conducting the Step 10.5 performance budget interview in /create-prd-compile.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md6.7 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Performance Budgeting

Purpose

This skill owns the interview methodology for establishing concrete, enforceable performance thresholds across all applicable surfaces.

When to Use This Skill

  • During /create-prd-compile Step 10.5 — the performance budget interview
  • Any time engineering performance standards need to be established from scratch
  • When updating ENGINEERING-STANDARDS.md for an existing project

Write-As-You-Go Rule

Performance budgets are written as you go — each axis is discussed, decided, and immediately written to the corresponding subsection of .memory/wiki/specs/ENGINEERING-STANDARDS.md. Do not batch them.

Surface Conditioning

Surface conditioning: Only present axes that apply to the confirmed tech stack surfaces. A CLI-only project skips Web Vitals and bundle-size axes. A web-only project skips Desktop and CLI axes. Always present API and DB axes.

Interview Protocol

Axis 0 — Target device tier and network baseline

Before any threshold is chosen, anchor all budgets to an explicit operating context. Require named choices — no vague defaults.

DecisionOptions (examples)
Target device tierLow-end Android (Moto G Power), Mid-range (Pixel 7a), High-end (iPhone 15)
Target network conditionSlow 3G (400 Kbps, 400 ms RTT), Fast 3G (1.6 Mbps, 150 ms RTT), 4G (9 Mbps, 50 ms RTT), Wi-Fi

Ask: "What is the lowest-spec device and slowest network your users will realistically use? All budgets will be validated against this baseline."

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ## Performance Budgets baseline note — fill in the [device tier] and [network condition] placeholders.

Axis 1 — Web Vitals per page type (web/desktop surfaces only)

Define LCP, INP, and CLS targets per page type (e.g., landing, dashboard, detail). Different page types have different acceptable thresholds.

Page TypeLCPINPCLSNotes
Landing / marketing≤ 2.0 s≤ 150 ms≤ 0.05First-impression page; tightest targets
Dashboard / data-heavy≤ 2.5 s≤ 200 ms≤ 0.1Streaming data acceptable
Detail / form≤ 2.0 s≤ 100 ms≤ 0.05Interaction-heavy; INP matters most

Ask: "Which page types does your app have, and do these starting points fit?"

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### Web Vitals per page type

Axis 2 — JS bundle size per page type (web/desktop surfaces only)

Define initial and total JS budgets per page type, gzipped.

Page TypeInitial JS (gzipped)Total JS (gzipped)Notes
Landing / marketing≤ 80 KB≤ 150 KBMust load fast on first visit
Dashboard / data-heavy≤ 150 KB≤ 300 KBLazy-load heavy components

Ask: "Are there pages that pull in large libraries (maps, charts, editors)? Those need their own row."

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### JS Bundle Size per page type

Axis 3 — API response time per tier

Define p50, p95, and p99 targets per tier, not a single number for the whole API.

TierDescriptionp50p95p99
Tier 1 — Cached readResponse served from cache (Redis, CDN, in-memory)≤ 10 ms≤ 30 ms≤ 50 ms
Tier 2 — Uncached readSingle-entity DB fetch or simple join≤ 30 ms≤ 80 ms≤ 150 ms
Tier 3 — WriteCreate, update, delete with validation≤ 80 ms≤ 200 ms≤ 400 ms
Tier 4 — BackgroundAsync jobs, batch processing, external callsBest-effort≤ 1000 ms≤ 3000 ms

Ask: "Do any endpoints call external services? Those belong in Tier 4. Are there any endpoints that don't fit these four tiers?"

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### API Response Time per tier

Axis 4 — DB query time per tier

Define p50 and p95 targets per query tier.

TierDescriptionp50p95
Tier 1 — Indexed point lookupPrimary-key or unique-index fetch≤ 5 ms≤ 15 ms
Tier 2 — Indexed range scanRange or list query on indexed column≤ 15 ms≤ 50 ms
Tier 3 — AggregationCOUNT, SUM, GROUP BY, window functions≤ 50 ms≤ 150 ms
Tier 4 — Full-text / vector / analyticalSearch, similarity, or reporting queries≤ 100 ms≤ 300 ms

Ask: "Are there any known heavy queries (reports, analytics)? Those belong in Tier 4. Any queries that don't fit these four tiers?"

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### DB Query Time per tier

Axis 5 — Desktop / mobile surface budgets (if applicable)

Define surface-specific budgets using the reference table:

Desktop:

MetricStarting point
Cold start≤ 2 s
Memory (idle / active)≤ 200 MB / ≤ 500 MB
Installer size≤ 100 MB
Window resize repaint≤ 16 ms (60 fps)

Mobile:

MetricStarting point
Cold launch≤ 1.5 s
Warm launch≤ 0.5 s
Battery drain (active)≤ 5 %/hr
Download size≤ 50 MB

Ask: "Do these match your target devices and user expectations?"

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### Desktop surfaces and/or ### Mobile surfaces

Axis 6 — CI enforcement mapping

For every budget defined in axes 0–5, name the enforcement tool and fail condition.

Budget CategoryEnforcement ToolFail ConditionFail vs. Warn
Web VitalsLighthouse CIScore below thresholdFail
Bundle sizesize-limitExceeds per-page-type capFail
API response timek6 / autocannonp95 exceeds tier targetWarn (fail after baseline)
DB query timepgbench / query timerp95 exceeds tier targetWarn (fail after baseline)
Desktop/mobilePlatform profilerAny metric exceeds thresholdWarn

Ask: "For API and DB budgets, should CI fail immediately or warn-then-fail after a baseline run?"

Write immediately → .memory/wiki/specs/ENGINEERING-STANDARDS.md § ### CI Enforcement

Closing Summary

Summarise all confirmed performance budgets. Ask: "Any axis you want to tighten, loosen, or add?"

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Audit and improve web accessibility following WCAG 2.1 guidelines. Use when asked to "improve accessibility", "a11y audit", "WCAG compliance", "screen reader support", "keyboard navigation", or "make accessible".

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Structured methodology for adversarial thinking — generating attack scenarios, abuse cases, race conditions, and security edge cases against specs and implementations. Produces spec-level gap items, not code-level fixes.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Orchestrate multiple Antigravity skills through guided workflows for SaaS MVP delivery, security audits, AI agent builds, and browser QA.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Manage API versioning and evolution with URL/header/query strategies, deprecation workflows, breaking change classification, sunset headers, and consumer-driven contract testing. Use when designing versioning strategy, deprecating endpoints, or evolving API contracts.

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

Analyzes codebase structure, data flow, module relationships, and key patterns to generate and maintain a living architecture document (ARCHITECTURE.md).

The English summary is being prepared. Showing the original description.

RepairYourTech/cfsa-antigravity6Updated Aug 16, 2026

See all skills by RepairYourTech

Report a problem with this skill