Site audit
Every page of a site, checked page by page.
The single-page skills look at one URL. site-audit walks the site breadth first from the start page, stays on its host, obeys robots.txt, pauses between requests and runs the smoke, accessibility and passive security checks on every page it reaches.
site-auditWhat you get
- Pages visited and broken pages
- Which page linked to a broken one
- Findings page by page
- Why the crawl stopped
Step by step
From an API key to a report, then onto every pull request.
- 1
Connect WebAgent
Create an API key in the dashboard, then export it for the
webagentCLI, or add the MCP server to Claude Code so your agent can callrun_skillitself.shexport WEBAGENT_API_URL=https://api.example.com WEBAGENT_API_KEY=… # or hand the browser to Claude Code claude mcp add webagent -e WEBAGENT_API_URL=$WEBAGENT_API_URL -e WEBAGENT_API_KEY=$WEBAGENT_API_KEY -- npx -y @webagent/mcp - 2
Start the crawl
Give it the start page. By default it visits up to 25 pages, two links deep, with 500 ms between requests.
shwebagent skills run site-audit --url https://staging.example.com --report site.html - 3
Narrow or widen the scope
Use
includeandexcludeglobs to focus on a section, and raisemaxPages(up to 100) for a bigger site. Logout links and downloads are never followed.json{ "url": "https://staging.example.com", "maxPages": 100, "include": ["/docs/*"], "exclude": ["/logout*"] } - 4
Read the report
The summary says how many pages were visited, how many were broken and why the crawl stopped. Broken pages name the page that linked to them, so you can fix the link, not just the target.
- 5
Put it on a schedule
A schedule runs the skill on a cron, for example every Monday night. Each run is an ordinary skill run with its own report.
shwebagent schedules create site-audit --cron "0 3 * * 1" --url https://staging.example.com
Inputs
For site-audit. Pass them as flags, JSON or in plain words to your agent.
| url | Where to start; the crawl stays on this host (required). |
|---|---|
| maxPages | Most pages to visit (default 25, up to 100). |
| maxDepth | Links to follow from the start page (default 2). |
| delayMs | Pause between two requests to the site, a courtesy rate limit (default 500 ms). |
| include / exclude | Path globs to keep or skip, e.g. /docs/*, /logout*. |
| respectRobots | Obey robots.txt (default on; turn off only for a site you own). |
Related
Run your first check today.
Free plan: 20 credits, given once, no card.