Skip to content
Solutions · by use case

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.

Skills:site-audit

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

    Connect WebAgent

    Create an API key in the dashboard, then export it for the webagent CLI, or add the MCP server to Claude Code so your agent can call run_skill itself.

    sh
    export 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. 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.

    sh
    webagent skills run site-audit --url https://staging.example.com --report site.html
  3. 3

    Narrow or widen the scope

    Use include and exclude globs to focus on a section, and raise maxPages (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. 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. 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.

    sh
    webagent 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.

urlWhere to start; the crawl stays on this host (required).
maxPagesMost pages to visit (default 25, up to 100).
maxDepthLinks to follow from the start page (default 2).
delayMsPause between two requests to the site, a courtesy rate limit (default 500 ms).
include / excludePath globs to keep or skip, e.g. /docs/*, /logout*.
respectRobotsObey robots.txt (default on; turn off only for a site you own).

Run your first check today.

Free plan: 20 credits, given once, no card.