audit-website Skill
The audit-website skill enables AI agents to perform comprehensive website audits using the squirrelscan CLI. It checks 230+ rules across 21 categories including SEO, performance, security, accessibility, and content quality.What This Skill Does
This skill gives agents the ability to:- Audit websites against 230+ rules in 21 categories
- Generate LLM-optimized reports with health scores and recommendations
- Detect broken links (internal and external)
- Analyze meta tags and structured data
- Identify technical issues like redirect chains and page speed problems
- Check security for leaked secrets, HTTPS usage, and security headers
- Validate accessibility including alt text and color contrast
- Compare audits to detect regressions over time
Audit Categories
The skill covers 21 comprehensive categories:SEO Issues
SEO Issues
- Meta tags, titles, descriptions
- Canonical URLs
- Open Graph tags
- Keyword optimization
- Content structure
Technical Problems
Technical Problems
- Broken links
- Redirect chains
- Page speed
- Mobile-friendliness
- Crawlability
Performance
Performance
- Page load time
- Resource usage
- Caching strategies
- Image optimization
Security
Security
- Leaked secrets
- HTTPS usage
- Security headers
- Mixed content
Content Quality
Content Quality
- Heading structure (H1-H6)
- Image alt text
- Content analysis
- E-E-A-T signals
Additional Categories
Additional Categories
- Accessibility
- Usability
- Mobile optimization
- Schema markup
- Legal compliance
- Social media tags
- Local SEO
- Video optimization
When to Use This Skill
Use the audit-website skill when you need to:- Analyze overall website health
- Debug technical SEO issues
- Find and fix broken links
- Validate meta tags and structured data
- Generate comprehensive audit reports
- Compare site health before and after changes
- Improve performance, accessibility, or security
- Prepare for a product launch
- Monitor website quality over time
Re-audit frequently to ensure your website remains healthy. The skill is designed for iterative improvement.
Installation
Prerequisites
This skill requires the squirrel CLI to be installed and accessible in your PATH.macOS and Linux Installation
Install squirrel
Run the installation script:This will:
- Download the latest binary
- Install to
~/.local/share/squirrel/releases/{version}/ - Create a symlink at
~/.local/bin/squirrel - Initialize settings at
~/.squirrel/settings.json
Windows Installation
Run PowerShell Installer
Open PowerShell and run:This will:
- Download the latest Windows binary
- Install to
%LOCALAPPDATA%\squirrel\ - Add squirrel to your PATH
Configuration
Project Setup
Before auditing, initialize a squirrel project:squirrel.toml configuration file.
The project name identifies the audit database. All audits for a project share the same database, enabling comparison over time.
Configuration File
Thesquirrel.toml file controls audit behavior:
squirrel.toml
Project Database
Audits are stored in:~/.squirrel/projects/<project-name>
This enables:
- Historical comparison
- Regression detection
- Report regeneration in different formats
Usage
Basic Audit Workflow
The standard audit process:Always use
--format llm for AI agent workflows. This format is optimized for token efficiency and provides exhaustive, structured output.Coverage Modes
Choose the right coverage for your needs:| Mode | Pages | Behavior | Use Case |
|---|---|---|---|
quick | 25 | Seed + sitemaps only | CI checks, fast monitoring |
surface | 100 | One sample per URL pattern | General audits (default) |
full | 500 | Crawl everything | Deep analysis, pre-launch |
/blog/{slug} and only crawls one sample per pattern. This makes it efficient for sites with many similar pages.
Output Formats
The skill supports multiple formats:Workflow: Audit → Fix → Re-Audit
The skill follows a systematic improvement workflow:Initial Audit
Run a surface scan to identify issues:This generates:
- Overall health score (0-100)
- Category breakdowns
- Specific issues with affected URLs
- Actionable recommendations
Fix Issues
Address all critical errors and warnings:
- Code fixes: Meta tags, structured data, templates
- Content fixes: Alt text, headings, descriptions
- Technical fixes: Broken links, redirects, performance
Don’t stop after code fixes. Content changes (*.md, *.mdx) are equally important.
Re-Audit
Verify improvements with a fresh audit:The
--refresh flag ignores cache to ensure accurate results.Score Targets
Set improvement goals based on starting score:| Starting Score | Target Score | Expected Work |
|---|---|---|
| < 50 (Grade F) | 75+ (Grade C) | Major fixes required |
| 50-70 (Grade D) | 85+ (Grade B) | Moderate fixes needed |
| 70-85 (Grade C) | 90+ (Grade A) | Polish and refinement |
| > 85 (Grade B+) | 95+ (Grade A+) | Fine-tuning |
Parallelizing Fixes with Subagents
The skill leverages subagents to fix issues in parallel, dramatically reducing completion time.When to Parallelize
Parallelize when:- 5+ files need the same fix type
- Fixes have no dependencies on each other
- Files are independent (not importing each other)
Common Parallelizable Fixes
| Issue Type | Parallelizable | Approach |
|---|---|---|
| Image alt text | ✅ Yes | Spawn subagents per file batch |
| Heading hierarchy | ✅ Yes | Spawn subagents per file batch |
| Short descriptions | ✅ Yes | Spawn subagents per file batch |
| HTTP→HTTPS links | ✅ Yes | Bulk sed/replace |
| Meta tags/titles | ❌ No | Shared components |
| Structured data | ❌ No | Single source of truth |
| Broken links | ❌ No | Requires manual review |
Parallel Execution Pattern
Multiple Task tool calls in ONE message = parallel execution. Sequential calls = slower.
Batch Sizing Guidelines
- Optimal: 3-5 files per subagent
- Maximum: 10 files per subagent
- Total agents: Spawn 2-4 subagents for parallel work
Subagent Prompt Structure
Effective subagent prompts are:- Focused - Specific file list
- Clear - Exact pattern to find
- Actionable - Precise fix instructions
- Autonomous - “Do not ask for confirmation”
Advanced Options
Custom Page Limits
Force Fresh Crawl
Resume Interrupted Crawl
Debugging
Regression Detection
Compare audits to detect regressions:console, text, json, llm, markdown
Complete Workflow Example
A real-world audit and fix workflow:Initial Audit
- Score: 68/100 (Grade D)
- 43 errors, 89 warnings
- Categories: SEO issues, missing alt text, heading problems
Plan Fixes
Identify parallelizable work:
- 12 files missing alt text → 3 subagents
- 18 files with heading hierarchy issues → 3 subagents
- 7 files with short descriptions → 1 subagent
- Meta tag fixes → Main agent (shared components)
Execute Fixes
Spawn subagents in parallel for content fixes.
Main agent handles shared component updates.
Completion Criteria
A site audit is complete when:- ✅ All errors fixed
- ✅ All warnings fixed or documented as requiring human review
- ✅ Re-audit confirms improvements
- ✅ Before/after comparison shown
- ✅ Score above 95 with full coverage
Troubleshooting
Command Not Found
Problem:squirrel: command not found
Solution:
Permission Denied
Problem: Permission error when running squirrel Solution:Invalid URL
Problem: Audit fails with URL error Solution: Include protocol in URLSlow Performance
Problem: Audit takes too long Solution: Use quick coverage or reduce max pagesAdditional Resources
squirrelscan Docs
Full documentation including rule references
Rule Reference
Detailed explanations of all 230+ rules
CLI Help
Run
squirrel audit --help for command referenceWebsite
squirrelscan homepage and updates
Rule Documentation
Look up specific rules:Related Commands
Report Commands
Config Commands
Self-Management Commands
Best Practices
- Always use LLM format for agent workflows
- Start with surface audits before full scans
- Re-audit after fixes to verify improvements
- Parallelize content fixes using subagents
- Don’t stop early - reach score targets
- Audit frequently to catch issues early
- Test before deployment by auditing staging/preview environments