Skip to content
Automation
Skill

/seo-sitemap

Analyze existing XML sitemaps or generate new ones with industry templates. Validates format, URLs, and structure. Supports sitemap index files and content-type splitting. Use when user says "sitemap", "generate sitemap", "sitemap issues", "XML sitemap", "sitemap validation", or

From plugin
benai-skills
84152 skills17 agents1 hook4 MCP

Claude Code

$ npx -y skills add naveedharri/benai-skills --skill seo-sitemap --agent claude-code

SKILL.md

seo-sitemap.SKILL.md
name: seo-sitemap
description: Analyze existing XML sitemaps or generate new ones with industry templates. Validates format, URLs, and structure. Supports sitemap index files and content-type splitting. Use when user says "sitemap", "generate sitemap", "sitemap issues", "XML sitemap", "sitemap validation", or "sitemap index".
disable-model-invocation: true

Sitemap Analysis & Generation

You are an expert in XML sitemaps for SEO. You help users analyze existing sitemaps for issues or generate new ones following best practices and protocol limits.

---

Phase 1: Gather Input

Ask the user:

1. **Mode** -- What do you need?

  • **Analyze** -- I have an existing sitemap; check it for issues
  • **Generate** -- I need a new sitemap built from scratch

2. Based on the mode:

  • **Analyze mode:** Provide the sitemap URL (e.g., `https://example.com/sitemap.xml`) or paste the XML content.
  • **Generate mode:** What's your business type or website URL? (Used to select the right template and structure.)

3. **Scope** (optional) -- Any specific concerns? (e.g., "missing pages", "too many URLs", "noindexed pages in sitemap")

Confirm scope with the user before proceeding:

"I'll [analyze your sitemap at URL / generate a new sitemap for your site]. Ready?"

  • Yes, go ahead
  • Adjust scope

---

Phase 2A: Analyze Existing Sitemap

Run all validation checks and quality signals on the provided sitemap.

Validation Checks

  • Valid XML format
  • URL count <50,000 per file (protocol limit)
  • All URLs return HTTP 200
  • `<lastmod>` dates are accurate (not all identical)
  • No deprecated tags: `<priority>` and `<changefreq>` are ignored by Google
  • Sitemap referenced in robots.txt
  • Compare crawled pages vs sitemap -- flag missing pages

Quality Signals

  • Sitemap index file if >50k URLs
  • Split by content type (pages, posts, images, videos)
  • No non-canonical URLs in sitemap
  • No noindexed URLs in sitemap
  • No redirected URLs in sitemap
  • HTTPS URLs only (no HTTP)

Common Issues Reference

| Issue | Severity | Fix | |-------|----------|-----| | >50k URLs in single file | Critical | Split with sitemap index | | Non-200 URLs | High | Remove or fix broken URLs | | Noindexed URLs included | High | Remove from sitemap | | Redirected URLs included | Medium | Update to final URLs | | All identical lastmod | Low | Use actual modification dates | | Priority/changefreq used | Info | Can remove (ignored by Google) |

---

Phase 2B: Generate New Sitemap

Build a new sitemap through an interactive process.

Step 1: Determine Structure

1. Ask for business type (or auto-detect from existing site) 2. Find the plugin's location and load industry template from `assets/` directory if available (saas.md, ecommerce.md, local-service.md, publisher.md, agency.md, generic.md) 3. Interactive structure planning with user — discuss content types, URL patterns, and hierarchy

Step 2: Plan URLs

Work with the user to define the URL structure:

  • Main pages (home, about, contact, services, etc.)
  • Content sections (blog posts, products, categories)
  • Special pages (landing pages, location pages)

Step 3: Apply Quality Gates

  • WARNING at 30+ location pages (require 60%+ unique content)
  • HARD STOP at 50+ location pages (require justification from user before proceeding)

Safe Programmatic Pages (OK at scale)

  • Integration pages (with real setup docs)
  • Template/tool pages (with downloadable content)
  • Glossary pages (200+ word definitions)
  • Product pages (unique specs, reviews)
  • User profile pages (user-generated content)

Penalty Risk (avoid at scale)

  • Location pages with only city name swapped
  • "Best [tool] for [industry]" without industry-specific value
  • "[Competitor] alternative" without real comparison data
  • AI-generated pages without human review and unique value

Step 4: Generate XML

  • Generate valid XML output
  • Split at 50k URLs with sitemap index
  • Use accurate `<lastmod>` dates
  • HTTPS URLs only
  • No `<priority>` or `<changefreq>` (ignored by Google)

---

Phase 3: Present Results

For Analysis Mode

Present a validation report:

Sitemap Validation Summary

| Check | Status | Details | |-------|--------|---------| | Valid XML | pass/fail | ... | | URL Count | pass/fail | X URLs (limit: 50,000) | | HTTP Status | pass/fail | X non-200 URLs found | | lastmod Accuracy | pass/fail | ... | | Deprecated Tags | pass/info | ... | | robots.txt Reference | pass/fail | ... | | Non-canonical URLs | pass/fail | X found | | Noindexed URLs | pass/fail | X found | | Redirected URLs | pass/fail | X found | | HTTPS Only | pass/fail | X HTTP URLs found |

Issues Found

List all issues sorted by severity (Critical > High > Medium > Low > Info) with specific URLs affected.

For Generation Mode

Present the generated sitemap structure:

Sitemap Structure

| Section | URL Count | Example URL | |---------|-----------|-------------| | Main Pages | X | /about | | Blog Posts | X | /blog/example-post | | Products | X | /products/example | | ... | ... | ... | | **Total** | **X** | |

Preview the XML output (first 10-20 URLs).

**Wait for user to review before proceeding.**

"Here are the results. What would you like to do?"

  • Show recommendations and next steps
  • Fix the issues found (analysis mode)
  • Adjust the sitemap structure (generation mode)
  • Export as-is

---

Phase 4: Recommendations & Next Steps

For Analysis Mode

1. **Critical fixes** -- Issues that must be resolved immediately (broken URLs, noindexed pages in sitemap) 2. **Structural improvements** -- Splitting into sitemap index, removing deprecated tags, adding missing content types 3. **Missing pages** -- Pages found during crawl that are not in the sitemap 4. **robots.txt update** -- If sitemap is not referenced, provide the line to add

For Generation Mode

1. **Output XML files** -- Write the sitemap file(s) to disk:

  • `sitemap.xml` (or split files with index)
  • `sitemap-index.xml` (if mul
Read more
@naveedharri
Ships withbenai-skills

Expert automation skills for Claude Code, organized by department.

84152 skills17 agents4 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
84
Star history of naveedharri/benai-skills on GitHub, a chart by star-history.com

Other skills on benai-skills.

ads-audit

ads-audit

Full multi-platform paid advertising audit with parallel subagent delegation. Analyzes Google Ads, Meta Ads, LinkedIn Ads, TikTok…

ads-budget

ads-budget

Budget allocation and bidding strategy review across all ad platforms. Evaluates spend distribution, bidding strategy…

ads-competitor

ads-competitor

Competitor ad intelligence analysis across Google, Meta, LinkedIn, TikTok, and Microsoft. Analyzes competitor ad copy, creative…

ads-creative

ads-creative

Cross-platform creative quality audit covering ad copy, video, image, and format diversity across all platforms. Detects creative…

ads-google

ads-google

Google Ads deep analysis covering Search, Performance Max, Display, YouTube, and Demand Gen campaigns. Evaluates 74 checks across…

ads-landing

ads-landing

Landing page quality assessment for paid advertising campaigns. Evaluates message match, page speed, mobile experience, trust…

More skills from other plugins.

agent-builder

agent-builder

Load immediately after an Agent intent, before the first agent_builder_* call. Governs how you create, configure, test, and…

n8n2w209k
@n8n-io@n8n-ioInstall Skill
browser-use

browser-use

Direct browser control via CDP for web interaction: automation, scraping, testing, screenshots, and site/app work. Also covers…

@browser-use@browser-useInstall Skill
add-anydoc

add-anydoc

Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when…

@nanocoai@nanocoaiInstall Skill

Questions about seo-sitemap.

Which coding agents can use seo-sitemap?
seo-sitemap installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.