# Static Site Pre-Deploy Audit: SEO, Links, Leaks

> Check your built static site for broken images, hreflang and canonical mistakes, sitemap errors and leaked keys before you deploy. Local, read-only, no API keys.

Static Site Pre-Deploy Audit: SEO, Links, Leaks is a free AI agent skill on Agensi by Ecomdev, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Ecomdev](https://www.agensi.io/creators/ecomdev)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/static-site-pre-deploy-audit-seo-links-leaks
- Tags: seo, static-site, deploy, audit, hreflang

## About this skill

Your source code can look fine while the build is broken. This skill checks the files you are about to deploy.

It finds:
- broken links and missing srcset images
- hreflang tags without return links, wrong canonicals
- noindex pages in the sitemap and indexable pages missing from it
- missing social images and invalid JSON-LD
- shipped source maps, localhost URLs and common leaked key formats

Your agent groups findings by cause, confirms them, and fixes only what you approve.

On our own 192-page, three-language site it found one missing image variant referenced by 45 pages. The audit took about one second.

Local and read-only: no dependencies, no network requests, no API keys. Needs Node.js 20+. Works with static output from Vite, Astro, Next export, Hugo, Eleventy and plain HTML.

Limits: it does not run JavaScript, so client-rendered anchors and server routes need a manual check. Secret detection covers common key formats only.

## Requires

- Node.js 20+

## Known limitations

Requires Node.js 20. Cannot audit client-side rendered routes or server-side redirects. Secret detection is limited to common patterns. Site sub-paths require explicit --site configuration.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Static Site Pre-Deploy Audit: SEO, Links, Leaks skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this differ from standard linting or TypeScript checks?

While linters check your source code, this skill audits the final output. It catches errors created during the build process, such as incorrect asset paths, broken internal links, and leaked secrets that only appear in minified production files.

### Which frameworks and environments are supported?

It audits static HTML output from any build folder, for example from Vite, Astro, Next.js static export, Hugo or Eleventy. It requires Node.js 20 or newer. Server-rendered routes are not covered.

### Can the skill automatically fix the errors it finds?

The audit script itself is read-only. After you approve a fix, your agent edits the source files, then rebuilds and runs the audit again to confirm it. Nothing is changed without your approval.

### What kind of 'secrets' can the audit detect?

Private key headers and common formats of AWS, GitHub, OpenAI, Anthropic, Stripe live, Slack and Telegram bot tokens. Google API keys are reported as a warning. It also flags shipped .env files, key files, source maps and localhost URLs. It never prints the value it finds and does not replace a full secret scanner.

### Why should I use this skill instead of just asking an LLM to check my code?

This skill performs a local, file-by-file inspection of your actual build artifacts. A standard LLM prompt can only guess based on source code; this skill identifies the physical presence (or absence) of files, absolute paths, and metadata consistency.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
