一键导入
benchmark-ci
Run benchmarks and check regressions, add benchmark gating to CI, or audit GitHub Actions workflows. Determines mode from user intent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run benchmarks and check regressions, add benchmark gating to CI, or audit GitHub Actions workflows. Determines mode from user intent.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Batch-verify and delete dead code: rg-confirm zero callers for N symbols, delete files, run the build once, stage results.
Batch-apply findings from the most recent --local review. One confirmation, one test run.
Orchestrated code review of git diff using parallel agents. Standard mode (diff-scoped) or full mode (adds Roslyn semantic analysis). Produces severity-grouped plan.
Unified code review: --local (diff review), --pr (adversarial PR review), --apply (batch fixes from last review).
Audit .NET solution health across 13 dimensions: dependency graph, solution sync, CPM compliance, package health, framework consistency, IVT & encapsulation, build config, analyzer config, NuGet config, suppression hygiene, output type & AOT, public API surface, and lock files & pruning. Works with any .NET solution (.slnx or .sln). Parses all config files once, spawns 3 parallel agents, and produces a severity-grouped report with a Mermaid dependency graph. Triggers on: solution audit, audit solution, project graph, dependency audit, solution health, audit projects, check solution.
Scans source and .claude/ files for anti-pattern violations, applies the top mechanical fixes, and reports pre/post counts.
| name | benchmark-ci |
| description | Run benchmarks and check regressions, add benchmark gating to CI, or audit GitHub Actions workflows. Determines mode from user intent. |
| when_to_use | run benchmarks, benchmark check, check for regressions, benchmark regression, update baseline, run bench, perf check, performance regression, benchmark gate, ci benchmark, review github actions, audit ci yaml, workflow audit, benchmark work, ci skill. |
| argument-hint | [run | gate | yaml-review | --plan] |
Determine mode from user intent, then execute.
| User wants to... | Mode | Key phrases |
|---|---|---|
| Run benchmarks and check regressions | Runner (below) | run benchmarks, benchmark check, check for regressions, update baseline, perf check |
| Add benchmark regression gating to CI | Gate (below) | benchmark gate, ci benchmark, add benchmark to ci, gating benchmarks |
| Audit GitHub Actions workflow YAML | YAML Review (below) | review github actions, audit ci yaml, check workflow versions, outdated actions |
If ambiguous, ask which task they need.
Run benchmarks and compare against the stored baseline in benchmarks/baselines.json.
--filter {ClassName}, then diff the results against benchmarks/baselines.jsonOK, IMPROVED, REGRESSED, ALLOC_UP, NEWREGRESSED/ALLOC_UP: report table with baseline/current/change, suggest investigatingbenchmarks/baselines.json)benchmarks/baselines.jsongit add benchmarks/baselines.json--threshold NAdd or verify a benchmark regression gate in the CI workflow.
.github/workflows/ci.yml — check for existing benchmark jobbenchmarks/baselines.json existsbenchmark job (runs on main pushes only, runs the benchmark suite with a 20% regression threshold, uploads artifacts)AskUserQuestion to get approval before writing workflow changes:AskUserQuestion({
questions: [{
question: "Apply benchmark gate changes to CI workflow?",
header: "CI gate",
options: [
{ label: "Apply", description: "Write changes to ci.yml" },
{ label: "Cancel", description: "No changes made" }
],
multiSelect: false
}]
})
AskUserQuestion for approval before writing workflow changesAudit .github/workflows/*.yml for outdated actions and improvement opportunities.
.github/workflows/*.yml, read alluses: owner/repo@ref)gh api repos/{owner}/{repo}/releases/latest --jq '.tag_name'dotnet restore, missing --no-build, missing paths: filters--plan flag AND HIGH findings: create a plan for the CI improvementsgh CLI authenticatedgh auth fails, report findings without version comparisons