# Static Site SEO & AI-Search Fixer: llms.txt, sitemap, robots

> Your agent scans a static site folder, fixes canonical, hreflang, Open Graph and JSON-LD errors, and updates robots.txt, sitemap.xml and llms.txt, with a backup first.

Static Site SEO & AI-Search Fixer: llms.txt, sitemap, robots is a paid AI agent skill on Agensi by Alejandro Berdonces, in Marketing & SEO. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Alejandro Berdonces](https://www.agensi.io/creators/alejandro-berdonces)
- Category: [Marketing & SEO](https://www.agensi.io/skills/marketing-seo)
- Version: 1.0
- Last updated: 2026-12-04
- Security: scan passed (2026-12-04); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/static-site-seo-ai-search-fixer-llms-txt-sitemap-robots
- Tags: marketing, web-design, seo, static-site, sitemap, robots-txt, llms-txt, hreflang

## What it does

- Backs up your site folder, then scans every HTML page for broken technical SEO
- Fixes canonical, hreflang, Open Graph and JSON-LD errors directly in your files
- Finds images, CSS and scripts that pages reference but are not in the folder
- Rebuilds sitemap.xml with honest dates and leaves out pages that should not be indexed
- Checks robots.txt for blocked AI search crawlers without replacing your rules
- Shows a before and after comparison and a short report of every change

## Who it's for

- **Developers with a static or hand-coded site:** Re-check the technical SEO layer after every change without doing it by hand. Try: "Fix the SEO of this site: ./public"
- **Freelancers who build sites for clients:** Hand over a site with clean canonicals, sitemap and share cards, plus a report for the client. Try: "Check this client site before I deliver it and fix what is broken"
- **Site owners who just added a language:** Pairs each page with its translation and repairs hreflang links that do not point both ways. Try: "I just added the English version. Check my hreflang"

## About this skill

An audit tells you what is wrong on a live URL. This skill works on the folder with your HTML files and fixes it there.

Every time a static site changes (a new page, a new language, an edited template) small technical things break: a canonical written as `class` instead of `rel`, an `og:image` that points to a file with another extension, an hreflang link that does not point back, a sitemap that still lists last year's pages.

### How it works

1. **Backup.** It copies your site folder to a sibling folder before touching anything, and records title, canonical, hreflang, `h1` and other key tags of every page.
2. **Scan.** A script reads every HTML page and lists what is broken (critical), what should be fixed (warning) and what is worth a look (info).
3. **Fix.** Your agent edits the pages: canonical, hreflang, Open Graph, JSON-LD syntax, wrong asset paths, image `width` and `height` read from the real file.
4. **Root files.** `robots.txt` is merged, never replaced: your rules stay, the `Sitemap` line is added if missing, and you decide what to do with AI training crawlers. `sitemap.xml` is rebuilt from the pages that should be indexed. `llms.txt` is checked and its format fixed.
5. **Verify.** It scans again and compares before and after, so an accidental change to an `h1` or a canonical shows up in red.
6. **Report.** What changed, file by file, and what is left for you to decide.

### What makes it careful

- It never rewrites your visible text, creates pages or moves URLs. It suggests those in the report.
- It asks before removing anything a visitor would notice: an image whose file is missing, a language version that does not exist, a line in `llms.txt`.
- Sitemap dates do not move when only tags were fixed. A date changes when the text, the links or the structured data of a page changed.
- A crawler that is already named in your `robots.txt` is never changed.
- It does not push, deploy or send anything over the network. It ends with local files and a report.
- It does not promise rankings or mentions in AI answers. It removes technical obstacles.

Works on multilingual sites with several pages per language: it pairs pages by their real two-way links instead of assuming one page per language.

## Requires

- Python
- Agent with local file access

Your agent must be able to read and write files in the site folder and run Python scripts. No packages to install.

## Known limitations

Static sites in a local folder only: not for WordPress or other database-driven sites, and not for a live URL with no local files. Sites built by a generator are fixed in the output folder, so the changes are lost on the next build unless you apply them to the templates too. It does not write or rewrite page copy, alt text or headings; it suggests them. It does not publish, push or deploy. It cannot check images hosted on another domain or what a CDN in front of the site does with AI crawlers. Content that only appears after JavaScript runs is not read. It does not guarantee rankings, rich results or mentions in AI answers.

## Technical details

For agents that can read and write files in a local folder and run Python 3.8+ (Claude Code, Codex, Cursor and similar). Three self-contained scripts, standard library only, no network access: site_snapshot.py (backup, snapshot, before/after comparison), scan_site.py (read-only page scan) and build_positioning_files.py (robots.txt check and merge, sitemap.xml rebuild, llms.txt check, optional IndexNow key file; dry run unless --write). Page fixes are made by the agent with its own file-editing tool, following SKILL.md. Reads .html and .htm files, robots.txt, sitemap.xml, llms.txt and CNAME; writes HTML pages, robots.txt, sitemap.xml and, on request, llms.txt and an IndexNow key file. The backup and working files go to a sibling folder named after the site with the suffix -seo-backups. Folders starting with a dot or underscore and node_modules are not scanned, and the scripts say so. Two reference files explain the reason behind each check and give the report template.

## 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 SEO & AI-Search Fixer: llms.txt, sitemap, robots skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### Does it work with WordPress, Shopify or Wix?

No. It works on a folder of HTML files on your computer. For hosted platforms, use an audit skill instead.

### My site is built with a static site generator. Can I use it?

Yes, on the output folder, to see and fix what is broken. Changes made there are overwritten by the next build, so apply the same fixes to your templates.

### Will it change my texts?

No. It never rewrites visible copy, headings or alt text. When a title or description is missing, it takes it from the page's own heading and first paragraph and lists it in the report for you to review.

### What does it do with my robots.txt?

It keeps every existing line. It adds the Sitemap line if it is missing, tells you if an AI search crawler is blocked, and asks whether you want AI training crawlers allowed, blocked or left as they are.

### Will this get me cited by ChatGPT or ranked higher on Google?

No one can promise that. The skill removes technical obstacles: pages a crawler cannot pair, share cards with no image, a sitemap with wrong dates. The content still has to earn the rest.

### Can I undo the changes, and does it send my site anywhere?

Before any edit it copies the whole site to a sibling folder and tells you the path, so you can restore it. The scripts have no network access and the skill does not publish, push or deploy.

---

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.
