ericrisco/rsc-harness / skills/scaling
scaling
VerifiedUse when traffic is growing or about to spike and the system bends under concurrency — deciding what to add and in what order (cache, connection pool, async queue, read replica, more instances) and proving it with a load test against explicit RPS and p95 targets rather than guessing. NOT making one slow request faster or profiling an N+1 (that is `performance`), NOT race-free Redis caches, locks and queue semantics (that is `redis`).
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 11.0 KB |
| evals/README.md | markdown | 852 B |
| evals/cases.yaml | config | 3.7 KB |
| references/load-testing-k6.md | markdown | 5.1 KB |
| scripts/example.load.js | script | 932 B |
| scripts/verify.shexecutable | script | 2.4 KB |
scripts/example.load.js
View on GitHub// Example k6 load test shipped with the scaling skill.
// Used as the checkable artifact for verify.sh and as a copy-paste starting point.
// Run against a PROD-LIKE target, never localhost: TARGET_URL=https://staging.example.com k6 run example.load.js
import http from 'k6/http';
import { check, sleep } from 'k6';
export const options = {
stages: [
{ duration: '1m', target: 50 }, // ramp up to 50 virtual users
{ duration: '3m', target: 50 }, // hold steady (this is the load test)
{ duration: '1m', target: 0 }, // ramp down
],
thresholds: {
http_req_duration: ['p(95)<500'], // SLO: 95% of requests under 500 ms
http_req_failed: ['rate<0.01'], // SLO: under 1% errors
},
};
export default function () {
const target = __ENV.TARGET_URL || 'https://staging.example.com';
const res = http.get(`${target}/api/health`);
check(res, { 'status is 200': (r) => r.status === 200 });
sleep(1);
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |