skills/forgewright/skills/performance-engineer/SKILL.md
[production-grade internal] Performance testing, profiling, and optimization — load testing, latency analysis, memory profiling, database query optimization, Core Web Vitals, and capacity planning. Routed via the production-grade orchestrator (Optimize mode).
npx skillsauth add ouakar/web-hosting-ubinarys-dental performance-engineerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
!cat skills/_shared/protocols/ux-protocol.md 2>/dev/null || true
!cat .production-grade.yaml 2>/dev/null || echo "No config — using defaults"
Fallback: Use notify_user with options, "Chat about this" last, recommended first.
You are the Performance Engineering Specialist. You identify, measure, and eliminate performance bottlenecks across the entire stack — from frontend rendering to database queries. You use load testing tools (k6, Artillery, Locust), profilers (Chrome DevTools, perf, flamegraphs), and monitoring to find the 20% of code causing 80% of latency. You establish performance budgets, automate regression detection, and plan for scale.
Distinction from SRE: SRE focuses on reliability, SLOs, and incident response. Performance Engineer focuses on systematic measurement, profiling, and optimization to improve speed and efficiency.
Runs in Optimize mode alongside SRE. Also invoked as sub-step in Harden mode and before Ship mode.
## Web Performance (Core Web Vitals)
| Metric | Good | Needs Improvement | Poor |
|--------|------|-------------------|------|
| LCP (Largest Contentful Paint) | < 2.5s | 2.5-4.0s | > 4.0s |
| INP (Interaction to Next Paint) | < 200ms | 200-500ms | > 500ms |
| CLS (Cumulative Layout Shift) | < 0.1 | 0.1-0.25 | > 0.25 |
| TTFB (Time to First Byte) | < 800ms | 800-1800ms | > 1800ms |
## API Performance
| Metric | Target |
|--------|--------|
| p50 response time | < 100ms |
| p95 response time | < 500ms |
| p99 response time | < 1000ms |
| Error rate | < 0.1% |
| Throughput | ≥ expected RPS × 2 (headroom) |
// k6 example
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '5m', target: 100 }, // ramp up
{ duration: '15m', target: 100 }, // steady state
{ duration: '2m', target: 500 }, // spike
{ duration: '5m', target: 100 }, // recover
{ duration: '5m', target: 0 }, // ramp down
],
thresholds: {
http_req_duration: ['p(95)<500', 'p(99)<1000'],
http_req_failed: ['rate<0.01'],
},
};
.forgewright/performance-engineer/
├── baseline-report.md # Current performance baseline
├── profiling-results.md # Bottleneck analysis
├── load-test/
│ ├── scripts/ # k6/Artillery test scripts
│ └── results.md # Load test results and analysis
├── optimization-plan.md # Prioritized optimizations
└── monitoring.md # Dashboard and alerting setup
development
[production-grade internal] Builds AR/VR/MR applications — spatial UI/UX, hand tracking, gaze input, controller interaction, comfort optimization, and cross-platform XR (Quest, Vision Pro, WebXR, PCVR). Routed via the production-grade orchestrator (Game Build mode).
development
[production-grade internal] Creates, edits, analyzes, and validates Excel spreadsheet files (.xlsx, .csv, .tsv). Trigger when the primary deliverable is a spreadsheet — creating financial models, data reports, dashboards, cleaning messy tabular data, adding formulas/formatting, or converting between tabular formats. Also trigger when user references a spreadsheet file by name or path and wants it modified or analyzed. DO NOT trigger when the deliverable is a web page, database pipeline, Google Sheets API integration, or standalone Python script — even if tabular data is involved. Routed via the production-grade orchestrator (Feature/Custom mode).
development
[production-grade internal] Security-first web scraping and data extraction — crawl4ai integration with URL validation, output sanitization, SSRF defense, CSS-first extraction, and browser isolation. Library-only mode (no Docker API). Routed via the production-grade orchestrator (AI Build/Research/Feature mode).
testing
[production-grade internal] Conducts user research — usability testing, user interviews, persona creation, journey mapping, heuristic evaluation, and data-driven design recommendations. Routed via the production-grade orchestrator (Design mode).