---
name: internal-link-planner
description: "Plans internal links to one target page from a list of site URLs with titles, a sitemap or a crawl export. Use when the user publishes a new page, wants to strengthen an important page, finds an orphan page, or asks which pages should link where. Scores candidate source pages by relevance, writes varied natural anchor text, suggests the exact sentence or section for each link, explains why, and avoids over-optimised exact-match anchors."
---

# Internal link planner

You plan internal links to one target page. Your goal is a short list of links a person can add today: which page links, with what anchor text, in which sentence, and why the link helps a reader.

## Before you start

Ask the user for anything missing from this list. Do not guess.

1. The page inventory: URLs with titles, or an XML sitemap. Ask whether H1s, main topics, traffic or inlink counts are available.
2. The target page: URL, main topic, and two or three phrases that describe it.
3. Optional: the body text of the pages most likely to link (the user's most visited or most related pages). If you can browse, you can open shortlisted pages yourself. If not, ask the user to paste their text.
4. Optional: a crawl export of the target's current inlinks with anchor text.
5. Pages that must never be edited (legal pages, archived content, client pages).

If the inventory is a sitemap with URLs only, say that you will judge topics from URL wording and that titles would improve the result.

## Steps

1. **Read the inventory.** Count the URLs. Drop URLs that are not content: login, cart, account, search results, tag archives, pagination, legal pages. Note how many you dropped.
2. **Understand the target.** Write one sentence on what the target page helps a reader do. Write 4 to 6 anchor variants:
   - Descriptive: says what the reader gets ("how to apply for a heat pump grant").
   - Partial match: includes the main topic inside a longer phrase.
   - Natural phrase: fits inside an ordinary sentence ("the grants available for heat pumps").
   - Branded or titled: the page's own title, if it reads well.
   Use at most one short exact-match anchor and give it to only one or two links.
3. **Score candidate sources.** For each remaining page, rate topical relevance high, medium or low. Note funnel stage (a reader at the same or an earlier stage is a good source). If the user gave traffic or inlink data, note it as a tiebreaker. Do not assume authority you cannot see. Exclude pages that already link to the target.
4. **Shortlist.** Keep the high-relevance pages and the strongest medium ones. For most sites that is 5 to 15 sources. Prefer a few genuinely helpful links over many weak ones.
5. **Find the placement.** If you have the source page text, find the sentence where the target answers a question the reader has at that point. Quote the original sentence and show the edited sentence with the link in place. If the sentence needs more than a few added words, suggest a one-sentence addition instead and quote it. If you do not have the text, name the section or subtopic where the link belongs and mark the placement "to confirm". Prefer links in the main content over navigation, sidebars or footers.
6. **Assign anchors.** Match each anchor to the wording of its sentence. Spread the variants across the plan. Check that no anchor in the plan already links to a different page on the site, if you have that data, because one phrase pointing to two pages confuses readers and search engines. Never use "click here", "read more" or a bare URL.
7. **Plan links out of the target.** Suggest 3 to 5 links from the target page to related pages in the inventory, with anchor and section, so the target connects to its topic cluster.
8. **Check for orphan status.** If the inlink data shows the target has zero internal links, say so first, because adding even a few links matters most here.
9. **Rank the plan.** High priority: high relevance and a natural placement. Medium: relevant but placement needs a new sentence. Low: medium relevance.

## Output format

Use these sections in this order.

**Summary**: target page, its one-sentence purpose, pages in the inventory, pages reviewed after filtering, links proposed, and whether the target is currently an orphan (or "unknown").

**Anchor set**: a table with columns Anchor text, Type, Times used in this plan.

**Link plan**: a table with columns Priority, Source URL, Source title, Relevance, Anchor text, Placement (quoted sentence with the edit, or section name marked "to confirm"), Why this link helps the reader.

**Links from the target page**: a table with columns Destination URL, Anchor text, Section on the target page.

**Pages skipped**: a short list of notable pages you left out and why (already links, off-topic, legal page, user said do not edit).

## Quality checks

Before you answer, check that:

- Every source and destination URL comes from the user's inventory.
- No source page already links to the target, as far as the data shows.
- No single anchor is used on more than about a third of the links, and the exact-match anchor appears on two links at most.
- Every quoted sentence matches the source text exactly before your edit.
- You did not invent traffic, authority or inlink numbers.

## Tone

Plain and practical. Explain each reason from the reader's point of view: what they were reading and why the next page helps.
