seo-supervisor 0.0.0-stage → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +16 -0
- package/.claude-plugin/plugin.json +14 -0
- package/CHANGELOG.md +31 -0
- package/LICENSE +25 -0
- package/README.md +197 -2
- package/bin/agents.mjs +65 -0
- package/bin/prompt.mjs +76 -0
- package/bin/seo-supervisor.mjs +144 -0
- package/commands/seo-audit.md +7 -0
- package/commands/seo-fix.md +13 -0
- package/commands/seo-launch.md +7 -0
- package/commands/seo-review.md +7 -0
- package/commands/seo-setup.md +19 -0
- package/package.json +45 -4
- package/skills/seo-supervisor/SKILL.md +199 -0
- package/skills/seo-supervisor/examples/sample-audit.json +440 -0
- package/skills/seo-supervisor/examples/sample-report.html +654 -0
- package/skills/seo-supervisor/examples/sample-report.md +257 -0
- package/skills/seo-supervisor/examples/security-tools-profile.md +73 -0
- package/skills/seo-supervisor/examples/snippets.md +134 -0
- package/skills/seo-supervisor/frameworks/nextjs.md +98 -0
- package/skills/seo-supervisor/frameworks/rails.md +34 -0
- package/skills/seo-supervisor/frameworks/spa.md +14 -0
- package/skills/seo-supervisor/planning.md +145 -0
- package/skills/seo-supervisor/profile-template.md +55 -0
- package/skills/seo-supervisor/report-format.md +146 -0
- package/skills/seo-supervisor/rules/ai-search.md +40 -0
- package/skills/seo-supervisor/rules/content.md +60 -0
- package/skills/seo-supervisor/rules/crawl-index.md +65 -0
- package/skills/seo-supervisor/rules/internal-linking.md +61 -0
- package/skills/seo-supervisor/rules/launch-monitoring.md +48 -0
- package/skills/seo-supervisor/rules/media.md +30 -0
- package/skills/seo-supervisor/rules/metadata.md +39 -0
- package/skills/seo-supervisor/rules/performance.md +33 -0
- package/skills/seo-supervisor/rules/rendering.md +42 -0
- package/skills/seo-supervisor/rules/sitemaps-robots.md +37 -0
- package/skills/seo-supervisor/rules/structured-data.md +75 -0
- package/skills/seo-supervisor/rules/trust-security.md +25 -0
- package/skills/seo-supervisor/rules/urls.md +46 -0
- package/skills/seo-supervisor/scripts/content-scan.mjs +173 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-BricolageGrotesque.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-Geist.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/OFL-GeistMono.txt +93 -0
- package/skills/seo-supervisor/scripts/fonts/bricolage-grotesque.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist-mono.woff2 +0 -0
- package/skills/seo-supervisor/scripts/fonts/geist.woff2 +0 -0
- package/skills/seo-supervisor/scripts/render-report.mjs +706 -0
- package/skills/seo-supervisor/scripts/report-plan.mjs +162 -0
- package/skills/seo-supervisor/scripts/seo-crawl.mjs +703 -0
- package/skills/seo-supervisor/site-types/content.md +22 -0
- package/skills/seo-supervisor/site-types/ecommerce.md +27 -0
- package/skills/seo-supervisor/site-types/local-business.md +28 -0
- package/skills/seo-supervisor/site-types/services.md +22 -0
- package/skills/seo-supervisor/site-types/tools.md +127 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
# Setup mode: SEO for a site that has none
|
|
2
|
+
|
|
3
|
+
Use this for a site with no SEO work: brand new, or an old app that never got it. Setup works plan-first:
|
|
4
|
+
|
|
5
|
+
1. Map the site.
|
|
6
|
+
2. Propose a plan, then **stop for the owner's approval**.
|
|
7
|
+
3. Build the technical foundation exactly as planned, then fix the audit's other code findings listed in the plan.
|
|
8
|
+
4. Draft the content the owner still has to approve.
|
|
9
|
+
5. Prove the result with an audit.
|
|
10
|
+
|
|
11
|
+
Everything goes in the usual report, which gains a **Plan** tab.
|
|
12
|
+
|
|
13
|
+
**Core rule:** nothing in the project changes before the owner approves the plan. Nothing risky changes without its own yes. Nothing is ever invented.
|
|
14
|
+
|
|
15
|
+
## Pick up where the plan left off
|
|
16
|
+
|
|
17
|
+
Read `plan.status` in `seo-audit/seo-audit.json` first:
|
|
18
|
+
|
|
19
|
+
| `plan.status` | What `/seo-setup` does |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| No plan | Steps 1–3: understand, measure, propose. Then stop. |
|
|
22
|
+
| `proposed` | Show the plan and ask for approval. Apply any changes the owner asks for, re-render, and ask again. |
|
|
23
|
+
| `approved` | Steps 4–8: build, fix, draft, verify, hand off. |
|
|
24
|
+
| `built` | Create the pages whose drafts the owner has approved, re-check them, then point to `/seo-audit` and `/seo-fix`. |
|
|
25
|
+
|
|
26
|
+
If no one can answer (for example a subagent run), stop at `proposed`. A proposed plan is a complete result.
|
|
27
|
+
|
|
28
|
+
## 1. Work out what the site is
|
|
29
|
+
|
|
30
|
+
Do SKILL.md step 1: framework, project rules, the content source, and the launch state checked on the real domain. Then decide the site's shape from the site itself: its routes, its content and what the business offers. Never start from a template of what a site "should" have.
|
|
31
|
+
|
|
32
|
+
| Site | What the plan looks like |
|
|
33
|
+
| --- | --- |
|
|
34
|
+
| **Single landing page** | One row: title, description, H1 and heading order, one schema type that fits (Organization, SoftwareApplication, Product, Event…), share image, performance basics, a one-URL sitemap and robots. No hubs. Usually no new pages. |
|
|
35
|
+
| **SaaS or web app** | The marketing pages that exist (home, features, pricing, docs). App screens behind a login are *noindex by design*. |
|
|
36
|
+
| **Blog or content site** | Home and the listing page, plus one pattern row for posts. Categories and author pages only if they exist. |
|
|
37
|
+
| **Online shop** | Category pages plus one pattern row for products. Product schema uses the real price and stock only. |
|
|
38
|
+
| **Portfolio or personal site** | Home, About and one pattern row for projects (Person, CreativeWork). |
|
|
39
|
+
| **Local or service business** | Its real services and locations. A location page only with real local proof. |
|
|
40
|
+
| **Tools site** | One pattern row for tools, plus the tools listing. |
|
|
41
|
+
| **Anything else** | The core rules in `rules/`, page by page or by pattern. |
|
|
42
|
+
|
|
43
|
+
Use the matching `site-types/*.md` file. If none matches, use the core rules only.
|
|
44
|
+
|
|
45
|
+
## 2. Measure
|
|
46
|
+
|
|
47
|
+
Crawl and run a content scan exactly as an audit does (SKILL.md step 2, pre-launch flags included), and write the baseline findings. These give the "before" score.
|
|
48
|
+
|
|
49
|
+
## 3. Propose the plan
|
|
50
|
+
|
|
51
|
+
**Site level.**
|
|
52
|
+
- Write the draft profile from `profile-template.md` to `seo-audit/seo-profile.draft.md`. It covers the brand and title template, origin, trailing slash, decisions, URL map, noindex-by-design, internal-linking rules and claims.
|
|
53
|
+
- If `docs/seo-profile.md` already exists, copy it to `seo-audit/seo-profile.draft.md` and edit the copy. Never touch `docs/` before approval.
|
|
54
|
+
|
|
55
|
+
**Page level.** Write `plan.pages[]` (the shape is in `report-format.md`):
|
|
56
|
+
- **One row per key page:** the home page, any section parents, and the main product, service, tool or feature pages.
|
|
57
|
+
- **One pattern row for any set of more than 20 pages of one type** (posts, products, docs, cities). It holds `pattern`, `count`, title, description and H1 **templates**, and up to 3 `samples` with their resolved values. The owner approves the template, not thousands of titles.
|
|
58
|
+
- **Each row says what the agent will do.** Use `status`: `exists` if it's already right, `to-build`, or `to-create`. Give the planned `title`, `description`, `h1`, `schema`, `parent` and `linksTo`.
|
|
59
|
+
- **Anything the owner must supply goes in `owner`:** `{ "needs": "copy" | "facts" | "decision" | "yes", "what", "draft", "done": false }`.
|
|
60
|
+
- **A missing parent page also gets `intro`:** its 1–2 sentence intro, built only from facts already on the site. The Plan tab shows it, so approving the plan approves exactly these words.
|
|
61
|
+
|
|
62
|
+
**Target phrases.**
|
|
63
|
+
- Take them from what the site and the business actually offer, in the words a customer would search with. Use the owner's input too.
|
|
64
|
+
- Use a Search Console export or keyword CSV only if the owner gives one.
|
|
65
|
+
- Never state or invent search volumes, difficulty or rankings.
|
|
66
|
+
- Each row also gets an `intent`: who searches this, and what they want.
|
|
67
|
+
|
|
68
|
+
**New pages, rarely, and only from evidence on the site:**
|
|
69
|
+
- **A missing parent:** the site's own URLs nest under a path with no page, e.g. `/docs/install` exists but `/docs` doesn't.
|
|
70
|
+
- **An offering with no page:** the home page lists three products, but only two have pages.
|
|
71
|
+
- **A page a rule requires:** for example, a privacy policy when the site collects personal data (TRUST-03).
|
|
72
|
+
|
|
73
|
+
At most **10 new pages per run**, ranked by how much each intent matters to the business. Each proposal states its evidence. A landing page or a small site will usually get none, and that's the right result. Never propose every service × every town: that's a doorway pattern (`site-types/local-business.md`).
|
|
74
|
+
|
|
75
|
+
**Needs your yes.** These never ride on plan approval. List them in `plan.yes[]` (site level) or as a row's `owner.needs: "yes"`, each with what and why:
|
|
76
|
+
- a host or trailing-slash change on a live site
|
|
77
|
+
- robots or noindex changes on a live site
|
|
78
|
+
- AI crawler policy
|
|
79
|
+
- any URL change on a live page (the row's `from`, with a redirect)
|
|
80
|
+
- any write to a CMS, including titles and descriptions stored there
|
|
81
|
+
|
|
82
|
+
On a live site, any robots.txt change beyond adding the `Sitemap:` line is a yes item.
|
|
83
|
+
|
|
84
|
+
**Record each answer.** A yes is `approved: true`. A no is `declined: true` (on the `yes[]` item, or on the row's `owner`). A declined item stays in the plan as a record and is never carried out.
|
|
85
|
+
|
|
86
|
+
**Code findings setup will also fix.**
|
|
87
|
+
- Put in `plan.alsoFixes` the IDs of the open findings the agent can fix in code: forms, results output, rendering, speed, headers and the like.
|
|
88
|
+
- Leave out `fixBy: "owner"` findings, needs-decision findings, anything on the "Needs your yes" list, and anything a plan row already covers.
|
|
89
|
+
- The Plan tab shows the list, so approving the plan approves these fixes.
|
|
90
|
+
|
|
91
|
+
**Render, summarise, stop.**
|
|
92
|
+
- Set `plan.status: "proposed"` and render the report. It opens on the Plan tab.
|
|
93
|
+
- In chat, give a short summary: the site's shape, how many pages are planned and to be created, how many audit findings setup will also fix, the "Needs your yes" items as a numbered list, and anything the owner must supply.
|
|
94
|
+
- Then ask: "Approve the plan? And yes or no to each numbered item?"
|
|
95
|
+
- Change nothing outside `seo-audit/` before the answer.
|
|
96
|
+
|
|
97
|
+
## 4. Build, after approval
|
|
98
|
+
|
|
99
|
+
Set `plan.status: "approved"` and `approvedOn`. On approval, move the draft profile to `docs/seo-profile.md`.
|
|
100
|
+
|
|
101
|
+
**Plan approval covers** the code-level foundation shown in the plan. Fix each thing once, in the shared place, using `frameworks/*.md` and `examples/snippets.md`:
|
|
102
|
+
- **Metadata:** one metadata helper with the title template. The planned titles, descriptions, H1s and canonicals go in code.
|
|
103
|
+
- **Sitemap and robots:** generated, and they respect the launch state. On a live site, robots.txt changes other than adding the `Sitemap:` line need their own yes. A live site keeps its current indexing state; a site that isn't live stays off behind its switch. Setup never switches indexing on.
|
|
104
|
+
- **Schema:** Organization and WebSite once, then the planned types per page. Only facts already on the site go into schema.
|
|
105
|
+
- **Headings and breadcrumbs:** one H1 per page and a clean heading order. Breadcrumbs with BreadcrumbList where the site has levels.
|
|
106
|
+
- **Internal links:** following the profile's linking rules.
|
|
107
|
+
- **Basics:** a real 404 for unknown URLs, a default share image and security headers. Add `security.txt` only once the owner has given a contact.
|
|
108
|
+
- **Missing parent pages:** create them now, with exactly the title, H1 and `intro` shown in the plan, plus a list of the pages under them. Never add copy the plan didn't show.
|
|
109
|
+
|
|
110
|
+
**Items that got their own yes:** do them as well. On a CMS, write drafts and publish only when the owner says so.
|
|
111
|
+
|
|
112
|
+
**Everything else waits:** items without a yes stay as open `owner` items.
|
|
113
|
+
|
|
114
|
+
## 5. Fix the audit's code findings
|
|
115
|
+
|
|
116
|
+
Run fix mode (SKILL.md step 5) on every finding in `plan.alsoFixes`, most serious first:
|
|
117
|
+
- Fix each cause once, in the shared place.
|
|
118
|
+
- Run the project's tests and linters after each batch.
|
|
119
|
+
- A finding becomes `fixed` only when its re-check passes (step 7).
|
|
120
|
+
- If a fix turns out to need the owner (content, a CMS write, a live URL or robots change), stop on that one, set `fixBy: "owner"`, and carry on with the rest.
|
|
121
|
+
|
|
122
|
+
## 6. Draft the content the owner must approve
|
|
123
|
+
|
|
124
|
+
- **One draft per page:** for each row that needs copy, write `seo-audit/drafts/<slug>.md`. It holds an intro, a section outline, and FAQs based on real customer questions.
|
|
125
|
+
- **Facts:** use only facts from the site or the owner. Write anything missing as a visible placeholder, such as `[owner: a real customer result to quote]`. Never invent it.
|
|
126
|
+
- **Linking:** set the row's `owner.draft` to the file.
|
|
127
|
+
- **Creating the page:** new pages other than missing parents are created only after the owner approves their draft. On a CMS site, create them as CMS drafts, with the go-ahead.
|
|
128
|
+
|
|
129
|
+
## 7. Verify
|
|
130
|
+
|
|
131
|
+
- **Re-check everything:** re-crawl, re-audit, and run the project's tests and linters.
|
|
132
|
+
- **Confirm each row is live:** the crawler records each page's `title`, `description`, `h1Text`, `canonical` and `schema`. Compare them with the plan.
|
|
133
|
+
- **Statuses:** a row becomes `built` only when its re-check passes. A pattern row also records `built`, the number of pages done.
|
|
134
|
+
- **Findings:** baseline findings the build resolved become `fixed`, with `fixed.verified`, so the report shows the score before and after setup.
|
|
135
|
+
- **Plan status:** set `plan.status: "built"` once all of the agent's work is done. Owner items can still be open.
|
|
136
|
+
|
|
137
|
+
## 8. Hand off
|
|
138
|
+
|
|
139
|
+
In chat, give:
|
|
140
|
+
- the score before and after
|
|
141
|
+
- what was built
|
|
142
|
+
- what is still waiting for the owner (drafts to approve, facts to supply, yes items), with the score that work unlocks
|
|
143
|
+
- next steps: `/seo-fix` for remaining findings, and `/seo-launch` before indexing goes on
|
|
144
|
+
|
|
145
|
+
Then ask before committing `seo-audit/`.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# SEO profile: {Site name}
|
|
2
|
+
|
|
3
|
+
<!-- Copy to the project as docs/seo-profile.md. The seo-supervisor skill reads it before every audit.
|
|
4
|
+
Facts here beat the skill's defaults. Keep it short and current. -->
|
|
5
|
+
|
|
6
|
+
Last reviewed: {YYYY-MM-DD} · Owner: {role}
|
|
7
|
+
|
|
8
|
+
## Site
|
|
9
|
+
- **Launch state:** live / pre-launch (whole site noindex until {sign-off}; switch: `{SITE_INDEXABLE}`)
|
|
10
|
+
- **Production origin:** https://www.example.com
|
|
11
|
+
- **Staging / previews:** https://staging.example.com (noindex header + password)
|
|
12
|
+
- **Framework:** {e.g. Next.js 16 App Router, Rails 8, Vite SPA}
|
|
13
|
+
- **Site types:** {tools · local-business · content · services · ecommerce}
|
|
14
|
+
- **Brand in titles:** "{Brand}", template `%s | {Brand}`
|
|
15
|
+
- **Content source:** {where titles, slugs, FAQs and publish flags live, e.g. `src/data/tools.ts`, Sanity, Postgres}
|
|
16
|
+
|
|
17
|
+
## Decisions
|
|
18
|
+
| Decision | Value | Why |
|
|
19
|
+
| --- | --- | --- |
|
|
20
|
+
| Trailing slash | always / never | |
|
|
21
|
+
| Preferred host | apex / www | |
|
|
22
|
+
| AI crawlers | allow all / block training only / block all | |
|
|
23
|
+
| Staging protection | noindex header + auth | Disallow can still leak URLs |
|
|
24
|
+
| Sitemap lastmod | content `updatedAt` | |
|
|
25
|
+
| Pagination | `?page=N`, self-canonical | |
|
|
26
|
+
| Thin browse pages | noindex below {3} items | |
|
|
27
|
+
| FAQ schema | only where the FAQ is visible | No Google rich result since May 2026 |
|
|
28
|
+
| Title / description limits | ≤60 / 120–160 | |
|
|
29
|
+
|
|
30
|
+
## URL map
|
|
31
|
+
| Pattern | Page type | Breadcrumb | Indexable | Sitemap | Schema |
|
|
32
|
+
| --- | --- | --- | --- | --- | --- |
|
|
33
|
+
| `/` | Home | – | yes | yes | Organization, WebSite |
|
|
34
|
+
| `/{section}/` | Hub | Home › {Section} | yes | yes | CollectionPage, ItemList, BreadcrumbList |
|
|
35
|
+
| `/{section}/{item}/` | {type} | Home › {Section} › {Item} | yes | yes | {…} |
|
|
36
|
+
| `/search/` | Search | – | noindex | no | – |
|
|
37
|
+
|
|
38
|
+
## Hubs that must exist
|
|
39
|
+
{Every breadcrumb level and section landing page, e.g. `/resources/`, `/blog/`, `/tools/`.}
|
|
40
|
+
|
|
41
|
+
## Noindex by design
|
|
42
|
+
{Page types meant to stay hidden: internal search, filters, account, shareable results, thin browse pages.}
|
|
43
|
+
|
|
44
|
+
## Internal linking
|
|
45
|
+
- **Up:** {breadcrumb rule}
|
|
46
|
+
- **Across:** {siblings: how many, chosen by what}
|
|
47
|
+
- **Forward / loops:** {e.g. blog → glossary → guide → tool → template → path → service → blog}
|
|
48
|
+
|
|
49
|
+
## Claims
|
|
50
|
+
- **Confirmed (may be published):** {…}
|
|
51
|
+
- **Banned (never publish):** {…}
|
|
52
|
+
|
|
53
|
+
## Accepted exceptions
|
|
54
|
+
| Rule | Where | Why accepted | Until |
|
|
55
|
+
| --- | --- | --- | --- |
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
# Report format
|
|
2
|
+
|
|
3
|
+
The audit is one JSON file, `seo-audit/seo-audit.json`. The same file carries the fix history, so a later fix run updates it instead of starting over. `scripts/render-report.mjs` turns it into two files:
|
|
4
|
+
- **`seo-audit/seo-audit.html`:** a self-contained page (offline, light and dark, phone, print). The Overview tab shows the health score, area scores, charts and "Fix first". The Findings, Decisions, Changes, Passed and Limits tabs hold the detail, showing up to 10 evidence rows per finding.
|
|
5
|
+
- **`seo-audit/seo-audit.md`:** the full report as Markdown, with every evidence row. Use it for reading in an editor, diffing between runs, and pasting into tickets.
|
|
6
|
+
|
|
7
|
+
## The score (computed by the renderer, never by hand)
|
|
8
|
+
|
|
9
|
+
- Every checked rule is worth 10 points: each rule in `passed`, plus each distinct `rule` among `findings`. A finding without a rule counts as its own rule.
|
|
10
|
+
- A rule earns 10 if it passes or all its findings are `fixed`. Otherwise it earns by its worst open finding: low 8, medium 6, needs-decision 6, high 3, blocker 0. `wont-fix` counts as open.
|
|
11
|
+
- **Score** = points earned ÷ points possible × 100, rounded.
|
|
12
|
+
- **Blocker cap:** each open blocker caps the score. One caps it at 59, two at 49, three at 39, and so on, never below 9. The report says when the cap applies, and shows the score the site reaches once the open blockers are fixed: the same model, with those blockers treated as fixed. After a fix run it shows the change: the total's, or the checked-rules score's when the cap holds the total still.
|
|
13
|
+
- **Area scores** use the same rules within each `category`.
|
|
14
|
+
- **Bands:**
|
|
15
|
+
|
|
16
|
+
| Score | Band |
|
|
17
|
+
| --- | --- |
|
|
18
|
+
| 90–100 | Excellent |
|
|
19
|
+
| 75–89 | Good |
|
|
20
|
+
| 60–74 | Fair |
|
|
21
|
+
| 40–59 | Poor |
|
|
22
|
+
| 0–39 | Critical |
|
|
23
|
+
|
|
24
|
+
Consequences for the JSON:
|
|
25
|
+
- Give every finding a `rule` and a `category`; they drive the area scores.
|
|
26
|
+
- Record passed rules with their `category`.
|
|
27
|
+
- Don't list a rule as both passed and failing.
|
|
28
|
+
- Rules under `notChecked` don't count either way.
|
|
29
|
+
|
|
30
|
+
## Build it in this order
|
|
31
|
+
|
|
32
|
+
1. Start from `seo-audit/seo-crawl.json` and, if you ran it, `seo-audit/content-scan.json`. Copy their `findings`, `passed`, `notChecked` and `notes`. Their findings already carry `what`, `why` and `fix`; rewrite `what` in plainer words when you can say more than the example.
|
|
33
|
+
2. Review each finding against the SEO profile. Keep it, change its severity, or drop it and say why in `notes`. **Merge** findings that share a root cause into one: e.g. near-duplicate pages (crawler), templated intros (content scan) and reused FAQs all come from one template, so they become one finding listing every symptom in `what`.
|
|
34
|
+
3. Add the findings from the code and content inspection, with `file` and `line` evidence.
|
|
35
|
+
4. Add `decisions` for questions only the owner can answer.
|
|
36
|
+
5. Add `notChecked` for anything you couldn't verify or that doesn't apply, with the reason (e.g. "Core Web Vitals field data: site not live yet", "SHOP rules: not an e-commerce site").
|
|
37
|
+
6. Write `summary`: two or three plain sentences. **The first sentence is the verdict**; the report shows it at the top and you repeat it in chat.
|
|
38
|
+
|
|
39
|
+
## Shape (illustrative values)
|
|
40
|
+
|
|
41
|
+
```json
|
|
42
|
+
{
|
|
43
|
+
"site": {
|
|
44
|
+
"name": "Example Plumbing Co",
|
|
45
|
+
"url": "https://www.example-plumbing.com",
|
|
46
|
+
"framework": "Next.js 16 (App Router)",
|
|
47
|
+
"siteTypes": ["local-business", "services"],
|
|
48
|
+
"profile": "docs/seo-profile.md"
|
|
49
|
+
},
|
|
50
|
+
"run": { "mode": "audit", "date": "2026-11-17", "pagesCrawled": 120, "auditor": "seo-supervisor" },
|
|
51
|
+
"summary": "The build is solid, but the 80 city pages are templated and would launch together. Fix the two blockers first, then the soft 404.",
|
|
52
|
+
"findings": [
|
|
53
|
+
{
|
|
54
|
+
"id": "F-001",
|
|
55
|
+
"rule": "LOCAL-02",
|
|
56
|
+
"severity": "blocker",
|
|
57
|
+
"category": "Local business",
|
|
58
|
+
"status": "open",
|
|
59
|
+
"title": "80 city pages differ only by the town name",
|
|
60
|
+
"what": "Intros and FAQs are the same template with {city} swapped; the crawler found 1,204 page pairs sharing over 60% of their main text. Related: CONTENT-04.",
|
|
61
|
+
"why": "Google treats pages that only swap a place name as doorway pages and can filter them or hold down the whole site.",
|
|
62
|
+
"evidence": [
|
|
63
|
+
{ "url": "https://www.example-plumbing.com/drain-cleaning-springfield/", "detail": "74% shared with /drain-cleaning-shelbyville/" },
|
|
64
|
+
{ "file": "src/lib/content.ts", "line": 214, "detail": "intro template only swaps {city}" }
|
|
65
|
+
],
|
|
66
|
+
"count": 1204,
|
|
67
|
+
"fix": "Publish only cities with real local proof (jobs, photos, reviews from that town), each with its own intro and FAQs, in `src/data/cities.ts`. Hold the rest with the publish flag."
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"decisions": [
|
|
71
|
+
{
|
|
72
|
+
"question": "Is commercial drain work actually offered?",
|
|
73
|
+
"context": "The content data marks it unconfirmed, but 20 city pages exist for it.",
|
|
74
|
+
"options": ["Yes, keep the pages", "No, remove them and 301 to /services/"],
|
|
75
|
+
"recommendation": "Keep them unpublished until the owner confirms."
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"passed": [
|
|
79
|
+
{ "rule": "URL-04", "title": "Self-referencing, absolute canonical on every indexable page", "category": "URLs & canonicals", "detail": "src/lib/seo.ts:41 builds it from SITE_URL + path" }
|
|
80
|
+
],
|
|
81
|
+
"notChecked": [{ "area": "Core Web Vitals field data", "reason": "No CrUX data for a site that isn't live yet." }],
|
|
82
|
+
"notes": ["Crawled a production build on localhost:3123 with --ignore-noindex (pre-launch)."]
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
## Field rules
|
|
87
|
+
|
|
88
|
+
| Field | Rule |
|
|
89
|
+
| --- | --- |
|
|
90
|
+
| `id` | `F-001`, `F-002` and so on. **Never renumber** on later runs; fix history depends on stable IDs. New findings get the next free number. |
|
|
91
|
+
| `rule` | The rule ID from `rules/` or `site-types/`. When several rules cover the problem, use the **most specific** one (a site-type rule beats a general rule), name the others in `what` ("Related: CONTENT-04"), and take the **highest** severity among them. |
|
|
92
|
+
| `severity` | `blocker`, `high`, `medium`, `low` or `needs-decision`. Definitions are in SKILL.md. |
|
|
93
|
+
| `status` | `open`, `needs-decision`, `in-progress`, `fixed` or `wont-fix`. `fixed` requires a re-check. |
|
|
94
|
+
| `title` | States the problem, with a count if it applies: "12 titles are longer than 60 characters". Not "Title issues". |
|
|
95
|
+
| `what` | What is wrong, in plain words, with numbers. Written for the site owner, not for an SEO expert. |
|
|
96
|
+
| `why` | The consequence: lost rankings, missed indexing, a penalty risk, wasted crawl budget. |
|
|
97
|
+
| `evidence` | Up to 100 items. Each has a `url`, or a `file` plus `line`, and a short `detail`. Group repeated issues into one finding and set `count` to the full total. Use public URLs (the crawler's local URLs mapped to the production origin) unless production is still a different, old site; then keep the local URLs and say so in `notes`. |
|
|
98
|
+
| `fix` | The concrete change and *where* to make it: the shared helper or file, not "every page". |
|
|
99
|
+
| `fixBy` | Optional. Set it to `"owner"` when only the owner can resolve the finding: content or facts, CMS edits, business decisions, removing pages. The report labels it **Needs you**, and fix mode leaves it alone without the owner's go-ahead. Leave it out when the agent can fix the finding. |
|
|
100
|
+
| `decision` | Optional, for findings that need an owner's call: `{ "question", "options": [], "recommendation" }`. |
|
|
101
|
+
| `fixed` | Fix mode only: `{ "summary": "what changed", "files": ["src/lib/seo.ts"], "verified": "re-crawl 17 Nov: 0 titles over 60" }`. |
|
|
102
|
+
| `passed[].detail` | Optional evidence for a pass, e.g. the `file:line` that implements it. |
|
|
103
|
+
|
|
104
|
+
## The plan (setup mode only)
|
|
105
|
+
|
|
106
|
+
`/seo-setup` adds a top-level `plan`. Without it, the report is unchanged. How to fill it is in `planning.md`.
|
|
107
|
+
|
|
108
|
+
```json
|
|
109
|
+
"plan": {
|
|
110
|
+
"status": "proposed",
|
|
111
|
+
"approvedOn": "2026-11-18",
|
|
112
|
+
"summary": "A marketing site with docs. Setup adds one metadata helper, a sitemap, schema and the missing /docs page.",
|
|
113
|
+
"yes": [{ "id": "Y1", "what": "Redirect www to the apex domain", "why": "One host for every URL", "approved": false }],
|
|
114
|
+
"pages": [
|
|
115
|
+
{ "url": "/pricing", "type": "Pricing page", "status": "to-build", "target": "acme pricing",
|
|
116
|
+
"intent": "Someone comparing plans before signing up", "title": "Pricing | Acme", "description": "…", "h1": "Simple pricing",
|
|
117
|
+
"schema": ["WebPage", "BreadcrumbList"], "parent": "/", "linksTo": ["/features"],
|
|
118
|
+
"owner": { "needs": "facts", "what": "Confirm the current plan prices", "done": false }, "finding": "F-004" },
|
|
119
|
+
{ "pattern": "/docs/{slug}", "count": 24, "built": 0, "type": "Docs article", "status": "to-build",
|
|
120
|
+
"title": "{Article title} | Acme docs", "samples": [{ "url": "/docs/install", "title": "Install Acme | Acme docs" }] }
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
| Field | Rule |
|
|
126
|
+
| --- | --- |
|
|
127
|
+
| `plan.status` | `proposed`: waiting for the owner. `approved`: being built. `built`: all of the agent's work is done (owner items can still be open). |
|
|
128
|
+
| `pages[].status` | `exists` (already right), `to-build`, `built` (done and re-checked) or `to-create` (a proposed new page). |
|
|
129
|
+
| `pages[].owner` | The owner's part: `needs` (`copy`, `facts`, `decision` or `yes`), `what`, `draft` (path relative to the report, e.g. `drafts/privacy.md`) and `done`. Shown as **Needs you** until `done` is true. |
|
|
130
|
+
| `pages[].intro` | For a new missing-parent page: its 1–2 sentence intro, built only from facts already on the site. Shown on the Plan tab; approving the plan approves these exact words. |
|
|
131
|
+
| `pages[].from` | The old URL when a page moves. The redirect is part of building the row, and it always needs its own yes on a live site. |
|
|
132
|
+
| Pattern rows | Used for sets of more than 20 pages. `pattern` + `count` (and `built`, the pages done so far). `title`, `description` and `h1` hold templates, plus up to 3 `samples` with resolved values. |
|
|
133
|
+
| `plan.alsoFixes` | IDs of open findings setup will also fix in code after approval. It never includes owner items, decisions or yes items. Shown on the Plan tab, so approving the plan approves these fixes. |
|
|
134
|
+
| `yes[]` | Site-level items that need their own yes. `approved: true` records a yes, and `declined: true` records a no. A declined item stays as a record and is never carried out. A row's `owner` can be `declined` the same way. |
|
|
135
|
+
| `finding` | The related finding's ID, linked from the row. |
|
|
136
|
+
|
|
137
|
+
**Progress** (computed by the renderer): each row counts once. A row that `exists` or is `built` counts 1. A pattern row in any other status counts `built ÷ count`. Anything else counts 0. Progress is the average, as a percentage.
|
|
138
|
+
|
|
139
|
+
**Default tab:** while `plan.status` is `proposed`, the report opens on the Plan tab.
|
|
140
|
+
|
|
141
|
+
## Writing well
|
|
142
|
+
|
|
143
|
+
- Plain words. "Google can't see this page's text" beats "CSR hydration issue".
|
|
144
|
+
- Numbers over adjectives: "38 of 40 pages" rather than "most pages".
|
|
145
|
+
- One problem per finding. When one helper causes three symptoms, write one finding and list the symptoms in `what`.
|
|
146
|
+
- `wont-fix` needs a reason in `fixed.summary` or `notes`, and the matching accepted exception goes in the SEO profile.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# Search features powered by AI: AI Overviews, AI Mode, ChatGPT, Claude, Perplexity, Copilot (AI)
|
|
2
|
+
|
|
3
|
+
> Checked **17 Nov 2026** against Google Search Central, Bing, OpenAI, Anthropic and Perplexity docs. This area moves fast: re-verify anything older than about three months.
|
|
4
|
+
> Google's position: optimizing for AI search ("AEO", "GEO") **is** SEO. There's no special file, markup or schema for AI Overviews or AI Mode.
|
|
5
|
+
|
|
6
|
+
### AI-01 · Key pages are eligible to be used in AI answers · high
|
|
7
|
+
- **Check:** crawler: noindex, `nosnippet` or `max-snippet:0` on pages meant to be found (robots meta tags inside `<body>` count too). Ask the owner about Search Console → Settings → Search generative AI (Include / Exclude / Inherit, worldwide since 31 Aug 2026).
|
|
8
|
+
- **Pass:** pages are indexed and snippet-eligible; the Search Console setting is Include unless the owner deliberately chose otherwise. `data-nosnippet` is used only on span, div or section elements that really must stay out.
|
|
9
|
+
- **Note:** the Exclude setting removes the site from AI Overviews, AI Mode and AI features in Discover. It isn't a ranking signal for the rest of Search and doesn't affect AI training.
|
|
10
|
+
|
|
11
|
+
### AI-02 · Each AI crawler is allowed or blocked on purpose · high
|
|
12
|
+
- **Check:** crawler `ai-bots-blocked`, robots.txt per subdomain, CDN/WAF rules.
|
|
13
|
+
- **Know the difference:**
|
|
14
|
+
- **Search** crawlers decide whether you're cited: `OAI-SearchBot` (ChatGPT search), `Claude-SearchBot`, `PerplexityBot`, and Bingbot (Copilot uses Bing's index).
|
|
15
|
+
- **Training** crawlers: `GPTBot`, `ClaudeBot`, `Google-Extended` (Gemini training and grounding in Gemini Apps, **not** AI Overviews), `CCBot`, `Applebot-Extended`.
|
|
16
|
+
- **User-triggered** fetchers: `ChatGPT-User`, `Claude-User`, `Perplexity-User`. These may not follow robots.txt.
|
|
17
|
+
- **Pass:** blocking training while allowing search is a valid policy. Blocking GPTBot does **not** remove a site from ChatGPT search. The WAF allows each vendor's published IP lists (`openai.com/searchbot.json`, `perplexity.ai/perplexitybot.json`) so verified bots aren't challenged. Rules are repeated on every subdomain.
|
|
18
|
+
- **Emerging:** a shared training opt-out, `User-Agent: __usage_ai-training` / `Disallow: /` (IETF draft; Anthropic honours it, Google plans to in 2027). Optional, and a `*` group doesn't match it.
|
|
19
|
+
|
|
20
|
+
### AI-03 · Bing/Copilot preferences use the new directives · high (sites restricting Copilot)
|
|
21
|
+
- **Check:** grep for `noarchive` / `nocache` used to keep content out of Copilot.
|
|
22
|
+
- **Pass:** from 1 Feb 2027, Bing reads `<meta name="Bingbot" content="ai-grounding:disallow">` (or the `X-Robots-Tag: Bingbot: ai-grounding:disallow` header) and `ai-training:disallow`. After 1 Mar 2027, NOARCHIVE and NOCACHE no longer control training or grounding. Both preferences default to allow, and Bing search eligibility is unaffected.
|
|
23
|
+
|
|
24
|
+
### AI-04 · Content is citable because it's genuinely original · high
|
|
25
|
+
- **Check:** content review of key pages.
|
|
26
|
+
- **Pass:** first-hand experience, original data, specific numbers and named sources, clear headings with answer-first sections (CONTENT-06), useful images and video, semantic HTML, and few duplicate pages.
|
|
27
|
+
- **Never:** mass-produce pages for query variations or "fan-out" sub-queries; Google treats that as scaled content abuse (CONTENT-11). Don't hide instructions aimed at AI systems; manipulating AI responses is covered by the spam policies.
|
|
28
|
+
|
|
29
|
+
### AI-05 · Pages work for AI agents that browse · low
|
|
30
|
+
- **Check:** code: native `<button>` and `<a href>`, labelled form inputs, no transparent overlays catching clicks, a stable layout. Chrome Lighthouse has an informational "Agentic browsing" audit.
|
|
31
|
+
|
|
32
|
+
### AI-06 · AI visibility is measured · low
|
|
33
|
+
- Google Search Console's Generative AI performance report (impressions by page, since June 2026). AI Overview and AI Mode clicks are counted inside web search totals. Bing Webmaster Tools' AI Performance report shows Copilot citations and grounding queries. Note these as monitoring steps; the audit can't read them without access.
|
|
34
|
+
|
|
35
|
+
## Myths to correct in reports
|
|
36
|
+
- llms.txt, Markdown copies, "chunking" or AI-specific rewrites help in Google (Google ignores llms.txt; it's harmless and optional).
|
|
37
|
+
- FAQ or other schema is needed for AI Overviews.
|
|
38
|
+
- Google-Extended blocks AI Overviews (use the Search Console setting or `nosnippet`).
|
|
39
|
+
- Blocking GPTBot hides you from ChatGPT search.
|
|
40
|
+
- Bought or farmed brand mentions build AI visibility.
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Headings and content (CONTENT)
|
|
2
|
+
|
|
3
|
+
### CONTENT-01 · Exactly one H1 per page · high
|
|
4
|
+
- **Check:** crawler `h1-count`.
|
|
5
|
+
- **Pass:** one H1 that states the page's main topic. Logos, card titles and modal titles are not H1s.
|
|
6
|
+
|
|
7
|
+
### CONTENT-02 · Heading levels are never skipped · medium
|
|
8
|
+
- **Check:** crawler `heading-skip`. Footer and sidebar headings count too.
|
|
9
|
+
- **Fix:** nest H2 → H3 in order and style with CSS. Card titles inside an H2 section use H3 or non-heading text. Each FAQ question is an H3 under the FAQ H2. A full outline is in `examples/snippets.md`.
|
|
10
|
+
|
|
11
|
+
### CONTENT-03 · The main keyword sits in the title, H1, first paragraph and one H2 · medium
|
|
12
|
+
- **Check:** code/content: for key templates, read the rendered page.
|
|
13
|
+
- **Pass:** the keyword is used naturally with variants (no density targets above about 2–3%). Each page has one primary keyword, and no two pages share it.
|
|
14
|
+
- **Fix:** record the keyword per page in the content data; one page owns each phrase.
|
|
15
|
+
- **Keyword cannibalization isn't a penalty.** Google has no policy on it. Several URLs showing for one query is often fine. Flag it only when near-duplicate pages target the **same intent**; fix by merging with a 301 or a canonical, or by giving each page a distinct purpose.
|
|
16
|
+
|
|
17
|
+
### CONTENT-04 · Templated pages have unique content · high (blocker when it covers most of the site)
|
|
18
|
+
- **Check:** crawler `near-duplicate` (5-word shingles, more than 60% shared), `title-dup`, `desc-dup`. Code: templates that only swap a city, product or tool name, and FAQ answers reused across pages.
|
|
19
|
+
- **Pass:** each page has its own intro, specifics and FAQs. FAQ questions aren't reused across pages. Pages that can't be made unique are merged or noindexed.
|
|
20
|
+
- **Fix:** add per-item content fields and a build check (shingle similarity over 0.5 on intros fails; any repeated FAQ question fails). Don't publish a page until its unique fields are filled.
|
|
21
|
+
|
|
22
|
+
### CONTENT-05 · Indexable pages have substance · medium
|
|
23
|
+
- **Check:** crawler `thin-page` (under 150 words).
|
|
24
|
+
- **Fix:** add useful, specific content; merge the page into a stronger one; or noindex it until it grows (browse pages: under 3 items).
|
|
25
|
+
|
|
26
|
+
### CONTENT-06 · Answer first, in the searcher's words · medium
|
|
27
|
+
- **Check:** content: guides, tool pages, FAQs.
|
|
28
|
+
- **Pass:** an answer of 40–60 words right under the H1 and under each question-form H2, using specific numbers and no vague "it". Tables for comparisons, numbered steps for processes. Questions come from "People also ask", support tickets and top-ranking pages.
|
|
29
|
+
|
|
30
|
+
### CONTENT-07 · People and dates are behind the advice · medium
|
|
31
|
+
- **Check:** content and code: author or reviewer lines, author pages, "updated" dates on guides and advice pages.
|
|
32
|
+
- **Pass:** a named author or reviewer with real credentials and an author page, and a visible "last reviewed" date. Tool and service pages count too: "Reviewed by {name}, {credential} · Updated {date}". YMYL topics (health, money, security, legal) cite primary sources.
|
|
33
|
+
- **Author pages** (`/about/team/{name}/` or similar) list role, certifications (e.g. OSCP, CISSP, licences), GitHub or portfolio, talks and publications, and credited work (e.g. CVEs). They use ProfilePage + Person schema and are linked from every byline and "Reviewed by" line.
|
|
34
|
+
- **Review on a schedule:** every 6–12 months, and **straight away when a standard or regulation the page relies on changes.**
|
|
35
|
+
|
|
36
|
+
### CONTENT-08 · Images have alt text · low
|
|
37
|
+
- **Check:** crawler `img-alt`.
|
|
38
|
+
- **Pass:** meaningful images have descriptive alt text of 125 characters or less, not a keyword list. Decorative images have `alt=""`. Alt text is stored with the image record so reused images don't stack alts.
|
|
39
|
+
|
|
40
|
+
### CONTENT-09 · No placeholder, test or broken text on live pages · high
|
|
41
|
+
- **Check:** crawler `placeholder-text`. Code: grep content for `lorem`, `TODO`, `TBD`, `{{…}}`, bracketed tokens like `[CITY NAME]`, mangled characters (`We?ve`, `�`), leftover AI artifacts (`utm_source=chatgpt.com`, `data-start=`), and claims the owner hasn't confirmed.
|
|
42
|
+
- **Fix:** replace them with real content, and add the patterns to a build check that fails.
|
|
43
|
+
|
|
44
|
+
### CONTENT-11 · Nothing breaks Google's spam policies · blocker
|
|
45
|
+
> Checked 17 Nov 2026 against developers.google.com/search/docs/essentials/spam-policies.
|
|
46
|
+
- **Scaled content abuse:** many pages made mainly to rank, however they're produced. This covers AI-generated pages that add nothing, scraped or stitched content, and pages made for query variations or AI "fan-out" sub-queries. Programmatic pages need unique substance (CONTENT-04).
|
|
47
|
+
- **Doorway pages:** near-identical pages (often city or keyword variants) that funnel to one destination, closer to search results than a browseable hierarchy.
|
|
48
|
+
- **Site reputation abuse:** third-party sections (coupons, casino, "best X" affiliate content, white-label or freelance content) published mainly to exploit the host's ranking signals, without the host's editorial oversight and integration. Within the EEA (since 30 Aug 2026) Google classifies such sections separately instead of issuing manual actions; elsewhere they can get one.
|
|
49
|
+
- **Expired domain abuse:** a bought domain repurposed for unrelated content to exploit its history.
|
|
50
|
+
- **Manipulating AI responses:** hidden text or instructions aimed at AI systems.
|
|
51
|
+
- **Back-button hijacking** (enforced since 15 Jun 2026): code that calls `history.pushState`/`replaceState` on load without user navigation, or redirects on `popstate`, including in third-party and ad scripts.
|
|
52
|
+
- **Fake people:** fabricated author profiles are deception (see CONTENT-07).
|
|
53
|
+
|
|
54
|
+
### CONTENT-12 · Dates change only with real edits · medium
|
|
55
|
+
- **Check:** code: `dateModified`, visible "updated" dates and sitemap lastmod. Are they set at build time, on every deploy, or on a schedule?
|
|
56
|
+
- **Pass:** they move only when the content changes substantively. Google treats freshening dates without real changes as a warning sign. Where readers would expect it, AI assistance in writing is disclosed.
|
|
57
|
+
|
|
58
|
+
### CONTENT-10 · Every claim is true and sourced · blocker
|
|
59
|
+
- **Check:** content: years in business, certifications, guarantees, response times, prices, client logos, statistics.
|
|
60
|
+
- **Pass:** every claim traces to an owner-confirmed source. Unconfirmed claims aren't published. Keep a list of banned claims and grep the rendered HTML for it.
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Crawling and indexing (CRAWL)
|
|
2
|
+
|
|
3
|
+
Can search engines reach the pages, and are they allowed to index the right ones? Every rule lists how to check it: **crawler** (a check name in `seo-crawl.json`) and/or **code** (what to inspect).
|
|
4
|
+
|
|
5
|
+
### CRAWL-01 · robots.txt lets search engines crawl the site · blocker
|
|
6
|
+
- **Check:** crawler `robots-blocks-all`, `sitemap-url-disallowed`. Code: the robots file or route and its environment switch.
|
|
7
|
+
- **Pass:** production allows `/` for `User-agent: *`, and no URL in the sitemap is disallowed.
|
|
8
|
+
- **Fix:** allow crawling in production. Disallow only junk (see MAP-05). Use noindex, not `Disallow`, for pages that shouldn't rank: Google must crawl a page to see its noindex.
|
|
9
|
+
|
|
10
|
+
### CRAWL-02 · Pages meant to rank are not set to noindex · blocker
|
|
11
|
+
- **Check:** crawler `home-noindex`, `noindex-in-sitemap`, `noindex-review`. Code: metadata robots values, `X-Robots-Tag` headers, middleware.
|
|
12
|
+
- **Pass:** only page types the profile lists as hidden (search, filters, account, results, thin browse pages) are noindex.
|
|
13
|
+
- **Pre-launch:** when the profile says the whole site is noindex until sign-off, that's expected, not a blocker. Crawl with `--ignore-noindex` so the other checks still run, and confirm CRAWL-03 will lift the noindex at launch.
|
|
14
|
+
- **Fix:** drive every noindex rule from the page type, with one environment variable for "whole site hidden".
|
|
15
|
+
|
|
16
|
+
### CRAWL-03 · Indexing is controlled by one environment variable and checked after deploy · high
|
|
17
|
+
- **Check:** code: grep for robots and noindex logic; there should be one variable (e.g. `SITE_INDEXABLE`) feeding robots.txt, meta robots and headers.
|
|
18
|
+
- **Pass:** production sets it; a post-deploy step fails if production serves noindex.
|
|
19
|
+
- **Fix:** add the check to the deploy pipeline:
|
|
20
|
+
```bash
|
|
21
|
+
curl -sI "$SITE/" | grep -qi '^x-robots-tag:.*noindex' && exit 1
|
|
22
|
+
curl -s "$SITE/" | grep -qi '<meta[^>]*name="robots"[^>]*noindex' && exit 1
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### CRAWL-04 · Staging and previews are hidden with noindex plus a password · high
|
|
26
|
+
- **Check:** code: deployment config and middleware for non-production environments.
|
|
27
|
+
- **Pass:** staging sends `X-Robots-Tag: noindex, nofollow` on every response (including sitemap and robots routes) and sits behind auth or deployment protection. Preview deployments do the same.
|
|
28
|
+
- **Fix:** don't rely on `Disallow: /`. A blocked URL can still be indexed from links alone, and Google can't see a noindex it isn't allowed to crawl.
|
|
29
|
+
|
|
30
|
+
### CRAWL-05 · Correct status codes, and no soft 404s · high
|
|
31
|
+
- **Check:** crawler `soft-404`, `server-error`. Code: not-found handling, retired-content handling, maintenance mode.
|
|
32
|
+
- **Pass:** 200 for live pages. 404 for unknown URLs. 410 for content removed for good. 301/308 for moved content. 503 with `Retry-After` during maintenance.
|
|
33
|
+
- **Fix:** never return a 200 "not found" page, and never redirect unknown URLs to the home page.
|
|
34
|
+
|
|
35
|
+
### CRAWL-06 · Sitemap URLs return 200 · high
|
|
36
|
+
- **Check:** crawler `sitemap-bad-status`.
|
|
37
|
+
- **Fix:** generate the sitemap from live data; list final URLs only.
|
|
38
|
+
|
|
39
|
+
### CRAWL-07 · No internal links to broken pages · high
|
|
40
|
+
- **Check:** crawler `broken-internal-link`. Code: generated link blocks (related, next, breadcrumbs, footer).
|
|
41
|
+
- **Fix:** fix or remove the link, and filter generated links through the set of live pages (LINK-04).
|
|
42
|
+
|
|
43
|
+
### CRAWL-08 · Redirects take one hop, and internal links skip them · medium
|
|
44
|
+
- **Check:** crawler `redirect-chain`, `link-to-redirect`. Code: redirect config, middleware, nginx/CDN rules.
|
|
45
|
+
- **Pass:** every old URL goes straight to its final destination. Internal links already point at final URLs, usually with the right trailing slash.
|
|
46
|
+
- **Fix:** collapse the chains. Watch frameworks whose trailing-slash redirect runs before custom redirects: put legacy redirects at the edge so they cover both slash forms in one hop.
|
|
47
|
+
|
|
48
|
+
### CRAWL-09 · Bot protection doesn't block real search crawlers · high
|
|
49
|
+
- **Check:** code and CDN config: WAF, bot-fight modes, captchas, rate limits.
|
|
50
|
+
- **Pass:** HTML pages are never challenged. Captchas and rate limits sit on actions (form submits, APIs), not on page loads. Crawlers are verified by reverse DNS or the CDN's verified-bots list, not by user agent.
|
|
51
|
+
- **Fix:** exempt HTML routes and verified bots. Under load, answer crawlers with 503 or 429 for hours (at most 1–2 days), never 403 or a challenge page. Verify Googlebot by IP using Google's published ranges (now under `developers.google.com/crawling/`). After launch, confirm a 200 with Search Console's URL Inspection live test.
|
|
52
|
+
|
|
53
|
+
### CRAWL-10 · Parameter, filter, search and result pages stay out of the index · medium
|
|
54
|
+
- **Check:** crawler with `--include-query` on a sample. Code: how list filters, sorting, internal search and shareable results build URLs.
|
|
55
|
+
- **Pass:** these pages send `noindex, follow` and a canonical to the clean URL (or none, for results). They're not in the sitemap and not blocked in robots.txt.
|
|
56
|
+
- **Fix:** add the robots rule per page type in the metadata helper. Expire shareable result links.
|
|
57
|
+
|
|
58
|
+
### CRAWL-12 · Crawl budget, only for large sites · low (high on large sites)
|
|
59
|
+
- **Applies when:** roughly 1M+ pages changing weekly, 10k+ changing daily, or many "Discovered – currently not indexed" URLs (Google says these aren't exact thresholds). Below that, don't raise crawl budget.
|
|
60
|
+
- **Pass:** removed pages return 404/410; no soft 404s or redirect chains; accurate lastmod; `304 Not Modified` supported; facet URLs that shouldn't be in Search are blocked in robots.txt (noindex does **not** save crawl budget); few 5xx or 429 responses.
|
|
61
|
+
|
|
62
|
+
### CRAWL-11 · Unreleased content is unreachable · high
|
|
63
|
+
- **Check:** code: draft/publish/release flags in the content layer, and whether routes, static params, the sitemap and link blocks all respect them.
|
|
64
|
+
- **Pass:** a draft returns 404, appears in no sitemap or link, and private previews use a secret, uncached, noindex URL.
|
|
65
|
+
- **Fix:** filter by the publish flag in one shared query that every consumer uses.
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# Internal linking (LINK)
|
|
2
|
+
|
|
3
|
+
The goal: every page links **up** to its parent, **across** to its siblings and **forward** to the next useful step, and the forward links close into loops, so a visitor or crawler who lands anywhere can reach everything.
|
|
4
|
+
|
|
5
|
+
```mermaid
|
|
6
|
+
flowchart LR
|
|
7
|
+
subgraph group["Inside one group (e.g. a tool family)"]
|
|
8
|
+
Hub["Section hub"] -->|lists| A["Item A"] & B["Item B"] & C["Item C"]
|
|
9
|
+
A -->|next step| B -->|next step| C -->|next step| A
|
|
10
|
+
A & B & C -->|breadcrumb| Hub
|
|
11
|
+
end
|
|
12
|
+
subgraph cycle["Across content types"]
|
|
13
|
+
Post["Blog post"] -->|defines terms| Term["Glossary term"] -->|explained in| Guide["Guide"] -->|test it| Tool["Tool"] -->|fix it| Tpl["Template / checklist"] -->|step in| Path["Path"] -->|get it done| Money["Service page"] -->|read more| Post
|
|
14
|
+
Money -->|proof| Report["Sample report"]
|
|
15
|
+
end
|
|
16
|
+
Res["Resources hub"] -->|links to every section| Post & Term & Guide & Tool & Tpl
|
|
17
|
+
Post & Term & Guide & Tool & Tpl -->|breadcrumb| Res
|
|
18
|
+
```
|
|
19
|
+
Inside each group, items chain into a loop. Across content types, each type points to the next and the money pages point back. A central hub links to every section, and every breadcrumb links back to it.
|
|
20
|
+
|
|
21
|
+
### LINK-01 · Hubs exist, and every page is within three clicks of home · high
|
|
22
|
+
- **Check:** crawler `deep-page` and the `depth` per page. Code: nav, footer, hub pages.
|
|
23
|
+
- **Pass:** home → section hubs → items. Each hub has an intro and links to everything in it. Groupings that aren't URLs (e.g. tool families) are sections with H2s on the hub.
|
|
24
|
+
|
|
25
|
+
### LINK-02 · No orphan pages · medium
|
|
26
|
+
- **Check:** crawler `orphan` (sitemap pages with no inbound internal links). Code: content-graph checks.
|
|
27
|
+
- **Pass:** every indexable page has at least one link from the **body** of another page. Sitemap, footer and menu links alone don't count.
|
|
28
|
+
- **Fix:** add the page to its hub and to the related blocks of its siblings. Add a build check that fails orphans.
|
|
29
|
+
|
|
30
|
+
### LINK-03 · Circular linking: up, across, forward, and across content types · high
|
|
31
|
+
- **Check:** code: related-content components and the data behind them. Content: a sample of pages of each type.
|
|
32
|
+
- **Pass:**
|
|
33
|
+
- **Up:** breadcrumb plus the hub link.
|
|
34
|
+
- **Across:** 3–6 siblings from the same group, both ways (adding an item updates its siblings).
|
|
35
|
+
- **Forward:** 1–2 "next step" links. Chain each group so its last item points back to its first.
|
|
36
|
+
- **Across types:** each content type points to the next one, ending at the pages that make money, which link back. A typical cycle: blog post → glossary term → guide → tool → template or checklist → path → service page → back to posts and guides. Local sites: service ↔ city ↔ nearby cities ↔ projects ↔ reviews. Shops: category ↔ product ↔ buying guide ↔ comparison.
|
|
37
|
+
- **Fix:** generate these links from data (related, next and guide fields), never by hand.
|
|
38
|
+
|
|
39
|
+
### LINK-04 · Links point only at live pages · high
|
|
40
|
+
- **Check:** crawler `broken-internal-link`, `link-to-redirect`. Code: are generated links filtered through the set of published items?
|
|
41
|
+
- **Fix:** filter at render time, and add a build check that fails on links to unknown or unpublished slugs. Unreleased product or feature pages stay unlinked.
|
|
42
|
+
|
|
43
|
+
### LINK-05 · Anchor text says what the target is · low
|
|
44
|
+
- **Check:** crawler `generic-anchor`. Content: anchor variety.
|
|
45
|
+
- **Pass:** descriptive anchors ("check your DMARC record"). The same exact keyword isn't repeated on every link to a page; vary it naturally.
|
|
46
|
+
|
|
47
|
+
### LINK-06 · Link blocks stay focused · low
|
|
48
|
+
- **Check:** crawler `too-many-links` (more than 150 per page).
|
|
49
|
+
- **Pass:** about 12–15 relevant contextual links on a content page, up to 6 siblings and 2 next steps. The footer links to hubs, not to every item. Nav doesn't list programmatic pages such as service × city.
|
|
50
|
+
|
|
51
|
+
### LINK-08 · An HTML sitemap page lists every hub and item · low
|
|
52
|
+
- **Check:** crawler pages for `/sitemap/` or similar. Code: footer link.
|
|
53
|
+
- **Pass:** a plain page linked from the footer that lists every hub, browse page and item, generated from the same data as the XML sitemap. It's a safety net for crawlers and for people who prefer scanning a list.
|
|
54
|
+
|
|
55
|
+
### LINK-09 · Defined terms link to their glossary entry once · low
|
|
56
|
+
- **Check:** content: guides, tool pages and posts that use glossary terms.
|
|
57
|
+
- **Pass:** the first mention of a term on a page links to its glossary entry, once per page, never every occurrence. Each glossary entry links back to the guide that explains it and the tool that tests it.
|
|
58
|
+
|
|
59
|
+
### LINK-07 · Browse pages and their items link both ways · medium
|
|
60
|
+
- **Check:** code: category, topic and tag pages.
|
|
61
|
+
- **Pass:** items link to their browse page (breadcrumb plus a "More in …" block). Browse pages link to every item, paginated. Tag pages exist only once there's enough volume.
|