audit-website

作者: squirrelscan

使用 squirrelscan CLI 稽核網站,並在程式碼中修正發現的問題。執行 SEO、效能、安全性、技術、內容、無障礙及其他 15 種規則類別(共 249 條以上規則),回傳一份針對 LLM 最佳化的報告,接著驅動反覆修正循環,將問題對應至原始檔案、套用修正,並重新稽核,直到網站獲得良好評分。可用於發現並評估網站或網頁應用程式的問題,並將其導向修正完成。

npx skills add https://github.com/squirrelscan/skills --skill audit-website

Audit a Website and Fix It

Run a squirrelscan audit against a website, read the LLM report, map each issue to the code or content that causes it, fix in batches, and re-audit until the score target is met.

Requires the squirrel CLI (squirrelscan.com/download; verify with squirrel --version). For CLI setup, login, publishing, MCP, and general CLI usage, use the companion squirrelscan skill.

Rule docs

Look up any rule at https://docs.squirrelscan.com/rules/{rule_category}/{rule_id}, for example:

https://docs.squirrelscan.com/rules/links/external-links

Running the audit

squirrel audit https://example.com --format llm
  • ALWAYS use --format llm: it is compact, exhaustive, and made for agents.
  • If the user doesn't provide a URL, ask which site to audit.
  • PREFER auditing the live site: only there do you see true rendering, performance, and redirect behavior. If both a local dev server and a live site exist, suggest the live one; apply the fixes to the local code either way.
  • Audits are cached locally. Re-render later without recrawling: squirrel report <audit-id> --format llm.

Scan progression

  1. First pass, quick coverage (the default): a fast, shallow scan to learn the site's structure, technology, and biggest problems without impacting the site.
  2. Second pass, deeper coverage: -C surface (one page per URL pattern) for template-level coverage, or -C full for a comprehensive crawl before sign-off.
ModeDefault pagesUse
quick25First look, CI checks
surface100Template-level coverage (one sample per pattern like /blog/{slug})
full500Final verification, deep analysis

Useful flags: --refresh (ignore cache, full re-fetch), --resume (continue an interrupted crawl), -m <n> (page cap), --verbose (progress detail).

If the site blocks unknown crawlers (Shopify / Cloudflare), pass Web Bot Auth headers with repeated -H "Name: Value" flags. Header values are secrets and are redacted in output. See https://docs.squirrelscan.com/guides/web-bot-auth

The fix loop

  1. Present the report: score, grade, top issues by severity.
  2. Propose fixes: list the issues you can fix and confirm with the user before changing anything.
  3. Map issues to source: find the template, component, or content file behind each finding.
  4. Fix in batches: apply the approved fixes; use subagents to parallelize independent files.
  5. Re-audit (use --refresh after deploys or content changes) and show before/after scores.
  6. Repeat until the target is met or only judgment calls remain (for example "should this link be removed?"). Flag those for user review instead of guessing.

After each batch, verify the project still builds and existing checks pass.

Score targets

Starting scoreTargetExpected work
< 50 (F)75+ (C)Major fixes
50-70 (D)85+ (B)Moderate fixes
70-85 (C)90+ (A)Polish
> 85 (B+)95+Fine-tuning

A site is only considered COMPLETE and FIXED when it scores 95+ (Grade A) with --coverage full.

Issue categories and fix approach

CategoryFix approachParallelizable
Meta tags / titles / descriptionsEdit page components or metadata configNo
Structured dataAdd JSON-LD to page templatesNo
Missing H1 / heading hierarchyEdit page components + content filesYes (content)
Image alt textEdit content filesYes
Short meta descriptionsExtend frontmatter descriptionsYes
HTTP to HTTPS linksFind and replace in contentYes
Broken linksManual review, flag for userNo

Rules carry a level (error, warning, notice) and a rank (1-10): fix errors first, then high-rank warnings. Code changes and content changes are equally important; treat them the same.

Parallelizing with subagents

  • Ask the user first: always confirm which fixes to apply before spawning subagents.
  • Group 3-5 files per subagent for the same fix type; only parallelize independent files (no shared components or config).
  • Spawn the subagents in a single message so they run concurrently.

Verifying regressions

Compare against a baseline to prove improvement or catch regressions:

squirrel report --diff <baseline-audit-id> --format llm
squirrel report --regression-since example.com --format llm

Completion

Done means: all errors fixed; warnings fixed or documented as needing human review; a re-audit confirms the improvement; and the user has seen the before/after score comparison plus a summary of every change made. Re-audit regularly to keep the site healthy. If the user wants to share results, offer a published report (see the squirrelscan skill).

Report format

The LLM report is a compact XML/text hybrid optimized for token efficiency: summary with health score, issues grouped by category with affected URLs, broken links, and prioritized recommendations. Full spec: OUTPUT-FORMAT.md

相關技能

omni-content-builder
exploreomni
以程式化方式建立、更新及管理 Omni Analytics 文件與儀表板——文件生命週期、圖塊、視覺化、篩選器與版面配置——使用……
recipe-review-meet-participants
Google
檢視哪些人參加了Google Meet會議以及參加了多久。
sentry-react-sdk
sentry
完整的 Sentry SDK 設定,適用於 React。當被要求「為 React 加入 Sentry」、「安裝 @sentry/react」或設定錯誤監控、追蹤、工作階段重播……時使用。
azure-ai-agents-persistent-java
microsoft
Azure AI Agents Persistent SDK for Java. Low-level SDK for creating and managing AI agents with threads, messages, runs, and tools. Triggers:…
convex-db
convex-dev
使用 Convex DB — 一種基於格結構的 SQL 資料庫。適用於協助使用者撰寫查詢、透過 JDBC 或 PostgreSQL 客戶端連線、建立資料表、插入/查詢資料等。
agent-experience
browserbase
審核產品、SDK、文檔網站或 SKILL.md 的開發者體驗,方法是投放多個 Claude 子代理,僅附上極簡任務提示和真實…
gpt-image-2
doany-ai
使用 OpenAI GPT Image 2(ChatGPT Images 2.0)在 RunComfy 上生成和編輯圖像。說明 GPT Image 2 的優勢(嵌入文字、標誌、多語言排版、指令精確度)、其三種固定尺寸、保留編輯的語言,以及何時轉向同類工具(Flux 2 / Nano Banana Pro / Seedream)。透過本機 RunComfy CLI 呼叫
creativeimageapi
auth0-nuxt
auth0
Use when adding Auth0 login, logout, session management, or protected routes to a Nuxt 3 or Nuxt 4 application. Integrates @auth0/auth0-nuxt — use even if the…