Index of every page on this site: llms.txt
All skills
squirrelscan avatar

/audit-website

@d1b7e4f
by squirrelscansquirrelscan/skills109 stars
10
Run it yourself

Audit a website with the squirrelscan CLI or the hosted squirrelscan MCP server and fix the findings in code. Runs SEO, performance, security, technical, content, accessibility, and 16 other rule categories (350+ rules), returns an LLM-optimized report, then drives an iterative fix loop, mapping findings to source files, applying fixes, and re-auditing until the site scores well. Use to discover and assess website or webapp issues and drive them to fixed.

Use this Skill: https://skilld.dev/gh/squirrelscan/skills/audit-website

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

referencesOUTPUT-FORMAT.md

≈2.3k tokens on demand. Your agent reads this file only when SKILL.md points to it.

LLM Format Output Reference

Overview

The --format llm output is a compact, token-optimized hybrid XML/text format designed specifically for AI agent consumption. It provides structured audit data in a format that balances machine readability with token efficiency.

Key Characteristics

  • 40-70% smaller than verbose XML format
  • 1-space indentation for minimal token usage
  • Hybrid structure: XML tags + text prefixes for metadata
  • Inline attributes: Metadata stored as XML attributes, not nested elements
  • Comma-separated lists: Pages and arrays formatted inline
  • Flattened hierarchy: Reduced nesting depth compared to verbose XML

Format Structure

1. Document Header

<?xml version="1.0" encoding="UTF-8"?>
<audit version="0.0.24">

2. Site Information

<site url="https://example.com" crawled="51" date="2025-01-18T10:30:00Z"/>

Attributes:

  • url - Base URL audited
  • crawled - Number of pages crawled
  • date - ISO 8601 timestamp

3. Health Score

<score overall="85" grade="B">
 <cat name="Core SEO" score="92"/>
 <cat name="Technical SEO" score="88"/>
 <cat name="Content Quality" score="76"/>
</score>

Attributes:

  • overall - 0-100 health score
  • grade - Letter grade (A-F)
  • Categories with individual scores

4. Summary

<summary passed="120" warnings="15" failed="8"/>

Attributes:

  • passed - Number of passed checks
  • warnings - Number of warnings
  • failed - Number of failed checks

5. Issues Section

Issues are grouped by category with compact inline metadata:

<issues>
 <category name="Core SEO" errors="2" warnings="3">
  <rule id="core/meta-title" severity="error" status="fail">
   Missing or empty meta title tags
   Desc: Every page should have a unique meta title
   Fix: Add descriptive <title> tags to each page
   Pages (2): https://example.com/about, https://example.com/contact
   Items (2):
    - https://example.com/about
    - https://example.com/contact
  </rule>
  <rule id="core/meta-description" severity="warning" status="warn">
   Desc: Pages should have meta descriptions
   Fix: Add <meta name="description"> tags
   Pages (5): https://example.com/page1, https://example.com/page2, ...
  </rule>
 </category>
 <category name="Performance" errors="0" warnings="1">
  ...
 </category>
</issues>
Rule Structure

Each <rule> element contains:

Attributes:

  • id - Rule identifier (e.g., core/meta-title)
  • severity - error, warning, or info
  • status - pass, warn, or fail

Text Content (in order):

  1. Message (optional) - Human-readable issue summary
  2. Desc: - Rule description (what's being checked)
  3. Fix: - Recommended solution (how to fix)
  4. Pages (n): - Comma-separated list of affected URLs
  5. Items (n): - Dash-prefixed list of specific items with metadata

6. Items Format

Items provide detailed context about affected elements:

Items (3):
 - https://example.com/missing-title (title: "")
 - https://example.com/duplicate-title (title: "Home Page") (from: https://example.com/other)
 - /broken-link [status: 404, type: internal] (from: https://example.com/contact)

Item format:

  • - <id> - Primary identifier (URL, selector, etc.)
  • (<label>) - Optional human-readable label if different from id
  • [key: value, ...] - Metadata in square brackets
  • (from: <sources>) - Source pages where item appears

Runs that did not audit

An audit that could not run still writes a report, and it has no score. Read status before anything else.

A refused start page (exit code 3):

<status state="blocked" reason="Site blocked the crawler (bot protection / auth / rate limit): ...">
 ...what happened and how to get a full audit...
</status>
<refused-fetches>
 <fetch>/robots.txt: HTTP 403</fetch>
</refused-fetches>

The requests in <refused-fetches> are unknown, not missing: do not report them as absent. <score overall="N/A" grade="N/A"> has no value.

A start URL that redirects to another site (exit code 4) is a short document of its own:

<audit status="redirected" reason="cross-domain">
  <original-url>...</original-url>
  <final-url>...</final-url>
  <redirect-chain><hop status="301">...</hop></redirect-chain>
  <rerun-command>squirrel audit ... --follow-redirect</rerun-command>
  <note>... nothing was audited.</note>
</audit>

reason is cross-domain, loop, too-many or refused. <rerun-command> is absent for loop and refused; for too-many it audits the destination the chain was heading to. Never followed on its own. Relay the destination to the user and run the command only after they confirm: see "Exit codes and audits that did not run" in the squirrelscan skill. An unreachable start URL (exit code 5) reads status="unreachable" with a statusReasonCode.

Diff Output (LLM Format)

When using squirrel report --diff or --regression-since with --format llm, the output is a compact XML diff format:

<?xml version="1.0" encoding="UTF-8"?>
<diff version="0.0.24">
 <baseline id="a7b3c2d1" url="https://example.com" date="2026-01-17T10:30:00Z" pages="42" score="87" grade="B"/>
 <current id="b9c4e1f2" url="https://example.com" date="2026-01-18T10:30:00Z" pages="44" score="84" grade="B"/>
 <summary added="3" removed="1" changed="2" regressions="1" improvements="1"/>
 <added>
  <issue fp="abc123" rule="core/meta-title" severity="error" status="fail" check="meta-title" category="core" weight="8">
   Missing page title
   Target: page /about
  </issue>
 </added>
 <removed>
  ...
 </removed>
 <changed>
  <change type="regression" fp="def456" rule="links/broken-links" severity="warning" status="fail" check="broken-links">
   warn→fail: Broken link count increased
   Before:
    <issue ...> ... </issue>
   After:
    <issue ...> ... </issue>
  </change>
 </changed>
</diff>

Key fields:

  • fp: deterministic fingerprint for the issue instance
  • rule, check, severity, status: rule and check metadata
  • Target:: item/page/check target
  • change type: regression, improvement, or change

Example Output

<?xml version="1.0" encoding="UTF-8"?>
<audit version="0.0.24">
<site url="https://example.com" crawled="51" date="2025-01-18T10:30:00Z"/>
<score overall="78" grade="C">
 <cat name="Core SEO" score="85"/>
 <cat name="Technical SEO" score="92"/>
 <cat name="Performance" score="65"/>
</score>
<summary passed="98" warnings="12" failed="5"/>
<issues>
 <category name="Core SEO" errors="2" warnings="1">
  <rule id="core/meta-title" severity="error" status="fail">
   Missing meta title on 2 pages
   Desc: Every page should have a unique meta title
   Fix: Add descriptive <title> tags to each page
   Pages (2): https://example.com/about, https://example.com/contact
   Items (2):
    - https://example.com/about
    - https://example.com/contact
  </rule>
 </category>
</issues>
</audit>

Usage

The LLM format is available via both audit and report commands:

# Direct LLM output (single step)
squirrel audit https://example.com --format llm

# Or two-step workflow
squirrel audit https://example.com
squirrel report <audit-id> --format llm

# Pipe directly to AI agent
squirrel audit https://example.com --format llm | claude

The audit command supports --format llm directly for convenience. Use the two-step workflow when you need to generate reports in multiple formats from a single audit.

Comparison with Other Formats

Format Size Structure Best For
xml 209KB Verbose, 2-space indent, fully nested Enterprise integration, archival
llm 125KB Compact, 1-space indent, hybrid AI agents, token-limited contexts
json 180KB Structured data Programmatic processing
text 45KB Plain text, no structure Simple piping, grep

Token Efficiency

The LLM format achieves 40-70% size reduction compared to verbose XML through:

  1. 1-space indentation instead of 2-4 spaces
  2. Inline attributes instead of nested elements
  3. Text prefixes (Desc:, Fix:) instead of XML tags
  4. Comma-separated lists instead of multiple elements
  5. Flattened hierarchy - fewer nesting levels

XML Character Escaping

Special characters are properly escaped:

  • & → &amp;
  • < → &lt;
  • > → &gt;
  • " → &quot;
  • ' → &apos;

Design Philosophy

The LLM format is optimized for:

  1. Token efficiency - Critical for API cost and context limits
  2. Easy parsing - XML structure for reliable extraction
  3. Human readability - AI agents can explain issues naturally
  4. Progressive disclosure - Summary → Categories → Rules → Items
  5. Actionable insights - Fix recommendations included inline

Implementation Notes

  • Generated by generateLlmReport() in app/src/reports/output/llm.ts
  • Empty issues section renders as self-closing: <issues/>
  • All text content is XML-escaped for safety
  • Indentation uses spaces only (no tabs)
  • Line endings are Unix-style (\n)

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert1d5 checks · Risk SAFE
  • Gen Agent Trust Hub1d

    This skill provides a set of instructions for auditing and fixing websites using the squirrelscan CLI and MCP server. It is a legitimate developer tool with appropriate safety instructions to prevent the agent from following instructions embedded in audited content.

  • Socket1d

    No alerts

  • Snyk1d

    Risk: MEDIUM · 2 issues

  • Runlayer9mo

    4/4 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at d1b7e4f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 days ago
What it can do
Runs commands
metadata
{
  "author": "squirrelscan",
  "version": "3.3"
}
All 1 allowed tools
Bash(squirrel:*) Read Edit Grep Glob
Other metadata
compatibility
Requires the squirrel CLI installed and accessible in PATH, or the hosted squirrelscan MCP server connected

README badge

README badge for squirrelscan/skills

Audits websites against 230+ rules spanning SEO, performance, security, accessibility, and technical issues using the squirrelscan CLI. Returns a health score, category breakdowns, broken links, and actionable recommendations; designed for iterative fixes across meta tags, structured data, content, and link issues.

Generated from the current SKILL.md.

Does this skill work with local websites or only live sites?
It works with both, but the skill recommends auditing live websites first for accurate performance and rendering results. You can then apply fixes discovered from the live audit to local code.
What do I need to install before using this skill?
The squirrel CLI from squirrelscan.com/download must be installed and accessible in your PATH. Verify with `squirrel --version`.
How many pages does the skill audit by default?
It depends on the coverage mode: quick audits 25 pages, surface (default) audits 100 pages, and full audits up to 500 pages. You can override with `--max-pages`.
What output format should I use for AI agents?
Always use `--format llm`, which is optimized for LLM consumption and provides exhaustive, compact output.
Can this skill parallelize fixes across multiple files?
Yes. For independent content fixes like adding alt text or fixing heading hierarchy, the skill can spawn subagents to edit multiple files concurrently.

Generated from the current SKILL.md. These answers refresh after source changes.