skills/performance-testing/SKILL.md
Use when load testing APIs, profiling bottlenecks, or validating performance SLAs before release
npx skillsauth add kienbui1995/magic-powers performance-testingInstall 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.
When you need to validate that a system can handle expected load, find bottlenecks before users do, or establish performance baselines.
Before testing, specify:
Without these, you don't know if your test passed.
k6 example:
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '2m', target: 50 }, // ramp up to 50 users
{ duration: '5m', target: 50 }, // stay at 50
{ duration: '2m', target: 100 }, // ramp to 100
{ duration: '5m', target: 100 }, // stay at 100
{ duration: '2m', target: 0 }, // ramp down
],
};
export default function () {
const res = http.get('https://api.example.com/users');
check(res, { 'status was 200': (r) => r.status === 200 });
sleep(1);
}
During the test, watch:
The throughput "knee" = where latency starts degrading rapidly. Don't target above this.
When tests fail:
content-media
Use when designing for XR (AR/VR/MR), choosing interaction modes, or adapting 2D UI patterns for spatial computing
testing
Use when creating new skills, editing existing skills, or verifying skills work before deployment
development
Use when you have a spec or requirements for a multi-step task, before touching code
development
Use when executing a structured workflow — select and run a feature, bugfix, refactor, research, or incident template with correct agent and model assignments per phase.