internal-linker

internal-linker is a skill for Claude Code from DariuszCiesielski/polish-agent-skills. It costs 83 tokens per session (1,794 once invoked), scanned A, original, MIT.

A tool for reviewing and improving links between pages on the same website. It also checks how pages are grouped around related topics.

In plain words
What is it for?
Use it to audit internal links, find orphan pages, detect keyword cannibalization, suggest links for a page, and create a link map.
Why use it?
It helps find pages that no other page links to, competing pages targeting the same search term, weak link text, and uneven link distribution.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the polish-seo-skills plugin — 3 skills shipped together

Good fit Use it to audit internal links, find orphan pages, detect keyword cannibalization, suggest links for a page, and create a link map.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dariuszciesielski/polish-agent-skills/internal-linker
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DariuszCiesielski/polish-agent-skills --skill internal-linker
Clone the repo
git clone --depth 1 https://github.com/DariuszCiesielski/polish-agent-skills

Made for: Claude Code.

Or install polish-seo-skills, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for internal-linker

README.md
[![agentmods](https://agentmods.dev/badge/skills/dariuszciesielski/polish-agent-skills/internal-linker/github.svg)](https://agentmods.dev/skills/dariuszciesielski/polish-agent-skills/internal-linker)
Your own site
<a href="https://agentmods.dev/skills/dariuszciesielski/polish-agent-skills/internal-linker"><img src="https://agentmods.dev/badge/skills/dariuszciesielski/polish-agent-skills/internal-linker/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for internal-linker

Your own site · 80×15
<a href="https://agentmods.dev/skills/dariuszciesielski/polish-agent-skills/internal-linker"><img src="https://agentmods.dev/badge/skills/dariuszciesielski/polish-agent-skills/internal-linker.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 83 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,794 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00083 $0.01794
Opus 5 $0.00042 $0.00897
Sonnet 5 $0.00017 $0.00359
Haiku 4.5 $0.00008 $0.00179

Measured 12d ago against content hash dc2a839005da, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

internal-linker scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/seo/internal-linker/SKILL.md · 192 lines

How it starts

The opening of the file, as written. The whole thing — 192 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Audytuje i optymalizuje strukturę linków wewnętrznych w projekcie. Wykrywa orphan pages, cannibalization, złe anchor texty i nierównomierne rozkłady link equity.

Kiedy używać

  • Strona ma >20 podstron i brak strategii linkowania
  • Blog rośnie ale artykuły nie linkują do siebie
  • Nowe strony nie dostają organic traffic (orphan pages)
  • Podejrzenie keyword cannibalization
  • Użytkownik mówi: "linki wewnętrzne", "orphan pages", "internal link audit"

Komendy

/internal-linker audit          — pełny audyt linków wewnętrznych
/internal-linker orphans        — wykryj orphan pages (0 linków przychodzących)
/internal-linker cannibalization — wykryj keyword cannibalization
/internal-linker suggest <url>  — zaproponuj linki dla konkretnej strony
/internal-linker map            — wygeneruj mapę linków (visual)

Proces audytu

Krok 1: Skan struktury

Przeskanuj projekt i zbuduj graf linków:

Dla każdej strony (page.tsx, post.md, etc.):
  1. URL strony
  2. H1 / title
  3. Target keyword (z meta/frontmatter)
  4. Linki wychodzące (internal) — URL + anchor text
  5. Word count

Krok 2: Zbuduj macierz

| Strona | Linki IN | Linki OUT | Keyword | Orphan? |
|--------|----------|-----------|---------|---------|
| / | 15 | 8 | [brand] | — |
| /blog/art-1 | 0 | 2 | [kw1] | ⚠️ TAK |
| /features | 5 | 3 | [kw2] | — |
| /pricing | 3 | 1 | pricing | — |

Krok 3: Diagnoza

A. Orphan Pages (0 linków IN)

Problem: Google nie może znaleźć strony jeśli żaden link do niej nie prowadzi. Fix: Dodaj min. 3 linki z powiązanych stron.

B. Link Equity Imbalance

Problem: Homepage ma 50 linków IN, blog post 0. Fix: Linkuj z high-authority pages do ważnych stron docelowych.

Reguła dystrybucji:

Homepage → /features, /pricing, /blog (top 3 artykuły)
Pillar page → wszystkie supporting articles
Supporting article → pillar + 2 inne supporting + /features lub /pricing
Feature page → case study + blog post o feature + /pricing

Read the full file on GitHub · 192 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 192 lines · 83 tokens per session scan A dc2a839005da

Subscribe to this mod's changes

internal-linker is a skill published in the GitHub repository DariuszCiesielski/polish-agent-skills (2 stars, last pushed 4mo ago), licensed MIT. It adds 83 tokens to every session and 1,794 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.