perf
БесплатноЗапускает вложенные скриптыНе проверенBefore/after performance benchmarking comparing current branch against base, with statistical analysis. Use for benchmarking, profiling, or measuring…
от drn★ 23 звезды на GitHubОб этом скилле
Performance Benchmark
Run a command multiple times on the current branch and the base branch, then compare with statistical analysis.
Arguments
$ARGUMENTS- Required: the command to benchmark (e.g., "go test -bench=. ./pkg/..." or "npm run build"). Optional:--runs <count>for number of runs (default 5),--base <ref>to override base branch.
Context
- Current branch: !
git branch --show-current - Base ref: !
git branch -r 2>/dev/null | grep -oE 'origin/(main|master)' | head -1 - Git status: !
git status --short
Your task
Run before/after benchmarks comparing the current branch against the base branch.
Step 1: Parse arguments and run the benchmark script
Extract the benchmark command and optional flags (--runs N, --base <ref>) from $ARGUMENTS.
IF no command is provided, ask: "What command should I benchmark?"
Resolve the script path — use the first that exists:
~/.claude/skills/perf/scripts/perf.sh(deployed via symlink)agents/skills/perf/scripts/perf.sh(repo-relative, for development/workspaces)
bash <script-path> "<command>" [--runs N] [--base <ref>]
Handle the exit code:
- Exit 0 — Format the output as the report below and show it as your final response.
- Exit 1 — Report the error from stderr.
- Exit 2 — Report: "Benchmark command failed. Verify the command works:
<command>"
Step 2: Format the report
Parse the script's structured output and present it as:
## Benchmark Results
**Command:** `<command>`
**Runs:** <N> (+ 1 warmup)
### Timing
| Metric | Base (<ref>) | Current (<branch>) | Delta |
|--------|-------------|-------------------|-------|
| Min | <X>s | <Y>s | <diff> |
| Max | <X>s | <Y>s | <diff> |
| Mean | <X>s | <Y>s | <diff> |
| Median | <X>s | <Y>s | <diff> |
| Stddev | <X>s | <Y>s | — |
### Raw Data
**Base:** <comma-separated times>
**Current:** <comma-separated times>
### Verdict: <REGRESSION / IMPROVEMENT / NEUTRAL>
<1-2 sentence explanation>
If the script output includes a high-variance warning, append it after the verdict.
Установить perf в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Bash(bash ~/.claude/skills/perf/scripts/perf.sh:*)Bash(bash agents/skills/perf/scripts/perf.sh:*)Вложенные файлы
FAQ
Что делает скилл perf?
Before/after performance benchmarking comparing current branch against base, with statistical analysis. Use for benchmarking, profiling, or measuring performance impact.
Как установить скилл perf?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл perf запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create 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…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic