seo-internal-linking
Skill1 starsChanged 8 months agoMITView on GitHub
Internal linking strategy and rules for SEO. Use when adding navigation, breadcrumbs, footer links, related products, cross-links, or language switcher components.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- Hainrixz/claude-seo-aitheir own version, first seen Sep 6, 2026
- Thibaultbm/claude-seo-geotheir own version, first seen Aug 12, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- Hainrixz/claude-seo-ai★ 71same name
- Thibaultbm/claude-seo-geo★ 16same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository11 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- seo-crawlabilitySkill
- seo-ecommerceSkill
- seo-hreflangSkill
- seo-imagesSkill
- seo-metadataSkill
- seo-performanceSkill
- seo-redirectsSkill
- seo-structured-dataSkill
- seo-urls-routingSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Follow these rules when building navigation, breadcrumbs, and cross-linking features.
- Distinctive: line 36
Every page except the homepage should have visible breadcrumbs AND matching BreadcrumbList schema.
- Distinctive: line 203
Why the switcher matters for SEO: Search engine crawlers use the language switcher to discover locale variants of pages.
- Very specific: line 207
Use rel="nofollow" sparingly and only where appropriate:
- Distinctive: line 218
Default rule: Do NOT add nofollow to internal links.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Internal Linking SEO Guidelines
Follow these rules when building navigation, breadcrumbs, and cross-linking features.
Why Internal Linking Matters
Internal links distribute PageRank (ranking power) across your site and help search engines discover pages. A product page with 50 internal links pointing to it will outrank an identical page with only 1 internal link.
Use next/link for All Internal Links
- Always use
<Link>fromnext/linkfor internal navigation — never raw<a>tags - next/link enables client-side navigation (faster) and prefetching (even faster)
- Raw
<a>tags trigger full page reloads
// GOOD
import Link from 'next/link';
<Link href={`/${locale}/products/${product.id}/${product.slug}`}>
{product.name}
</Link>
// BAD
<a href={`/${locale}/products/${product.id}/${product.slug}`}>
{product.name}
</a>Breadcrumbs
Every page except the homepage should have visible breadcrumbs AND matching BreadcrumbList schema. Note: as of January 2025, Google no longer displays breadcrumbs in mobile search results (they still appear on desktop). Breadcrumbs remain valuable for desktop SERP display, site hierarchy understanding, and user navigation.
Implementation Rules
- Mirror the URL/site hierarchy — Home > Category > Subcategory > Product
- Every level is a clickable link except the current page
- Current page is plain text (not a link)
- Consistent across locales — same hierarchy, translated labels
- Visible in the page — not hidden, not only in schema
- Minimum 2 breadcrumb items required for Google to recognize the trail
- Represent the user's navigation path, not necessarily the URL hierarchy
// Example breadcrumbs component — adapt to your project
import Link from 'next/link';
import { JsonLd } from './JsonLd';
// Example import — use your project's actual config
import { siteConfig } from '@/config/site';
interface Crumb {
label: string;
href?: string;
}
export function Breadcrumbs({ items, locale }: { items: Crumb[]; locale: string }) {
const schema = {
"@type": "BreadcrumbList",
itemListElement: items.map((item, index) => ({
"@type": "ListItem",
position: index + 1,
name: item.label,
...(item.href ? { item: `${siteConfig.url}${item.href}` } : {}),
})),
};
return (
<>
<JsonLd data={{ "@context": "https://schema.org", ...schema }} />
<nav aria-label="Breadcrumb">
<ol>
{items.map((item, index) => (
<li key={index}>
{item.href ? (
<Link href={item.href}>{item.label}</Link>
) : (
<span aria-current="page">{item.label}</span>
)}
</li>
))}
</ol>
</nav>
</>
);
}
// Usage on a product page:
<Breadcrumbs
locale="en-GB"
items={[
{ label: 'Home', href: `/${locale}/` },
{ label: 'Electronics', href: `/${locale}/categories/electronics` },
{ label: 'Wireless Headphones', href: `/${locale}/categories/electronics/wireless-headphones` },
{ label: 'Widget Pro 500W' }, // Current page — no href
]}
/>Anchor Text
Anchor text (the clickable text of a link) tells search engines what the target page is about.
Rules
- Use descriptive text — the product name, category name, or action
- Never use "click here" or "read more" or "learn more" as the sole anchor text
- Include keywords naturally — "View our industrial widgets" not "click here for products"
- Vary anchor text — don't use the exact same text for every link to the same page
- Don't over-optimize — natural language, not keyword-stuffed
// GOOD
<Link href={`/${locale}/categories/electronics/wireless-headphones`}>
Wireless Headphones
</Link>
<Link href={`/${locale}/products/${id}/${slug}`}>
{product.name} — {product.shortSpec}
</Link>
// BAD
<Link href={url}>Click here</Link>
<Link href={url}>Read more</Link>
<Link href={url}>Link</Link>Related Products / Cross-Linking
Product pages should link to related products:
- Same category — other products in a similar range
- Compatible accessories — add-ons, parts, maintenance kits for this product
- Upgrade/downgrade — next model up/down in the range
- Bundles — if this product is part of a bundle, link to the bundle
// components/RelatedProducts.tsx
export function RelatedProducts({ products, locale }: Props) {
return (
<section>
<h2>Related Products</h2>
<ul>
{products.map(product => (
<li key={product.id}>
<Link href={`/${locale}/products/${product.id}/${product.slug}`}>
<Image src={product.image} alt={`${product.name} - ${product.shortSpec}`} width={200} height={150} />
<span>{product.name}</span>
</Link>
</li>
))}
</ul>
</section>
);
}Navigation (Header/Footer)
Header Navigation
- Include links to top-level categories
- Include subcategory links in dropdown menus
- Links should use the current locale prefix
- Include the language/country switcher
Footer Navigation
- Include links to: all top-level categories, FAQ, contact, legal, services
- Consistent across all pages and locales — same structure, translated labels
- Footer links help search engines discover important pages from every page on the site
Language Switcher
The language/country switcher MUST:
- Link to the same page in the target locale — not the homepage
- Preserve the full URL path — switching from
/en-GB/products/123/widget-proto French →/fr-FR/products/123/widget-pro - Be a visible, crawlable link — not hidden behind JavaScript-only interaction
- Use
<Link>from next/link
// components/LanguageSwitcher.tsx
export function LanguageSwitcher({ currentLocale, currentPath }: Props) {
return (
<nav aria-label="Language">
{ALL_LOCALES.map(locale => (
<Link
key={locale}
href={`/${locale}${currentPath}`}
hrefLang={locale}
aria-current={locale === currentLocale ? 'true' : undefined}
>
{getLocaleName(locale)}
</Link>
))}
</nav>
);
}Why the switcher matters for SEO: Search engine crawlers use the language switcher to discover locale variants of pages. If the switcher only links to homepages, crawlers won't efficiently find all localized versions.
Nofollow Usage
Use rel="nofollow" sparingly and only where appropriate:
| Link Type | nofollow? | Reason |
| Internal navigation | No | You want PageRank to flow |
| Internal product links | No | You want PageRank to flow |
| External affiliate links | Yes | Paid/sponsored links |
| User-generated content | Yes | Untrusted content |
| Login/register links | Optional | Low SEO value |
| Social media links | No | But they're external, so limited value |
Default rule: Do NOT add nofollow to internal links. Only add it to external untrusted or paid links.
// External affiliate link — use nofollow
<a href="https://partner-site.com" rel="nofollow noopener" target="_blank">
Partner Name
</a>
// Internal link — NEVER nofollow
<Link href={`/${locale}/products/${id}/${slug}`}>
{productName}
</Link>Common Mistakes to Avoid
- Raw
<a>for internal links — always use next/link - "Click here" anchor text — use descriptive text
- Language switcher linking to homepage — must preserve current page path
- Missing breadcrumbs — required on every page except homepage
- Breadcrumb schema without visible breadcrumbs — both must exist and match
- nofollow on internal links — never nofollow your own pages
- Orphan product pages — every product must be linked from at least one category page
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

