Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and pre…
Install the skill above, then run this in your AI tool:
/website-ci-gate <your description>
About
Add a squirrelscan check to CI so a pull request, a preview deploy or a release fails when the site gets worse: a score below a threshold, an error-severity finding, or findings that are new since the last audit.
Source
What gets added to your project
Preview every file this package writes on install before you run the command above.
Summary
Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...
Skill instructions
Website CI Gate
Add a squirrelscan check to CI so a pull request, a preview deploy or a release fails when the site gets worse: a score below a threshold, an error-severity finding, or findings that are new since the last audit.
This skill writes pipeline config and picks thresholds from a real baseline. It does not fix findings; use audit-website for that.
Before the first audit
Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:
Signed out, or --offline: the audit runs on this machine, is free, and nothing is published.
Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (squirrel credits) and get a yes. Offer --offline or --no-publish. For a site the user does not own, add --ephemeral: nothing is added to the dashboard, scheduled or published.
Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.
CI runners are signed out unless SQUIRRELSCAN_API_KEY is set. A signed-out audit runs deterministic rules for free; an audit signed in with an org API key pays no audit or page charge, checks external links from the runner for free, and bills only cloud renders (2 credits per rendered page; --http renders nothing). Keep the key in the CI secret store, never in the repo.
a category score is below N, for example score:perf<80
severity>=error or errors>0
any error-severity finding
warnings>0
any warning-severity finding (also counts a security rule that timed out)
To fail only on findings that are new since the last audit, use a cloud audit of the website: squirrel ci <url> --website <id> --fail-on-new error (needs an org API key with audits:read and audits:write scopes in SQUIRRELSCAN_API_KEY; the first audit of a website exits 0 with no baseline).
Narrow what runs with --rule-include (for example security,links) and silence a rule that does not apply with --rule-exclude or a waived [[ignore]] in squirrel.toml. A narrowed run is partial and its score is not comparable to a full audit's.
Step 3: exit codes
Code
Meaning
Pipeline
0
Ran, every threshold passed
pass
2
A threshold tripped
fail the job
1
Operational error: bad flags, a crash, a site that answered with an error
fail, and read the message
3
The page was blocked by a WAF or bot manager: nothing was audited
fail or alert, never pass
4
The start URL redirected to another site
fail: fix the URL
5
The start URL could not be reached
fail: the preview may not be up yet
A step that only treats 2 as failure will pass on 3, 4 and 5. Let the job fail on any non-zero exit.
GitLab: the same two commands in script: with SQUIRRELSCAN_API_KEY as a masked variable. Preview deploys (Vercel, Netlify, Cloudflare Pages): audit the preview URL the platform gives the job (for example github.event.deployment_status.environment_url on a deployment_status trigger), after the deploy is ready. For a deploy-time audit of the deployed URL, --refresh avoids a cached crawl.
Do not edit existing workflow files without showing the user the diff, and do not add secrets yourself: tell the user which secret to create.
Stop condition
Stop when the job is green on the current main, and the user has seen it go red on a deliberate regression (ask before pushing a throwaway branch). Document the thresholds and why in the repo, next to the workflow.
Hand off
Fixing what the gate finds: audit-website, or the topic skills (security-audit, seo-audit, performance-audit, accessibility-audit).
Add this badge to a GitHub README so readers can open the package page and install the same version.
[](https://www.aipm-registry.com/skills/squirrelscan/website-ci-gate/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)
This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.
AI assistant context
What this skill is for
@squirrelscan/website-ci-gate@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...
Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...
Evaluate your site's agent experience with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking robots.txt bot access, content pr...
Validate structured data with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking JSON-LD validity, type fit, and the site-wide...
Run aipm add @squirrelscan/website-ci-gate@1.0.0 in a project that has AIPM initialized.
Supported tools
@squirrelscan/website-ci-gate@1.0.0 supports All tools.
Before installing
AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.