[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78F76982C4YMPT8JKQN7G7Y":3,"skill-same:01M78F76982C4YMPT8JKQN7G7Y":73},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M78F76982C4YMPT8JKQN7G7Y","benchmarking",null,"poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Statistical Performance Benchmarking & Regression Detection\n\n## Purpose\nDesign and execute deterministic, statistically sound performance benchmarks (Go benchmarks, pytest-benchmark, k6, hyperfine) with warmup discipline, percentile reporting, and confidence-gated regression detection, so performance claims are evidence, not anecdotes.\n\n## Use when\n- Proving a change is faster: before\u002Fafter benchmarks with confidence intervals for an optimization Goal.\n- Setting or enforcing performance budgets: p99 latency ceilings, throughput floors, startup time caps.\n- Detecting regressions in CI: benchmark tracking over commits with statistical gating, not single-run comparisons.\n- Choosing between implementations: A\u002FB measurement of algorithms, serializers, or query shapes under identical load.\n\n## Do not use when\n- Auditing code complexity or duplication without timing anything (use `code-quality`).\n- Debugging a functional bug where performance is irrelevant (fix it; do not benchmark it).\n- Designing cache topologies to avoid load rather than measure it (use `caching`).\n- Running one-off timing with `time` and eyeballing the result (that is not a benchmark; this skill forbids it).\n\n## Required context\n- Benchmark harness and versions: Go 1.24.3 `testing` benchmarks, pytest-benchmark 4.1.1, k6 0.57.2, hyperfine 1.18.0.\n- Target metric and budget: e.g. invoice rendering p99 at most 120 ms at 500 rps, or JSON marshal at least 180 MB\u002Fs.\n- Load profile: concurrency, dataset size, warmup iterations, and production traffic shape being simulated.\n- Execution environment: pinned machine or runner class, CPU governor, isolation from noisy neighbors.\n\n## Procedure\n1. **Fix the environment and harness**:\n   - Pin benchmarks to one runner class (`c6i.xlarge` dedicated, or the `bench` GitHub runner label); record CPU model, core count, and governor (`performance`).\n   - Disable frequency scaling variance: run `cpupower frequency-set -g performance` on bare metal, or document that cloud runs carry ±5 percent noise.\n   - Choose the harness per layer: `go test -bench` for functions, `pytest-benchmark` for Python paths, `k6` for HTTP endpoints, `hyperfine` for CLI startup.\n2. **Design the measurement with warmup and repetitions**:\n   - Discard warmup explicitly: `-benchtime=5s -count=6` in Go (drop run 1), `--warmup=on --warmup-iterations=3` in pytest-benchmark, k6 `stages` with a 60-second ramp before the 5-minute steady window.\n   - Size datasets to production shape: 50,000 invoices with the real size distribution (median 2.1 KB, p99 48 KB), not 10 synthetic rows.\n   - Run at least 5 measured repetitions; record min, median, p90, p99, and max for every series.\n3. **Analyze with statistics, not vibes**:\n   - Compare before\u002Fafter with relative change plus a 95 percent confidence interval; use `benchstat old.txt new.txt` for Go series.\n   - Declare improvement only when the full confidence interval clears the noise floor: e.g. `delta -8.4% ±1.9%` is a win, `delta -1.2% ±2.6%` is noise.\n   - For k6 runs, gate on `p(99)\u003C120` thresholds in the script itself (`thresholds: { http_req_duration: ['p(99)\u003C120'] }`) so CI fails on breach.\n4. **Guard against benchmark lies**:\n   - Verify the compiler did not eliminate the work: consume results via `benchmark.ReportMetric`, `black_box`, or writing checksums; check assembly or instruction counts when a result looks impossibly fast.\n   - Run the A\u002FA control: benchmark the same code twice and confirm the delta interval includes zero before trusting any A\u002FB delta.\n   - Isolate from neighbors: no parallel CI jobs on the bench runner during measurement; record load average alongside results.\n5. **Record and gate**:\n   - Store results in `templates\u002Fbenchmarking-spec.md` with environment, harness flags, raw numbers, and the benchstat verdict.\n   - Wire the budget into CI (`k6` thresholds, `benchstat` delta gates) so the next regression fails the build, not a human review.\n   - Run the verification script `scripts\u002Fverify.sh` from the repo root; it must exit 0.\n\n## Decision rules\n- **No Single-Run Claims**: Any latency or throughput claim from fewer than 5 measured repetitions is rejected as evidence.\n- **Warmup Is Mandatory**: Benchmarks without explicit warmup and discarded first runs are invalid; cold-start numbers measure page faults, not code.\n- **Confidence Interval Decides**: A change ships as faster only when the 95 percent interval excludes zero in the favorable direction.\n- **A\u002FA Control Before A\u002FB Verdict**: If the same-code control shows nonzero drift beyond the noise floor, fix the environment before judging the change.\n- **Budgets Are Gates, Not Aspirations**: A breached p99 budget fails CI exactly like a failed test; waivers need owner and expiry.\n\n## Evidence required\n- Benchmark specification adhering to `templates\u002Fbenchmarking-spec.md` with environment, flags, and raw series.\n- Raw repetition logs: at least 5 measured runs per variant plus the discarded warmup runs.\n- `benchstat` (or equivalent) comparison output with deltas and confidence intervals.\n- A\u002FA control run proving the environment is stable before the A\u002FB verdict.\n- Passing execution log from `scripts\u002Fverify.sh`.\n\n## Output contract\n- Measured verdict per comparison: delta percent, 95 percent confidence interval, and ship\u002Fno-ship recommendation.\n- CI gate configuration enforcing the budget on every protected-branch run.\n- Environment record: runner class, CPU, governor, dataset shape, harness flags.\n- Regression report when applicable: offending commit range, metric drift, and bisect notes.\n\n## Stop conditions\n- All claimed improvements backed by confidence intervals excluding zero, with A\u002FA control green.\n- Performance budgets wired into CI thresholds and passing on the protected branch.\n- Regression root-caused to a commit range or formally accepted with owner and revisit date.\n- Token budget exhausted.\n- Blocked on external dependency.\n\n## Escalation rules\n- Escalate to the owning team if the A\u002FA control never stabilizes (noisy shared runners, thermal throttling) and dedicated bench hardware is needed.\n- Escalate to Lead Architect if meeting the budget requires an architecture change (new index, protocol change, caching layer) beyond the Goal scope.\n- Escalate immediately if benchmarking exposes a correctness bug under load (data races, dropped writes); stop measuring and file the defect.\n",{},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".agents\u002Fskills\u002Fbenchmarking",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add poppyTM\u002Foride --skill benchmarking",{"tool":37,"command":38},"bunx","bunx skills add poppyTM\u002Foride --skill benchmarking",{"tool":40,"command":41},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill benchmarking","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002FSKILL.md",true,[45,51,55,59,65,69],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"checks\u002Fbenchmarking-checklist.md","REFERENCE","参考文档",2364,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Fchecks\u002Fbenchmarking-checklist.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"manifest.json",2381,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Fmanifest.json",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"references\u002Fbenchmarking-guide.md",3739,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Freferences\u002Fbenchmarking-guide.md",{"path":60,"resourceType":61,"resourceTypeDesc":62,"sizeBytes":63,"sourceHtmlUrl":64},"scripts\u002Fverify.sh","SCRIPT","脚本",3840,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Fscripts\u002Fverify.sh",{"path":66,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":67,"sourceHtmlUrl":68},"templates\u002Fbenchmarking-spec.md",2589,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Ftemplates\u002Fbenchmarking-spec.md",{"path":70,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":71,"sourceHtmlUrl":72},"templates\u002Fbenchmarking-template.md",802,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fbenchmarking\u002Ftemplates\u002Fbenchmarking-template.md",[74,80,86,93,100,107],{"skillNo":75,"name":76,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M78FHE53D8DD0QVRY5C37DA4","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M78FHBJ1KXFF734GFE509TBJ","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":18},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]