Skip to content

ericrisco/rsc-harness / skills/scaling

scaling

Verified

Use 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`).

FileKindSize
SKILL.mdskill md11.0 KB
evals/README.mdmarkdown852 B
evals/cases.yamlconfig3.7 KB
references/load-testing-k6.mdmarkdown5.1 KB
scripts/example.load.jsscript932 B
scripts/verify.shexecutablescript2.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);
}
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall