When to use
- "Improve our internal linking", "find orphan pages", "which pages should link to our pricing page", "add internal links to this new post", "this page is stuck at position 12", "our anchors all say 'learn more'".
- After publishing a batch of content, after a restructure, or as the fastest lever for pages ranking 5 to 20.
- Not for links that return 404 or pass through redirects: use
broken-link-fixer. - Not for designing menus and URL hierarchy: use
site-architecture-planner. - Not for two pages competing for one query: link-building between them won't help; use
keyword-cannibalization-checkand merge.
What you need
Required:
- The domain and the goal: boost named target pages, or clean up the whole site.
Ask for, or assume and state:
- Priority targets: money pages (pricing, product, demo, key features), pages ranking 5 to 20, new pages. Default: the product and pricing pages plus anything the user names.
- Scope: hosts, languages and sections. Default: the main host and main language, every URL in the sitemap up to about 300 pages; beyond that, ask for a crawler export or sample by section.
- How edits get made: CMS access, a content export or a repository. Default: deliver a paste-ready list.
- Optional: Search Console page data (clicks, impressions, position), a crawler export with inlinks, backlink counts per page.
Data and tools
- In Slate: Web research lists sitemap URLs and reads each page; Search Console data on the Pages screen gives clicks, impressions and average position per tracked page; Publishing can apply approved edits to WordPress, Webflow or Sanity.
- With the Slate MCP server:
web_researchwithaction: "sitemap"(limitabove the default 100,include_stringfor one section) andaction: "scrape"per page withextract_mode: "markdown"(body links come through as Markdown links; check one page to see whether menu and footer links are included, and count them separately);query_pageswithview: "list", sorted bygsc.clicksfor strong sources and filtered withfilters.gsc_position{min: 5, max: 20}for near-page-one targets;query_webfloworquery_sanityto read CMS items, thenpublish_webflow_item,publish_sanity_documentorpublish_wordpress_postonly for edits the user approved. - Without Slate: a crawler export (inlinks and anchors per URL) or the agent's own fetch of each sitemap URL; the Search Console Performance export (Pages tab) for traffic and position; Search Console's Links report for a rough internal-link count per page. Without traffic data, choose sources by topical fit alone and say so.
Procedure
- Set the scope. Hosts, language, sections, page cap, targets. Confirm in one message.
- Build the inventory. Combine sitemap URLs, Search Console pages with impressions and URLs found while fetching. Normalise: lowercase host, drop fragments and tracking parameters, apply the trailing-slash policy, resolve redirects to the final URL. Exclude non-200, noindexed and non-canonical URLs from the target list.
- Map the links. For every page, extract same-site
<a href>links with their anchor text and where they sit: menu, header, footer, sidebar (sitewide) or body (contextual). Per URL, count contextual inlinks, sitewide inlinks and unique linking pages. Note links that hit a redirect or a 404 forbroken-link-fixer. - Classify pages.
- Orphan: no inlinks from any fetched page (reachable only through the sitemap or not at all).
- Menu-only: linked from menus or footer, no contextual links.
- Under-linked: a priority page with fewer than 3 contextual inlinks from relevant pages.
- Weak anchors: most inlinks say "learn more", "here" or the bare URL.
- Decide each orphan. Link it if it has value (traffic, backlinks, sells something or answers a real query). Merge it into a stronger page with a 301 if it duplicates one. Noindex or remove it if it has no value. Don't spend links on junk.
- Choose sources per target. Good sources already discuss the target's topic, are indexed, earn clicks or backlinks, and share the target's language. Prefer the parent hub and close siblings. Pick 3 to 5 sources per priority target.
- Write each link.
- Find a sentence in the source that already mentions the topic and wrap a phrase in it. If none exists, write one sentence that fits the paragraph's flow; flag it as new copy.
- Anchor: 2 to 6 words that say what the target is ("SOC 2 compliance checklist", not "this guide"). Vary anchors across sources; no exact anchor on more than about a third of a target's links. Never use the same anchor for two different targets.
- One link per target per source page, in the body, preferably in the first half. Link the final canonical URL, without parameters. Never nofollow an internal link.
- Complete the clusters. Each hub links to every child; each child links to its hub and 2 to 4 siblings; each article that discusses a product topic links to that product page once.
- Prioritise. P1: valuable orphans, money pages and targets ranking 5 to 20. P2: cluster completion and menu-only pages. P3: anchor rewrites and links that pass through redirects.
- Apply and verify. Only with approval, edit through the CMS or repository. Re-fetch each edited page and confirm the link is in the served HTML as an
<a href>. Recount inlinks and show before and after. Check the targets' positions again after 4 to 8 weeks.
Decision rules
- Link density is a diagnostic, not a target. There is no ideal number of links per 1,000 words; add a link where a reader would follow it.
- A shared keyword is not a relationship. Link when one page explains, extends, compares or sells what the other discusses.
- Links injected only by JavaScript widgets (related-post carousels loaded after interaction) may not be followed. Body links in the HTML count.
- Localised sites link within a language. A link from
/fr/to an English page is the exception, not the fix.
Output
## Internal linking plan: <domain>, <date>
Pages mapped: <n> (<source: crawl export / fetched sitemap URLs / sample of sections>). Traffic data: <Search Console, dates / none>.
### What we found
- Orphans: <n> (<n> worth linking). Menu-only: <n>. Under-linked priority pages: <n>.
### Link additions
| Priority | Target URL | Source URL | Sentence (existing, anchor in **bold**, or NEW) | Anchor | Why this source |
### Orphan decisions
| URL | Inlinks | Clicks (period) | Decision (link / merge and 301 / noindex) | Reason |
### Before and after (priority targets)
| Target | Contextual inlinks before | Planned after | Distinct anchors |
Deliver the additions table as CSV or a sheet when there are more than about 30 rows.
Quality checks
- Every proposed source page was read, and the sentence quoted is really on it.
- Every target is a 200, indexable, canonical URL; no link points at a redirect.
- Menu and footer links were counted separately from body links.
- No source gets more than one new link to the same target, and no target gets a single repeated anchor.
- Orphans with no value were not linked; each has a decision and a reason.
- Traffic figures name their source and date range; without data, the plan says sources were chosen by topic only.
Common mistakes
- Counting footer links as support. Sitewide links carry little topical signal. Count contextual links.
- Exact-match anchors everywhere. Twenty identical anchors read as manipulation and help readers less than varied, descriptive ones.
- Forcing links into unrelated posts. A link a reader won't click does little. Skip weak sources.
- Linking to redirects. Every hop wastes crawl and confuses reporting; link the final URL.
- Linking orphans that should be deleted. Thin duplicates need a merge, not more links.
- Stopping at a list. Unapplied suggestions change nothing. Make edits easy to paste, then verify they shipped.
