Skip to content
Agents Handbook
PlaybooksJobsAgentsLessonsField logFor agents
Corroborated· Two or more independent accountslow risk

Map your internal links, fix orphan pages and point each topic cluster at one hub page

An agent crawls your site, counts how many internal links point at each page, and lists orphan pages and pages with only one or two links. You tag each page as money, supporting or low value. The agent groups pages by topic, picks one hub per group, and proposes new links with descriptive anchor text and the sentence where each one goes. Review every link in context before it ships, because too many links weaken each one.

Credit: Ilias Ism (seo-skills) · Edited by the Agents Handbook editors · CC BY 4.0

What you get

Every important page gets links from related pages, orphan pages are linked or removed, and each topic has one hub page.

Difficulty
Intermediate
Time
An afternoon for the first pass (one report)
Sources
3 · 3 independent
Updated
2026-10-13
Cost:
Included in a coding agent plan
Start here

The prompt

Fill the blanks here, or leave them for your agent to ask. Pick the tab for your agent. The hand-off button gives any agent this page as markdown.

Map the internal links of [https://example.com]. The content is in [this repository / the CMS export at data/pages.csv].

1. List every published URL from the sitemap and from a crawl of internal links. Include pages that no other page links to.
2. For each URL, count the internal links that point to it, the links it sends out, and the anchor texts used. Count only links in the main content, and report menu and footer links separately.
3. List orphan pages (0 links in) and near-orphans (1 or 2 links in).
4. Propose a tag for each page: money (it sells or converts), supporting (it answers a question related to a money page), or low value. Wait for me to confirm the tags.
5. Group pages by topic. For each group, propose one hub page. Supporting pages link to the hub, and the hub links to the money page.
6. Find pairs of pages that target the same query. Say which one should own it.
7. Propose new links. For each one, give the source page, the target page, the anchor text and the exact sentence where it goes. Vary the anchor text. Add no more than 3 new links to any one page in this pass.
8. Write the plan to [seo/internal-links-YYYY-MM-DD.md] and wait for my approval before you edit anything.
Open in ClaudeOpen in ChatGPT3 of 3 blanks left

Human checkpoints: the agent stops and asks you

  • Approve the page tags (money, supporting, low value) and the hub for each topic.
  • Review each proposed link in its sentence before the agent edits pages.
  • Approve any merge, redirect or deletion of low-value pages yourself.

Bulk link edits can add awkward or wrong links across many pages. Review them before you publish.

Before you start

What you need

  • The repository or a CMS export with your page contentdata
  • A coding agent that can crawl your siteapp
  • Optional. Its rules give every new page links from at least three existing pages, and flag orphan pages in the daily check.

8 steps

Steps

0/8 done
  1. List every page

    Paste the prompt. The agent combines the sitemap with a crawl, because pages that nothing links to are often missing from one of them.

    Check: The list includes pages you forgot you published.

  2. Count links per page

    The agent counts the links that point at each page. Links in the main text matter most. A page linked only from the footer is close to an orphan.

    Check: You see a table of links in and links out per page.

  3. Tag the pages

    Confirm or change the agent's tags. Money pages sell or convert. Supporting pages answer related questions. Low-value pages may need a merge, a redirect or no action.

    Check: Every page has one tag that you approved.

  4. Choose one hub per topic

    For each group of related pages, pick the page that best covers the topic. Supporting pages link to it, and it links to the money page.

    Check: Each topic has one hub.

  5. Settle pages that compete

    If two pages target the same query, pick one to own it. Link the other one to it, or merge them with a redirect.

    Check: Each important query has one owner page.

  6. Review the proposed links in context

    Read each new link in its sentence. Reject links that interrupt the reader or point to a page the reader does not need next. Use anchor text that describes the target page.

    Check: Each approved link reads naturally.

  7. Apply, then crawl again

    The agent adds the approved links. Run the crawl again and compare the counts.

    Check: No important page is an orphan, and the hubs gained links.

  8. Set the rule for new posts

    Write a rule into your publishing checklist. For example, every new post links to its hub and to two related posts, and gets links from at least three existing pages.

    Check: The rule is written where you and your agent will see it.

5 known failures

What goes wrong

  • The agent adds so many links that each one carries little weight.

    Fix: Cap new links per page in each pass, and keep only links a reader would click.

  • Every link to a page uses the same anchor text.

    Fix: Ask for varied, descriptive anchors that match the sentence.

  • The links load with JavaScript and crawlers cannot follow them.

    Fix: Use normal anchor elements with an href. Google says it can only reliably follow links in that form.

  • The agent links to URLs that redirect.

    Fix: Ask it to link to the final URL of each target.

  • The audit counts menu and footer links and hides real orphans.

    Fix: Count links in the main content separately from navigation links.

Corroborated

Evidence

Two or more public accounts from different people or sites describe the same job. We summarise each source in our own words. Open the original before you rely on it.

  • LinkedIn2026-08-09
    Mapping internal links with a Claude skill

    He describes his process: crawl every URL, tag pages as money, supporting or dead weight, count inbound links, find orphans, group topics around a hub, and vary anchors. He says the first full pass took an afternoon and that over-linking is a real failure mode. He turned it into a Claude skill.

    Borja Obeso · linkedin.com
  • LinkedIn2026-06-17· Claude Code
    A non-technical marketer runs SEO with Claude Code

    She says a one-time cleanup with Claude Code fixed 1,797 internal links, along with titles, meta descriptions and FAQs on 163 pages. She reports traffic gains for the whole cleanup, not for the links alone.

    Nalini Robbins · linkedin.com
  • LinkedIn2026-06-12· Claude Code
    I tested Claude SEO agents so you don't have to

    He tested a general SEO audit skill on his own site. He says it did not flag pages with only one or two internal links, which he counts among the most important issues. A general audit is not enough for internal links.

    Daniel Foley Carter · linkedin.com
Close the loop

Report how it went

Every report makes this page better for the next person and the next agent. Reports are reviewed before they count. Agents can report with the report_run tool.

How did it go?