Back to skills
SKILL.md
Performance Benchmarker
ASecurityRun standardized performance benchmarks including Lighthouse CI, bundle analysis, and API latency checks. Records before/after metrics. No optimization claims without measured evidence.
- 7 stars
- 0 votes
- 0 copies
- 3 views
- Added November 9, 2026
Works with
Security analysis
100/100npx -y skills add Harmitx7/tribunal-kit --skill performance-benchmarker --agent claude-codeAre you the author of Performance Benchmarker?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/harmitx7-performance-benchmarker)---
name: performance-benchmarker
description: Run standardized performance benchmarks including Lighthouse CI, bundle analysis, and API latency checks. Records before/after metrics. No optimization claims without measured evidence.
tools: Read, Grep, Glob, Bash, Edit, Write
version: 3.0.0
last-updated: 2026-07-30
required-skills:
- performance-profiling
- web-quality-audit
- 60fps-animation
scripts-binding:
- .agent/scripts/bundle_analyzer.js
- .agent/scripts/verify_all.js
---
# /performance-benchmarker — Evidence-Based Performance Measurement
$ARGUMENTS
---
## Mandatory Pre-Flight Context Inspection
Before running performance benchmarks or capturing latency metrics, you MUST inspect:
1. Target App Environment & Build Command (`package.json`) → Confirm production build output and dev/preview server URL
2. Benchmark Scripts Availability (`.agent/scripts/bundle_analyzer.js`) → Verify automated bundle and latency measurement tooling
3. Before/After Metric Recording Constraint → Require side-by-side metric tables (LCP, CLS, INP, TTFB, Bundle Size) for every benchmark pass
4. Required Skills → Before executing, load and follow procedural rules from:
- `performance-profiling` (.agent/skills/performance-profiling/SKILL.md): Performance measurement methodology and profiling tools
- `web-quality-audit` (.agent/skills/web-quality-audit/SKILL.md): Lighthouse-style analysis across Performance, Accessibility, SEO
- `60fps-animation` (.agent/skills/60fps-animation/SKILL.md): GPU compositor-friendly properties and layout thrash avoidance
---
## When to Use /performance-benchmarker
| Use `/performance-benchmarker` when... | Use something else when... |
| :-------------------------------------- | :---------------------------------------------------- |
| Establishing performance baseline | Code optimization decisions → `/tribunal-performance` |
| After optimization — verify improvement | Memory leaks investigation → `/debug` |
| Pre-release performance gate | Bundle analysis only → run ANALYZE=true npm run build |
| Regular weekly benchmark | API review only → `/tribunal-backend` |
---
## Benchmark Suite (Run in Order)
```bash
# 1. Lighthouse CI — Core Web Vitals
npx lighthouse http://localhost:3000 \
--output=json \
--output-path=./reports/lighthouse-$(date +%Y%m%d).json \
--only-categories=performance,accessibility,best-practices,seo
# 2. Bundle Analysis
ANALYZE=true npm run build
# 3. API latency (using autocannon for load test)
npx autocannon -c 10 -d 20 http://localhost:3000/api/products
# -c: 10 concurrent connections
# -d: 20 second duration
# 4. Database query analysis
# (Prisma): Add to your test route temporarily
const plan = await prisma.$queryRaw`EXPLAIN ANALYZE SELECT * FROM orders WHERE user_id = ${userId}`;
console.log(plan);
```
---
## Benchmark Report Format
```
━━━ Performance Benchmark — [date] ━━━━━━━━━
━━━ Core Web Vitals (Lighthouse) ━━━━━━━━━━
LCP: [time] [✅ Good | ⚠️ Needs Work | ❌ Poor]
INP: [time] [✅ Good | ⚠️ Needs Work | ❌ Poor]
CLS: [score] [✅ Good | ⚠️ Needs Work | ❌ Poor]
FCP: [time]
TTFB: [time]
Performance Score: [N]/100
━━━ Bundle Sizes ━━━━━━━━━━━━━━━━━━━━━━━━━
First Load JS (shared): [size]
Largest page: [size] ([route])
Largest 3 bundles:
[bundle]: [size]
[bundle]: [size]
[bundle]: [size]
━━━ API Latency (10 concurrent, 20s) ━━━━━━
GET /api/products: avg [ms] | p99 [ms] | [req/s] req/s
POST /api/orders: avg [ms] | p99 [ms]
━━━ Comparison (vs last run) ━━━━━━━━━━━━━━
LCP: 4.2s → 1.9s ▼ IMPROVED ✅
INP: 480ms → 140ms ▼ IMPROVED ✅
Bundle: 890kb → 310kb ▼ IMPROVED ✅
p99 latency: 230ms → 89ms ▼ IMPROVED ✅
```
---
## Performance Gates (Fail Criteria)
```
Failing these means optimization is blocking — not optional:
LCP > 4.0s → ❌ Must fix — users see blank page
INP > 500ms → ❌ Must fix — UI feels unresponsive
CLS > 0.25 → ❌ Must fix — layout jumps are jarring
Bundle > 1mb → ❌ Must fix — 3G users abandon
p99 API > 2000ms → ❌ Must fix — timeout risk on slow connections
Warning range (fix before major release):
LCP 2.5–4.0s → ⚠️
INP 200–500ms → ⚠️
Bundle 500kb–1mb → ⚠️
```
---
## Historical Tracking
Save every benchmark run:
```bash
# Benchmarks should be saved with date stamps
./reports/lighthouse-2026-04-02.json
./reports/bundle-2026-04-02.txt
./reports/latency-2026-04-02.txt
```
This enables trend analysis: is performance improving or degrading over time?
---
## After /performance-benchmarker — Next Steps
| Outcome | Next Command |
| :------------------------------- | :------------------------------------------------------ |
| Performance passes all gates | → `/deploy` or return to development |
| Performance degrades/fails gates | → `/tribunal-speed` to optimize the specific bottleneck |
---
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.