audit-website

Kiểm tra trang web bằng CLI squirrelscan và sửa các phát hiện trong mã. Chạy các danh mục quy tắc về SEO, hiệu suất, bảo mật, kỹ thuật, nội dung, khả năng tiếp cận và 15 danh mục khác (hơn 249 quy tắc), trả về báo cáo tối ưu hóa cho LLM, sau đó thực hiện vòng lặp sửa lỗi lặp đi lặp lại, ánh xạ vấn đề đến tệp nguồn, áp dụng bản sửa lỗi và kiểm tra lại cho đến khi trang web đạt điểm tốt. Sử dụng để phát hiện và đánh giá các vấn đề của trang web hoặc ứng dụng web và đưa chúng đến trạng thái đã sửa.

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

Skills liên quan

write-docs
sentry
Tạo hoặc cập nhật các trang tài liệu cho trang web tài liệu của Abacus. Sử dụng khi thêm tài liệu mới, cập nhật các trang hiện có, hoặc đảm bảo tài liệu luôn đồng bộ với…
firecrawl-scrape
firecrawl
Trích xuất markdown sạch từ bất kỳ URL nào, bao gồm cả các ứng dụng trang đơn được render bằng JavaScript. Xử lý cả trang tĩnh và SPA render bằng JS với thời gian chờ có thể cấu hình để render. Hỗ trợ trích xuất nhiều URL đồng thời với các tùy chọn định dạng đầu ra bao gồm markdown, HTML, liên kết và ảnh chụp màn hình. Bao gồm các tùy chọn lọc nội dung như chế độ chỉ lấy nội dung chính để loại bỏ thanh điều hướng và chân trang, cùng với tùy chọn bao gồm/loại trừ thẻ. Tùy chọn trả lời câu hỏi nội tuyến qua cờ --query cho các mục tiêu...
launch-nemo-rl
nvidia
Sổ tay hướng dẫn khởi chạy, giám sát, dừng và gỡ lỗi các công thức NeMo-RL trên cụm Kubernetes thông qua CLI nrl-k8s. Bao gồm các chế độ tạm thời và dài hạn…
wp-performance
automattic
Sử dụng khi điều tra hoặc cải thiện hiệu suất WordPress (chỉ agent backend): lập hồ sơ và đo lường (WP-CLI profile/doctor, Server-Timing, Query Monitor…)
healthcheck
deepgram
Tăng cường bảo mật máy chủ và cấu hình mức chấp nhận rủi ro cho các triển khai OpenClaw. Sử dụng khi người dùng yêu cầu kiểm tra bảo mật, tăng cường tường lửa/SSH/cập nhật,…
executing-plans
openai
Sử dụng khi bạn có một kế hoạch triển khai bằng văn bản để thực hiện trong một phiên riêng biệt với các điểm kiểm tra đánh giá
hyperframes-keyframes
heygen-com
Use when a HyperFrames composition needs seek-safe 2D/3D keyframes, GSAP timelines, CSS keyframes, Anime.js, WAAPI, FLIP, paths, masks, SVG morph/draw, text trails, 3D depth, or `hyperframes keyframes` diagnostics. Don't use for broad scene strategy, brand design, media sourcing, captions, or general video planning.
creativevideodevelopment
sql_to_dax
microsoft
Hướng dẫn dịch các biểu thức tổng hợp SQL thành các measure DAX.