[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77Y4RTB4VT26EC8VJ45F6HH":3,"skill-same:01M77Y4RTB4VT26EC8VJ45F6HH":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":13,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M77Y4RTB4VT26EC8VJ45F6HH","performance-standards",null,"Use when setting performance budgets, profiling a hot path, writing load\u002Fstress tests, or optimizing latency\u002Fthroughput in a touchstone repo — covers the measure-first discipline, p50\u002Fp95\u002Fp99 SLOs, per-stack profilers, k6 load testing, common bottlenecks, and CI regression gates. Invoke before optimizing anything (caching mechanics live in the resilience skill; frontend CWV\u002Fbundle in the react skill).","hwanngo\u002Ftouchstone","hwanngo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F40811995?v=4","01M77Y071N2D3A6BMB2GVS4F36","01M77Y072AAS1FW736DJ42EP5S",0,"MIT","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fperformance-standards\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: performance-standards\ndescription: Use when setting performance budgets, profiling a hot path, writing load\u002Fstress tests, or optimizing latency\u002Fthroughput in a touchstone repo — covers the measure-first discipline, p50\u002Fp95\u002Fp99 SLOs, per-stack profilers, k6 load testing, common bottlenecks, and CI regression gates. Invoke before optimizing anything (caching mechanics live in the resilience skill; frontend CWV\u002Fbundle in the react skill).\nlicense: MIT\nmetadata:\n  version: 0.2.0\n  author: touchstone\n---\n\n# Performance\n\nFull standard: **`standards\u002Fpractices\u002Fperformance.md`** in the touchstone repo. Load-bearing rules:\n\n## Always\n- **Measure, don't guess** — profile production-shaped traffic before optimizing; keep a change only if a before\u002Fafter number moved past noise. Optimize the dominant cost (Amdahl), not the function you assume is slow.\n- **Budget as a number** — backend p50\u002Fp95\u002Fp99 latency **+ RPS\u002Fmemory ceiling**; quote percentiles, never the mean (tails are what users feel). Frontend CWV + bundle defer to the react skill.\n- **One profiler per stack** — Go `pprof`, Python **py-spy** + Scalene, Node\u002Fbrowser **clinic.js**\u002FDevTools; sampling profilers are safe in prod, instrumenting ones distort timings. Read flamegraphs by width.\n- **Load test with thresholds** — **k6** (escape hatch: Locust\u002FGatling) with budgets encoded as pass\u002Ffail thresholds; run load\u002Fstress in CI scheduled, soak tests for long-running services _(scale-up)_.\n\n## Common bottlenecks (check before inventing a cause)\n- **N+1 queries** are the #1 backend killer — catch via the EXPLAIN\u002Fquery-count gate (database skill), not in prod.\n- **Chatty I\u002FO** (batch\u002Fparallelize), **serialization** CPU, **lock contention** (flat throughput as cores rise), **cold starts**, **allocation churn** (GC dominates the profile).\n- **Caching** is the biggest lever — mechanics (TTL\u002Fjitter, stampede\u002Fsingle-flight, invalidation) live in the resilience skill; here: a cache without a measured **hit rate** is a guess.\n\n## Done\nOptimized changes carry a before\u002Fafter profile number · each surface has a written budget (p50\u002Fp95\u002Fp99 + RPS\u002Fmemory) · profiler wired per stack · k6 load\u002Fstress with pass\u002Ffail thresholds · no N+1 \u002F chatty I\u002FO · caches emit hit-rate metrics · a CI regression gate fails on significant latency\u002Fthroughput\u002Fbundle regression, ratcheted · SLOs alerted on. See `standards\u002Fpractices\u002Fperformance.md`.\n","# Performance\n\nFull standard: **`standards\u002Fpractices\u002Fperformance.md`** in the touchstone repo. Load-bearing rules:\n\n## Always\n- **Measure, don't guess** — profile production-shaped traffic before optimizing; keep a change only if a before\u002Fafter number moved past noise. Optimize the dominant cost (Amdahl), not the function you assume is slow.\n- **Budget as a number** — backend p50\u002Fp95\u002Fp99 latency **+ RPS\u002Fmemory ceiling**; quote percentiles, never the mean (tails are what users feel). Frontend CWV + bundle defer to the react skill.\n- **One profiler per stack** — Go `pprof`, Python **py-spy** + Scalene, Node\u002Fbrowser **clinic.js**\u002FDevTools; sampling profilers are safe in prod, instrumenting ones distort timings. Read flamegraphs by width.\n- **Load test with thresholds** — **k6** (escape hatch: Locust\u002FGatling) with budgets encoded as pass\u002Ffail thresholds; run load\u002Fstress in CI scheduled, soak tests for long-running services _(scale-up)_.\n\n## Common bottlenecks (check before inventing a cause)\n- **N+1 queries** are the #1 backend killer — catch via the EXPLAIN\u002Fquery-count gate (database skill), not in prod.\n- **Chatty I\u002FO** (batch\u002Fparallelize), **serialization** CPU, **lock contention** (flat throughput as cores rise), **cold starts**, **allocation churn** (GC dominates the profile).\n- **Caching** is the biggest lever — mechanics (TTL\u002Fjitter, stampede\u002Fsingle-flight, invalidation) live in the resilience skill; here: a cache without a measured **hit rate** is a guess.\n\n## Done\nOptimized changes carry a before\u002Fafter profile number · each surface has a written budget (p50\u002Fp95\u002Fp99 + RPS\u002Fmemory) · profiler wired per stack · k6 load\u002Fstress with pass\u002Ffail thresholds · no N+1 \u002F chatty I\u002FO · caches emit hit-rate metrics · a CI regression gate fails on significant latency\u002Fthroughput\u002Fbundle regression, ratcheted · SLOs alerted on. See `standards\u002Fpractices\u002Fperformance.md`.\n",{"name":5,"license":14,"metadata":23,"description":7},{"author":24,"version":25},"touchstone","0.2.0","main","d733e177953000560b4cee8f6c01c63aa7a498f0","skills\u002Fperformance-standards","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone","https:\u002F\u002Fgithub.com\u002Fhwanngo","\"There is always one more bug to fix.\"","2026-08-26 01:16:05",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add hwanngo\u002Ftouchstone --skill performance-standards",{"tool":39,"command":40},"bunx","bunx skills add hwanngo\u002Ftouchstone --skill performance-standards",{"tool":42,"command":43},"pnpm","pnpm dlx skills add hwanngo\u002Ftouchstone --skill performance-standards","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Fskills\u002Fperformance-standards\u002FSKILL.md",true,[],[48,55,62,67,72,77],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M77YA15EH4A1SDYPZSPZSE8V","ok-standards","Use when writing shell, per standards\u002Flanguages\u002Fshell.md.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fstandards-known-good\u002Fskills\u002Fok-standards\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M77Y9YK8K580BZ6GNZP6N0PW","demo-standards","Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-url-ignored\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":63,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":18},"01M77Y9VKRQH1CD8B7Y1BZX0PX","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-stray-xml\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":68,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M77Y9SZBHZJES7014P5W1A33","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-sentence-period\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":73,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M77Y9Q6PRTYDTPR8EK0TMJC6","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-relative-dead\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[],{"skillNo":78,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":18},"01M77Y9NH1Z2528QQ6VQ45G6RV","https:\u002F\u002Fgithub.com\u002Fhwanngo\u002Ftouchstone\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills-pointer-outside-repo\u002Fskills\u002Fdemo-standards\u002FSKILL.md",[],[]]