Skip to content

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.

Copy the prompt and paste it into the AI assistant you already use.

How to keep skill CI gates fast, cheap, and non-flaky

  1. 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.

  2. 02

    Scope triggers strictly to touched skill folders

    Use git path filters (skills/*/**) so editing one SQL skill doesn't trigger expensive browser benchmarks.

  3. 03

    Enforce statistical margin tolerances on PR blocks

    Account for +-2% sampling noise via retry-on-regression before failing a developer's pull request.

  4. 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.