internal-linking
БесплатноЗапускает вложенные скриптыНе проверенRuns reverse internal linking ("traffic-to-money routing") in the user's repo, editing high-traffic informational posts in place to pass contextual links and…
от Illyism★ 2 274 звезды на GitHubОб этом скилле
Internal Linking
You route the traffic and link equity that informational posts already earn into the pages that make money. The output is edited MDX and route files plus a before/after inbound-link table. A list of "suggested links" with no edits is a failed run.
Why most SaaS blogs earn traffic and $0
On a typical SaaS site I audit, informational posts like how to format JSON or what is DMARC pull around 80% of organic visits and most of the external backlinks. The pages that convert, /pricing, /use-cases/agencies, /vs/competitor, /tools/dmarc-checker, sit 4 clicks from the homepage with 1 footer link each.
Google passes ranking signals through internal links, and visitors follow links that appear while they are still reading. When the blog never links to the money pages in body copy, the money pages get neither the equity nor the clicks. Fixing that needs zero new content and zero new backlinks.
Inputs
REPO: framework and content paths (app/, pages/, content/, src/)
TRAFFIC: GSC export (pages, clicks, last 90 days) OR Ahrefs top pages OR none
MONEY PAGES: /pricing, /use-cases/*, /vs/*, /tools/*, /features/*, /integrations/* (confirm with the user)
SITE URL: production origin, to normalize absolute links
Step 1: Build the internal link graph
Copy scripts/internal-link-graph.mjs from this skill folder into the repo's scripts/ (full source below) and run it from the repo root. Adjust routeOf() if the repo maps files to URLs differently.
#!/usr/bin/env node
// Usage: SITE=https://deployfast.dev node scripts/internal-link-graph.mjs > seo/internal-link-graph.json
// Before editing, write to seo/internal-link-graph.before.json instead, so the after run does not overwrite it.
import { readFileSync, readdirSync, statSync } from 'node:fs'
import { join, sep } from 'node:path'
const ROOTS = ['app', 'pages', 'content', 'src', 'components']
const EXT = /\.(mdx?|[jt]sx?|astro)$/
// Files whose links appear on every page (nav, footer, layouts). Counted as sitewide, not contextual.
const CHROME = /(layout\.[jt]sx?$|(nav|header|footer|sidebar)[^/]*\.[jt]sx?$)/i
const MONEY = /^\/(pricing|use-cases|vs|alternatives|tools|features|integrations|compare)(\/|$)|-alternative$/
const SITE = (process.env.SITE ?? '').replace(/\/+$/, '')
const walk = (dir, out = []) => {
let names
try { names = readdirSync(dir) } catch { return out }
for (const n of names) {
if (n === 'node_modules' || n.startsWith('.')) continue
const p = join(dir, n)
if (statSync(p).isDirectory()) walk(p, out)
else if (EXT.test(n)) out.push(p)
}
return out
}
const norm = (p) => (p.length > 1 ? p.replace(/\/+$/, '') : p)
function routeOf(file) {
const f = file.split(sep).join('/')
let m
if ((m = f.match(/^(?:src\/)?content\/(.+)\.mdx?$/))) return norm('/' + m[1].replace(/(^|\/)index$/, ''))
if ((m = f.match(/^(?:src\/)?app\/(?:(.*)\/)?page\.[jt]sx?$/))) {
const r = (m[1] ?? '').replace(/\([^)]*\)\/?/g, '')
return r.includes('[') ? null : norm('/' + r) // dynamic templates are covered by their content files
}
if ((m = f.match(/^(?:src\/)?pages\/(.+)\.(?:[jt]sx?|astro|mdx?)$/))) {
if (/^(_|api\/)/.test(m[1]) || m[1].includes('[')) return null
return norm('/' + m[1].replace(/(^|\/)index$/, ''))
}
return null
}
const pages = new Map(), inbound = new Map(), sitewide = new Set()
for (const file of [...new Set(ROOTS.flatMap((r) => walk(r)))]) {
let text = readFileSync(file, 'utf8')
if (SITE) text = text.split(SITE).join('')
const links = new Set()
for (const re of [/\]\((\/[^)\s"'#?]*)/g, /href=\{?\s*["'`](\/[^"'`#?\s]*)/g])
for (const m of text.matchAll(re)) if (!m[1].includes('${')) links.add(norm(m[1])) // skip `/blog/${slug}` template literals
if (CHROME.test(file)) { links.forEach((l) => sitewide.add(l)); continue }
const route = routeOf(file)
if (!route) continue
pages.set(route, file)
for (const l of links) if (l !== route) (inbound.get(l) ?? inbound.set(l, new Set()).get(l)).add(route)
}
const rows = [...pages].map(([route, file]) => ({
route, file,
contextualInbound: inbound.get(route)?.size ?? 0,
linkedFrom: [...(inbound.get(route) ?? [])],
inNavOrFooter: sitewide.has(route),
money: MONEY.test(route),
})).sort((a, b) => a.contextualInbound - b.contextualInbound)
console.log(JSON.stringify({
generatedAt: new Date().toISOString(),
orphanMoneyPages: rows.filter((r) => r.money && r.contextualInbound < 3).map((r) => r.route),
pages: rows,
}, null, 2))
If money pages are generated from a data file (for example /use-cases/[slug] built from data/use-cases.ts), add those routes to the graph by hand; the script only sees file-backed pages.
Classify every page
Page
├── money = true
│ ├── contextualInbound < 3 → ORPHAN TARGET (fix first)
│ ├── contextualInbound 3-9 → UNDERLINKED TARGET
│ └── contextualInbound >= 10 → OK, skip
└── money = false (blog, docs, guides)
├── T
Установить internal-linking в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл internal-linking?
Runs reverse internal linking ("traffic-to-money routing") in the user's repo, editing high-traffic informational posts in place to pass contextual links and prefilled tool callouts to `/pricing`, `/use-cases/*`, `/vs/*`, and `/tools/*`, and ships a before/after inbound-link table. Use when the user asks about internal linking, orphan pages, a blog that gets traffic but no signups, link equity, topic clusters, or why money pages don't rank.
Как установить скилл internal-linking?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл internal-linking запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic