on-page
Run a fast technical + on-page SEO check and ship structural fixes (SSR HTML, indexability, title, H1, direct lead, Q&A H2s, HTML table, site focus, AI…
# On-page & technical SEO check
Audit one page, route, template, or MDX post for technical and on-page SEO, then ship the structural fixes directly.
Short rule: **`SSR HTML -> Title -> H1 -> Direct Lead -> Q&A H2s -> HTML <table>`**.
## What actually moves clicks (top findings)
- **Structural upgrades win; cosmetic tweaks do nothing.** In controlled before/after diffs across live sites, structural edits (query-aligned H2s + real HTML `<table>` + scannable Q&A blocks) delivered **`+92.8%` clicks** (`p < 0.0005`), and real body expansion (`+30+` words) delivered **`+41.2%` clicks** (`p = 0.006`). Light cosmetic edits (`<30` words, no structure change) delivered **`-5.4%`** (zero lift). Median Googlebot recrawl is **`1` day**.
- **One editorial layout wins across Google AND AI search.** Across Google AI Overviews, Google AI Mode, ChatGPT, and Perplexity, cited articles share the same blueprint: **real HTML `<table>` (`58%-75%`)**, **Q&A `<h2>`s (`68%-85%`)**, and thorough topic depth.
- **Site focus multiplies authority (`Q* x siteFocusScore`).** Domain authority fires when the homepage and `<nav>` stay tightly focused on one vertical. Off-topic stubs and spider traps dilute the whole site.
- **Skip low-ROI busywork.** Do not spam `FAQPage` JSON-LD on every page (visible Q&A blocks help AI extraction without extra schema), and do not spend cycles on `hreflang` gymnastics (`0` ranking lift across EU markets; clean ccTLD or `/de/`, `/fr/`, `/nl/` locale paths matter instead).
## 1. Technical gate (fix first)
Nothing on-page counts if crawlers cannot render or index the page cleanly:
- **SSR HTML:** Core copy, `<h1>`, `<h2>`s, pricing, and `<table>`s must render in initial server HTML (no client-only empty shell or `<Suspense fallback={null}>` hiding main content).
- **SSR `<nav>` & popovers:** Top navigation links (including hover/popover/mega-menu items) must render as real `<a href>` tags in initial SSR HTML (never click-only portals, `onClick` handlers, or JS viewport checks that unmount desktop `<nav>` on mobile; use CSS visibility/breakpoints instead). Verify with `curl -s <url> | rg '<target-path>'`.
- **HTTP & canonical:** Returns `200`, self-referencing canonical URL, no accidental `noindex`, and no multi-hop redirect chains (`1`-hop `301` max).
- **Bot & AI crawler access:** Public pages allow `Googlebot`, `Bingbot` (feeds ChatGPT web search), `OAI-SearchBot`, and `PerplexityBot` in `robots.txt` without accidental WAF blocks.
- **Locale & mobile:** Non-US pages use a ccTLD or clean locale prefix (`/de/`, `/fr/`, `/es/`, `/nl/`) with no forced IP/language auto-redirect blocking bots. Zero horizontal overflow on 375px mobile (mobile fires `2x` more AI Overviews than desktop).
- **Crawl hygiene:** `410` or `noindex` thin stubs, off-topic pages, and `?param` spider traps that drag down site focus.
## 2. On-page checklist (`Title -> H1 -> Lead -> H2s -> Table`)
Check every item against the primary search query:
- **`<title>` (40-55 chars):** Primary query near the front + concrete modifier (year, price, count, or benefit). Unique per URL. (Chain `seo-title-optimization` for bulk title work.)
- **`<h1>` (exactly one):** Matches the primary query and `<title>`. Never put stray `#` H1 headings inside MDX bodies (demote body `#` to `##`).
- **Lead (first 80-120 words):** Answer the query directly in plain language before backstory or fluff. (Chain `intro` for lead patterns.)
- **`<h2>`s (query-aligned & Q&A):** Turn vague headings (`Overview`, `Details`, `Conclusion`) into real buyer questions and sub-intents (`What is X?`, `How much does X cost?`, `X vs Y`, `How to ...`). Promote core `<h3>` sections to `<h2>`.
- **HTML `<table>` (at least one real `<table>`):** Replace `<dl>` lists or card grids of specs, pricing, tiers, rules, or tool comparisons with a semantic SSR `<table>` (`<caption>`, `<thead>`, `<th scope="col|row">`, real numbers) placed in the upper half of the page.
- **Visible Q&A section:** Add concise visible answers to 3-5 top buyer objections if the page lacks a FAQ block. Keep answers factual and grounded in verified product/source data.
- **Sitewide `<nav>` vs. footer:** Keep core buyer-noun money pages (Products, Solutions, Features, key Tools/Templates) at click-depth 1 in `<header><nav>` with clean anchor text, strip off-topic or `noindex` URLs from `<nav>` so they do not dilute `siteFocusScore`/`siteRadius`, and park secondary `/vs/*` or long-tail links in the SSR `<footer>` without reusing identical anchor text across competing URLs.
- **Internal links & off-page hook:** Link to related hub/comparison pages with descriptive anchors. If the page also needs backlinks, prioritize **contextual dofollow placements on pages with real organic traffic (`traffic > 0`) pointing straight to this URL** (`5.5x` stronger than raw Domain DR, and the top link predictor for ChatGPT citations).
## Workflow
1. **Inspect first:** Read the target route/component/MDX file and live HTML. When Google Search Console is connected (via the `google-search-console` skill / `https://linkdr.com/mcp`), call `linkdr_query_my_gsc` for this URL first to see real impressions, CTR, average position, and top queries before rewriting. Do not guess whether a table or H2 already exists inside a child component.
2. **Score Technical + On-Page:** Produce a tight pass/fail scorecard (max 10 rows).
3. **Skip cosmetic churn:** If the page already passes every structural and technical check, say so and stop. Do not make <30-word wording tweaks just to touch the file.
4. **Ship the real fix:** Apply technical + structural upgrades (`title`, `h1`, lead, `h2`s, SSR `<table>`, visible Q&A), never fabricate stats or prices, and avoid em dashes.
5. **Verify:** Run the repo's lint/typecheck/build gate (`bun run check` or equivalent) before returning.
## Output format
Return a compact scorecard followed by the shipped diff summary:
```markdown
| Check | Status | Action |
| --- | --- | --- |
| SSR HTML & indexability | PASS / FIX | ... |
| Title & single H1 | PASS / FIX | ... |
| 120w direct lead | PASS / FIX | ... |
| Query-aligned / Q&A H2s | PASS / FIX | ... |
| Semantic HTML `<table>` | PASS / FIX | ... |
| Visible Q&A & site focus | PASS / FIX | ... |
```
Keep notes brief. End with exact files changed and verification output.