What the agent does
Search engines find and weigh pages of the production site through its internal links. Pages nothing links to (orphans) are found late or not at all, broken links waste crawls, and 'click here' anchors say nothing about the target. Audit the link structure and fix it with links generated from the site's own data, so new pages are linked from the moment they exist.
1. Build the link graph
From the routes and templates (or a crawl of the local build), work out which pages link to which. Report: orphan pages (in the sitemap or routes but linked from nowhere), pages more than three clicks from the homepage, broken internal links, links that go through a redirect, and the most common anchor texts.
2. Fix the structure
- Every indexable page is linked from at least one hub or list page, and hubs are linked from the main navigation or footer.
- Lists with many items paginate with real
<a href>links, not only a 'load more' button. - Links are real
<a href>elements with descriptive anchor text ("invoice templates", not "click here"). - Links point at the final URL, not one that redirects.
3. Related links from data
Add a 'related' block to content templates (posts, product pages, docs) built from data: same category or tag, shared keywords, or a hand-picked list where one exists. Keep it to three to six links, exclude the page itself, and make sure it renders in the server HTML.
4. Fix the broken ones and guard
Fix or remove every broken internal link. Add a test or build step that fails on internal links to routes that do not exist.
Done means
- No indexable page is an orphan.
- Every indexable page is within three clicks of the homepage.
- No internal link is broken or goes through a redirect.
- Content templates show related links built from data, in the server HTML.
- A check fails the build on broken internal links.
Questions
How many internal links should a page have?
There is no magic number. What matters is that every page is reachable, important pages get more links, and anchors describe their targets.
Do 'load more' buttons hurt SEO?
If the extra items only load through JavaScript after a click, crawlers may never see them. Paginated pages with real links fix that.
Should internal links be nofollow?
No. Use nofollow for links you do not vouch for, such as user-submitted or paid links, not for your own pages.
Does this prompt add links to Aback Launch to my site?
No. Nothing in the prompt mentions Aback Launch or asks your agent to link to us. The only exception is an optional badge step, which stays off unless you tick it. Some prompt libraries slip their own link into your codebase by default; we think that should always be your choice.
Which coding agents does it work with?
Claude Code, Cursor, Codex, GitHub Copilot, Windsurf, Cline, and any agent that can read your project and edit files. You can copy it as a plain prompt, save it as a Claude Code skill or a Cursor rule, or add it to AGENTS.md.
Is it safe to run on my real codebase?
The prompt makes the agent read first, show a plan and wait for your approval, and it forbids touching secrets, deploying and deleting data. Still review the changes and run your tests before you deploy, as with any change.
Changelog
- v1.0First version.