Block pull requests in GitHub Actions when SKILL.md edits drop benchmark pass rates or spike tokens
Treat SKILL.md and helper script changes like production code: run fast smoke evals on PRs and post pass-rate + token-cost diffs automatically.
How to keep skill CI gates fast, cheap, and non-flaky
- 01
Split static lint + smoke PR gates from nightly full runs
Run <2-minute schema/security lints + 12 critical smoke tasks on PRs; run full 80-task pass^3 suites nightly.
- 02
Scope triggers strictly to touched skill folders
Use git path filters (skills/*/**) so editing one SQL skill doesn't trigger expensive browser benchmarks.
- 03
Enforce statistical margin tolerances on PR blocks
Account for +-2% sampling noise via retry-on-regression before failing a developer's pull request.
- 04
Post compact PR diff tables with failure traces
Show baseline vs PR pass rate, avg cost, p95 latency, and direct links to newly failing trajectory logs.
Questions and answers
Won't running LLM evals on every pull request cost too much?
Path-filtered 15-task smoke suites with prompt caching typically cost $0.25–$0.90 per skill PR—far less than one production agent regression.
What static checks can run for $0 on every commit?
YAML frontmatter validation, description length/trigger linting, broken relative file link checks, token count budgets, and Unicode security scans.
Can CI compare a PR branch directly against main's cached scores?
Yes, storing baseline benchmark artifacts per commit SHA avoids re-running unchanged main-branch baselines on every PR.
Related tasks in this category
See all in Internal Evals & Golden Test Suites-
Design a reproducible 30-to-100 case golden evaluation suite for your internal skills
Vibe-checking three prompts after editing SKILL.md hides regressions. Structure realistic happy-path, edge-case, and no-trigger test cases.
-
Benchmark stochastic skill reliability with pass@1, pass@3, and pass^5 consistency metrics
A skill with 80% single-run pass@1 succeeds on all 5 consecutive runs (pass^5) less than 33% of the time. Measure variance before shipping.
-
Calibrate LLM-as-judge grading rubrics against human reviewers for open-ended skills
Uncalibrated 1-to-5 LLM judges reward long, confident bullet lists even when facts are wrong. Build binary, human-aligned graders.
-
Build recorded HTTP and MCP fixtures to benchmark tool-use skills offline and deterministically
Live Slack, Jira, and search APIs mutate every hour and hit rate limits in CI. Replay realistic stateful fixtures cleanly.
-
Turn failed production agent traces and user thumbs-downs into anonymized regression cases
Synthetic test prompts miss weird customer inputs. Build a clean flywheel from Langfuse, Braintrust, or OTel failure traces into golden tests.
-
Evaluate whether agent skills ask concise questions instead of guessing on vague tasks
Over-eager skills guess destructive parameters on vague prompts; timid skills ask 6 annoying questions when repo context already answers 5.