wp2next seo
Search and AI-search checks: WordPress vs Next parity (a launch gate), an audit, AI-search readiness, and the fixes you approve.
| Synopsis | wp2next seo [parity|audit|aeo|fix] [<url>|all] [--prelaunch] [--live] (Claude desktop and Claude Code plugin: /wp2next:seo; Codex: $wp2next seo; Cursor: /wp2next seo) |
|---|---|
| Changes code | Only seo fix: code on a branch wp2next/seo-fix-<date>, and SEO text as Sanity drafts (never published) |
| Touches outside services | The scans only read pages. fix may propose creating the IndexNow Sanity webhook, adding INDEXNOW_KEY to Vercel and submitting sitemaps in Search Console or Bing; each asks first. Reading the live WordPress site instead of Local also asks first |
| Reads | WordPress (Local, or the live site with your yes), the Next production build or deployment, wp2next.json, Sanity content (aeo), Search Console exports if you provide them |
| Writes | Reports in .wp2next/seo/, seo.lastParity / seo.lastAudit / seo.aiCrawlers in wp2next.json; with fix, code and Sanity drafts |
What it does
| Mode | What it checks | Edits |
|---|---|---|
parity | Per URL, WordPress vs the Next production build: status, title, description, canonical, robots, Open Graph and Twitter tags, hreflang, structured data (JSON-LD), H1, image alt text; the sitemap's URLs; robots.txt; internal routes. Any blocker stops launch | No |
audit | The Next site on its own: missing or duplicate metadata, canonical and robots conflicts, sitemap vs pages, structured-data validity, redirects, internal links, Core Web Vitals, Search Console data if you provide it | No |
aeo | AI-search readiness: business name, address and phone consistent everywhere, Organization/LocalBusiness schema, answer-shaped content, authorship and dates, Bing and IndexNow, llms.txt (optional), and your AI-crawler policy | No (records your crawler choice) |
fix | Applies approved fixes from the latest report | Yes |
Defaults. With no mode, it runs parity before launch (phase 12 not done) and audit after.
With no target, it checks every URL from the migration's URL list.
The AI-crawler policy is your choice; aeo presents three options with their trade-off:
allow all (recommended for most small businesses that want to be found and cited), allow search
but block training, or block all (which also removes the site from ChatGPT, Claude and Perplexity
answers, but not from Google AI Overviews). "Not now" keeps it undecided.
What fix does. It lists the fixes in two groups and asks once for the list:
- Safe (nothing visible changes, no URL changes): restoring WordPress's metadata values, structured-data fixes, removing self-serving review markup, sitemap and robots.txt fixes, the AI-crawler setting, noindex headers on internal routes, optional llms.txt and IndexNow.
- Departures (visible copy, headings, URLs, new or removed pages) need approval one by one, and in
pixel mode they wait for parity sign-off. URL changes go through
optimize redirects.
Text values (titles, descriptions, social images, alt text) are written to Sanity as drafts; you or the client publish them in Studio. After the fix it re-runs the check and shows before and after.
It never claims rankings or AI citations will change; it says what was checked.
Arguments and options
| Argument | Effect |
|---|---|
parity / audit / aeo / fix | The mode |
<url> | One page (plus the home page; sitemap and robots checks still run) |
all | Every URL |
--prelaunch | The Next build is still noindex on purpose (before cutover); don't flag that |
--live | Check the live domain after launch |
Examples
/wp2next:seo parity/wp2next:seo parity$wp2next seo parity/wp2next seo paritywp2next seo parity /contact-us/: compare one page.wp2next seo audit --live: a health check of the live site after launch.wp2next seo aeo: AI-search readiness, and record the AI-crawler policy.wp2next seo fix: apply the fixes from the latest report.
Related
- SEO and AI search guide
content metashares the draft path ·optimize redirects·compliance- Scripts:
seo-scan.mjs,redirect-audit.mjs - Agent instructions:
references/commands/seo.md (external site)