用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/ahrav/Gossip-rs --skill perf-regression命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Consolidate all /review-capture drop files for the current branch into a single verified, deduplicated, conflict-annotated merged plan. Verifies each finding against HEAD (discarding stale ones), merges duplicates across reviewers, flags conflicting suggested fixes, groups findings into execution waves by file ownership, and deletes the individual drop files on success. Run after all parallel review terminals have completed.
Wrapper skill that invokes any review skill/command and captures its findings into a structured YAML drop file under .claude/review-drops/<branch>/. Use when running parallel code reviews across multiple terminals (each terminal captures one reviewer's output) so a later /merge-reviews pass can dedup, verify, and consolidate before execution. Accepts any target review skill (e.g. ce:review, multi-reviewer-patterns, asm-forge, review-pipeline, perf-pipeline, cache-correctness-review, security-reviewer, etc.).
Use when creating any beads task — auto-researches the codebase, links related tasks, and produces a rich self-contained description from a structured template. Accepts minimal intent and outputs a complete task ready for agent implementation.
基于 SOC 职业分类
| name | perf-regression |
| description | Performance regression testing workflow for hot path changes |
| user-invocable | false |
IMPORTANT: Follow this workflow before merging any feature that touches hot paths in the gossip-rs workspace.
Invoke this skill when modifying:
crates/gossip-stdx/src/ (InlineVec, RingBuffer, ByteSlab)crates/gossip-coordination/src/crates/gossip-contracts/src/crates/scanner-engine/src/crates/gossip-scanner-runtime/src/crates/scanner-scheduler/src/crates/scanner-git/src/git stash push -m "feature-name"
RUSTFLAGS="-C target-cpu=native" cargo build --release
Save baselines for all relevant benchmark suites:
# Run all workspace benchmarks
cargo bench --workspace -- --save-baseline before
# Or target specific crates:
cargo bench -p gossip-stdx -- --save-baseline before
cargo bench -p gossip-contracts -- --save-baseline before
cargo bench -p gossip-coordination -- --save-baseline before
git stash pop
RUSTFLAGS="-C target-cpu=native" cargo build --release
# Compare against baseline (all workspace benchmarks)
cargo bench --workspace -- --baseline before
# Or target specific crates:
cargo bench -p gossip-stdx -- --baseline before
cargo bench -p gossip-contracts -- --baseline before
cargo bench -p gossip-coordination -- --baseline before
Look for these patterns in Criterion output:
Performance has improved — Optimization successfulPerformance has regressed — Changes hurt performanceNo change in performance — Within noise threshold| Crate | Bench File | Measures |
|---|---|---|
gossip-contracts | identity.rs | Identity type construction and derivation |
gossip-coordination | coordination.rs | Shard coordination operations |
gossip-coordination | sim.rs | Simulation harness benchmarks |
gossip-stdx | byte_slab.rs | Byte slab pool allocation |
gossip-stdx | inline_vec.rs | InlineVec operations |
gossip-stdx | ring_buffer.rs | RingBuffer throughput |
| Regression Level | Action |
|---|---|
| None (<2%) | Ship as-is |
| Minor (2-5%) | Document reason, acceptable for correctness |
| Moderate (5-10%) | Requires compelling justification |
| Major (>10%) | Must investigate and optimize |
Include in PR description:
Report results as:
## Performance Regression Results
### Criterion Benchmarks
| Crate | Benchmark | Baseline | After | Delta |
|-------|-----------|----------|-------|-------|
| gossip-stdx | inline_vec/push | X ns | Y ns | +/-Z% |
| gossip-stdx | ring_buffer/enqueue | X ns | Y ns | +/-Z% |
| gossip-stdx | byte_slab/alloc | X ns | Y ns | +/-Z% |
| gossip-contracts | identity/derive | X ns | Y ns | +/-Z% |
| gossip-coordination | coordination/acquire | X ns | Y ns | +/-Z% |
### Verdict
[None/Minor/Moderate/Major] regression - [justification if >2%]
/bench-compare — Quick before/after benchmark comparison/asm-forge — Assembly-guided optimization for hot functions/linux-perf-profile — Hardware counter analysis for deeper investigation/performance-analyzer — Static hotspot analysis for this project's patterns