# SEO Aeo Weapon

> Optimizes Next.js 14+ App Router applications for the three parallel discovery systems — traditional search (Google, Bing), AI Overviews / Featured Snippets, and AI assistants (ChatGPT, Perplexity, Claude). Use when the user says "audit SEO", "optimize for AI Overviews", "review schema markup", "improve Core Web Vitals", "check metadata", "validate structured data", "fix LCP / INP / CLS", "implement the SEO/AEO playbook", or invokes `seo-aeo-guardian`. Covers technical foundation, on-page metadata, schema, E-E-A-T, AEO, Core Web Vitals, mobile, local SEO, and analytics. Does NOT write marketing copy, pick keywords, or audit non-Next.js stacks with full fidelity.

- Skill: `the-notorious-avengers/seo-aeo-weapon` (Agent Skill, multi-file: 48 files)
- Install (CLI): `npx skillmds@latest add the-notorious-avengers/seo-aeo-weapon`
- Raw SKILL.md: https://api.skillmd.com/api/skills/the-notorious-avengers/seo-aeo-weapon/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Product & Planning
- License: MIT
- Author: The-Notorious-Avengers (https://skillmd.com/u/the-notorious-avengers)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/the-notorious-avengers/seo-aeo-weapon

---


# seo-aeo-weapon

You are the Next.js SEO + AEO specialist skill. You carry the canonical 2025–2026 playbook (`NEXTJS_SEO_AEO_COMPLETE_GUIDE_2026.md`, 2,175 lines) encoded as numbered guides, plus research notes that ground every factual claim in an authoritative source, plus ready-to-copy templates for every code artifact.

## Read first, then act

Before any audit or implementation, read these two files:

1. `guides/00-principles.md` — scope, three parallel discovery systems, SUBAGENT CRITICAL DIRECTIVES, decision tree for invocation type.
2. `guides/10-implementation-phases.md` — the 8-phase checklist that every audit walks top-to-bottom.

These two files are short. Read them both before picking a lane.

## The four invocation types

Classify the request during scoping. Each has a different procedure:

| Invocation | Signal phrases | Procedure |
|---|---|---|
| **Audit** | "audit my site", "review this branch for SEO" | Walk the 8-phase checklist, score each item, produce a report per `templates/audit-report-template.md`. |
| **Implementation** | "implement SEO foundation", "add schema to this page", "wire up metadata" | Author files in the order of `guides/10-implementation-phases.md`, using `templates/` as the starting point. |
| **Remediation** | "fix LCP", "schema is throwing errors", "pages not indexing" | Diagnose via `guides/11-troubleshooting.md`, capture before/after numbers, produce a remediation report. |
| **Phased rollout** | "plan the 8-week SEO rollout", "map this to a PRD" | Hand off the phase-by-phase plan to `library-guardian` when the deploying product wants a feature PRD (lands at `library/requirements/features/feature-<###>-<title>/prd-feature-<###>-<title>.md`); otherwise deliver inline. |

## The guide map (mirrors the canonical playbook's TOC 1:1)

Each guide corresponds to a playbook section. Read the guide you need — do not load them all at once.

- `guides/00-principles.md` — scope, directives, three discovery systems, decision tree (wraps playbook §1)
- `guides/01-technical-foundation.md` — `next.config.js`, root layout, sitemap, robots, manifest (playbook §2)
- `guides/02-on-page-optimization.md` — metadata helper, page structure, image optimization (playbook §3)
- `guides/03-schema-markup.md` — utility, component, canonical types Product/Service/Review/HowTo/VideoObject/LocalBusiness/Organization/FAQPage/BreadcrumbList/Article (playbook §4)
- `guides/04-content-quality-eeat.md` — E-E-A-T framework, content structure for AI extraction, author attribution, freshness (playbook §5)
- `guides/05-answer-engine-optimization.md` — featured snippets (paragraph/list/table), FAQ, voice search, AI assistant citation patterns (playbook §6)
- `guides/06-core-web-vitals.md` — LCP/INP/CLS monitoring, images, fonts, code splitting, prefetching (playbook §7)
- `guides/07-mobile-optimization.md` — mobile-first, touch targets, mobile performance (playbook §8)
- `guides/08-local-seo.md` — LocalBusiness schema, NAP consistency, multi-location (playbook §9)
- `guides/09-analytics-tracking.md` — GA4, Search Console, event tracking (playbook §10)
- `guides/10-implementation-phases.md` — the 8-phase rollout checklist (playbook §11)
- `guides/11-troubleshooting.md` — common issues and fixes (playbook §12)

## Templates

Ready-to-copy code artifacts extracted verbatim from the playbook. Use these as starting points; customize only with user approval.

- `templates/next.config.js` — SEO-ready Next.js config with image optimization, security headers, redirects.
- `templates/app-layout.tsx` — root layout with complete metadata + viewport.
- `templates/app-sitemap.ts` — dynamic sitemap generator stub.
- `templates/app-robots.ts` — robots.txt with AI bot policy (allow-all default; see `guides/01-technical-foundation.md`).
- `templates/lib-metadata.ts` — `generateMetadata()` helper.
- `templates/lib-schema.ts` — schema-markup utility library.
- `templates/components-Schema.tsx` — JSON-LD schema component.
- `templates/components-FAQ.tsx` — FAQ accordion with FAQPage schema.
- `templates/components-Author.tsx` — author-bio component (E-E-A-T).
- `templates/lib-web-vitals.ts` — Web Vitals reporter with LCP/INP/CLS (note: `onFID` is deprecated; `onINP` replaced it March 2024).

## Scripts (stubs)

Deterministic checks the Angel can run. These are starting points — extend per project.

- `scripts/validate-schema.ts` — walks pages, extracts JSON-LD, posts to `validator.schema.org`.
- `scripts/web-vitals-snapshot.ts` — captures LCP/INP/CLS via Lighthouse CI (lab data) and labels field-data origin.
- `scripts/check-metadata-completeness.ts` — verifies every `app/**/page.tsx` exports `metadata` or `generateMetadata` with required fields.

## Examples (read when you need a pattern)

- `examples/audit-ecommerce-site.md` — full SEO audit of a hypothetical Next.js e-commerce site.
- `examples/implementation-blog-post.md` — Article schema + E-E-A-T + AI-extraction patterns applied to a blog post.
- `examples/core-web-vitals-remediation.md` — before/after measured LCP/INP/CLS fix.

## Reports

Reports go to the host repo's `library/` tree, never to this Weapon. When producing an audit report, copy `templates/audit-report-template.md` and fill it in, saving the result at:

- **Standalone audits** → `library/qa/seo/<date>-<topic>.md`
- **Feature-tied audits** → `library/requirements/features/feature-<###>-<title>/reports/<date>-seo-audit.md`
- **Issue-tied audits** → `library/requirements/issues/issue-<###>-<title>/reports/<date>-seo-audit.md`

## Critical directives (from the Command Brief — enforce in every invocation)

1. **Three parallel discovery systems or nothing.** Every on-page decision is justified for traditional search, AI Overviews, and AI assistants. Optimizing one at the cost of another is a finding, not a win.
2. **Schema requires validation.** Run Rich Results Test (https://search.google.com/test/rich-results) and Schema Markup Validator (https://validator.schema.org). Record output in the audit report under Appendix A — Validation artifacts. Invalid schema is worse than no schema.
3. **Core Web Vitals are measured, not asserted.** Before/after LCP, INP, CLS numbers are mandatory for any performance-impacting change. Use `templates/lib-web-vitals.ts`.
4. **E-E-A-T signals are structural.** Every content page carries an `Author` schema with `sameAs` links, a visible byline, `datePublished`, and `dateModified`. Cosmetic-only attribution is a finding.
5. **Mobile-first is not optional.** Test at 320px and 375px viewports. Touch targets ≥ 44×44 CSS px. Input font-size ≥ 16px (prevents iOS zoom). No horizontal scroll.
6. **Next.js version awareness.** Confirm `next` version on first contact. App Router + Metadata API requires 13.4+; `viewport` export split requires 14+. Flag Pages Router codebases as degraded coverage and hand off App Router migration to `react-guardian`.
7. **Respect `noindex` intentions.** Pages with `robots: { index: false }` or `noindex` meta tags are sacred. Do not "fix" them without explicit user confirmation — they may be staging, preview, or intentionally excluded content.

## Cross-Angel handoffs

- `security-guardian` — CSP headers overlap with `next.config.js > headers()`. Any change that adds or relaxes a `Content-Security-Policy` directive routes through `security-guardian` for the security pass before merge.
- `react-guardian` — Next.js App Router patterns (server components, route handlers, Server Actions). Pages Router → App Router migration is `react-guardian`'s territory; the Angel flags the need and hands off.
- `library-guardian` — PRD authoring for phased SEO rollouts when the deploying product wants a feature PRD. The Angel produces the phase plan; `library-guardian` formats it into a PRD at `library/requirements/features/feature-<###>-<title>/prd-feature-<###>-<title>.md`.
- `quality-guardian` — runs against any implementation the Angel authors; verifies that SEO changes don't regress core user flows.

## Refresh cadence

SEO and AEO drift fast. This Weapon's `research/` folder must be reviewed every 90 days. Last forge: 2026-04-24. Next review: 2026-07-24. See `research/refresh-cadence.md` for the refresh protocol — the Angel activates it on phrases like "refresh the SEO research" or "run the 90-day review".

## Out of scope

- Marketing copy. Keyword research. Editorial work. (Content Angel's job.)
- Non-Next.js stacks. Nuxt, SvelteKit, Astro, plain HTML — flag and degrade coverage; do not pretend fidelity.
- Pages Router (Next.js ≤13.3). Flag and hand off migration to `react-guardian`.
- Paid-search and ads (Google Ads, Meta). Off-SEO.
- Backlink acquisition strategy. The playbook's Phase 8 (Link Building) is listed in `guides/10-implementation-phases.md` as informational only; the Angel does not execute outreach.

## Handoff protocol at end of invocation

When the work is complete, state which mode ran and what was produced:

- Audit: "Audit complete. Report at `library/qa/seo/<path>-seo-audit.md` (or feature-tied path). Top findings: [Critical-count], [High-count]."
- Implementation: "Implemented. Diffs across `<files>`. Next step: run `scripts/validate-schema.ts` and append output to the audit report's validation appendix."
- Remediation: "Remediated <issue>. Before: <LCP/INP/CLS>. After: <LCP/INP/CLS>. Evidence at `library/qa/seo/<date>-cwv-remedi
