Website audit and fix skill for Claude Code, Codex and Cursor
The audit-website agent skill audits a website with squirrelscan, maps issues to code, fixes them in batches and re-audits until it scores well.
audit-website is an Agent Skills SKILL.md from squirrelscan: the website audit agent skill. It audits a website and maps each issue to the code or content behind it. It fixes in batches and re-audits until the website scores well. It runs 350+ audit rules across SEO, performance, security, technical, content, accessibility and more, through the squirrel CLI or the hosted squirrelscan MCP server. It works in Claude Code, Codex, Cursor and other coding agents, and is the general fix loop the narrower squirrelscan skills hand back to.
New to skills? Start with the skills overview.
What it does
- Runs a squirrelscan audit and reads the LLM-optimized report: score, grade and top issues by severity.
- Starts with a quick pass to learn the website’s structure, then goes deeper:
surface(one page per URL pattern) for template-level coverage andfullfor sign-off. - Checks intent before calling something broken, since a
noindex, arobots.txtblock or a page behind a login can be what you want. - Gets the fix from the rule’s docs page (or
get_ruleover MCP), not from the report. - Proposes fixes, confirms with you before changing anything, then fixes in batches and verifies that the project still builds.
- Re-audits with
--refreshafter deploys and shows before and after scores, withsquirrel report --difforcompare_auditsfor regressions. - Tells you the cost and what a logged-in audit leaves behind (dashboard entry, recurring audits, an unlisted report) before it runs. It offers
--offline,--no-publishand--ephemeral. - Reads skipped and not-checked rules as unchecked.
- Does not start a fix loop when the exit code is
3,4or5, because nothing was audited. - Tailors the audit to the website: a issue class that does not apply can be disabled in
squirrel.toml.
Questions it answers
- Audit my website and fix all errors and warnings
- Run an audit on example.com and show me the top 5 critical issues
- Check my website for broken links and leaked secrets
- Re-audit after the deploy and diff against the last report
- What is wrong with my website, and how do I fix it?
- What is my website’s health score, and how do I raise it?
- Which issues should I fix first?
- Which issue is intentional and which is a real bug?
Install
The squirrel CLI installs this skill with squirrel skills install, together with the other main skill. It is the one command that keeps both current.
squirrel skills installTo install only this skill with the CLI:
squirrel skills install audit-websiteWorks with any Agent Skills tool (Claude Code, Codex, Cursor, Gemini CLI, Amp and others):
npx skills add squirrelscan/skills --skill audit-websiteThe plugin installs all the skills and the hosted squirrelscan MCP server:
/plugin marketplace add squirrelscan/skills/plugin install squirrelscan@squirrelscannpx skills add puts the skill in .agents/skills/. To add the MCP server too, configure it in ~/.codex/config.toml. See squirrelscan for Codex.
Run npx skills add, then use the Cursor plugin from the skills repository or the one-click MCP link. See squirrelscan for Cursor.
Gemini CLI, GitHub Copilot, Amp and other Agent Skills tools: run npx skills add, then add the MCP server. See coding agents.
Requirements
The squirrel CLI installed and in your PATH, or the hosted squirrelscan MCP server connected (https://mcp.squirrelscan.com/mcp). Check the CLI with squirrel --version. Setup steps are in install and MCP clients.
Install the CLI on macOS or Linux:
curl -fsSL https://install.squirrelscan.com | bashExample prompts
Paste one of these into your coding agent:
Audit this website and fix all errors and warningsRun an audit on example.com and show me the top 5 critical issuesRe-audit after the deploy and diff against the last reportThe agent asks which website to audit, tells you the cost and runs the audit. It proposes fixes for your approval and edits the source files. Then it re-audits and shows the score change.
How it works
- Run
squirrel auth status, tell you the cost and side effects, and get a yes. - Run
squirrel audit <url> --format llm, quick first and thensurfaceorfull. Over MCP, userun_audit,get_audit_statusandget_report. - Present the report and check intent for each issue that might be deliberate.
- Export the full JSON list, map issues to source files, and fix in batches after you approve.
- Re-audit with
--refreshand repeat until errors are fixed or confirmed intentional and the rest needs a human decision.
Over MCP
With the hosted squirrelscan MCP server connected (https://mcp.squirrelscan.com/mcp), the same loop runs with its tools: whoami, run_audit, get_audit_status, get_report, list_issues, get_issue, get_rule, comment_on_issue and compare_audits. Every hosted audit is a billed cloud audit, and run_audit returns an estimate for you to confirm before it spends credits.
Related skills
squirrelscan: operate the CLI: install, login, reports, credits, MCP setup.seo-audit: a focused technical SEO pass.security-audit: a focused security pass.launch-checklist: a pre-launch pass that runs the others in launch order.website-ci-gate: keep the score from regressing in CI.
Related rules and guides
Source on GitHub
skills/audit-website: the skill folder- README.md
- SKILL.md