SEO Competitor Pages
by agricidaniel / claude-seo
Generate SEO-optimized competitor comparison and alternatives pages.
Watches competitors' sitemaps and pages for newly published and materially updated URLs, showing how fast they publish and which topics they invest in.
Listed ·Updated
AGENT ROLE: Autonomous competitive-content agent. Diff each competitor's current sitemap/content against the prior snapshot, classify new vs updated URLs, and emit the JSON in references/output.schema.json. Stateful across runs via previous.
For each competitor, detect which URLs are newly published or materially updated since the last run, extract their topic and publish/modified dates, and summarize content velocity and topical focus — a stateful intelligence feed.
competitors (REQUIRED): array of { domain, sitemap_url? } (sitemap auto-discovered from robots.txt if omitted).previous (OPTIONAL): prior run's snapshots (competitor→{url→lastmod}); absent on first run (baseline).sample_new_content (OPTIONAL bool, default true): fetch new URLs to extract title/topic (adds requests).max_urls_per_competitor (OPTIONAL, default 5000).seoskills-content-monitor/1.0, honor robots.scripts/competitor_content.py --competitors competitors.json [--previous previous.json].{loc, lastmod}. IF sample_new_content: GET each NEW url to extract <title>/datePublished.STEP 1 — DISCOVER + PARSE the sitemap(s); collect {url: lastmod} (up to the cap).
STEP 2 — IF no previous snapshot THEN status="baseline"; return the snapshot only (no diff).
STEP 3 — DIFF vs previous:
NEW: url absent from the previous snapshot.UPDATED: url present but lastmod newer than before.REMOVED: url in previous but gone now (deindexed/pruned).
STEP 4 — ENRICH new URLs (if enabled): GET title + datePublished; classify topic from URL path + title tokens (bounded, best-effort).
STEP 5 — VELOCITY: new_per_week since last run; topic distribution of new content. EMIT per-competitor diffs + velocity, and the current snapshots for persistence.sitemap_unreachable, carry forward its previous snapshot (do not report false NEW/REMOVED).429/503 from a host → stop sampling that host, keep the diff (mark enrichment="partial").max_urls_per_competitor (hit_cap=true).lastmod THEN UPDATED cannot be detected for that competitor — only NEW/REMOVED — set update_detection=false and note it.One JSON object per references/output.schema.json. The snapshots MUST be persisted for the next run.
scripts/competitor_content.py — sitemap discovery/diff, new-content enrichment, velocity.references/output.schema.json — output contract.Not using the CLI? Copy the SKILL.md and paste it straight into ChatGPT, Claude, or any agent.