# Link Building

> Backlink analysis and link building — audit the backlink profile, find competitor link gaps and AI-cited link targets, discover and vet prospects (resource pages, listicles, guest-post guidelines, directories, broken links, unlinked mentions), and hand them to outreach. Use for backlinks, link building, guest posts, link insertions, link gap, toxic links, "get more links", or link prospecting.

- Skill: `khadinakbarlabs/link-building` (Agent Skill)
- Install (CLI): `npx get-skill add khadinakbarlabs/link-building`
- Raw SKILL.md: https://api.skillmd.com/api/skills/khadinakbarlabs/link-building/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Security
- Author: khadinakbarlabs (https://skillmd.com/u/khadinakbarlabs)
- Updated: 2026-11-16
- Page: https://skillmd.com/skills/khadinakbarlabs/link-building

---


# Link building

Talk like `../../references/plain-language.md`: plain words, at most five prospects per message, and end each step with Done / Cost so far / Next, asking for one yes.

Read `../../references/checklist-offpage.md` (criteria, tactics, never-do list) and the run protocol in `../../references/tools-and-apis.md` (ask → cap → run).

## Web connector mode
No `seo-workspace/` or `prospects.csv` here — keep the shortlist in chat (or `save_results` under a project name if they want history). Research is a paid check billed to the user's own Apify account: say so and wait for a clear yes, then `quote_cost` for the spending cap (often pack `competitors`, or custom backlink/opportunity jobs) and `call-actor` on `khadinakbar/*` only. Give the amount only if the user asks what it costs. Show at most five prospects per message. Hand outreach drafts to the `outreach` skill; on the web that means `check_outreach_draft` before any email yes.

## 1. Profile audit (always first)
- `khadinakbar/website-backlink-checker`: `mode: summary` for the client and the top 3 competitors, then `referring_domains` and `anchors` for the client (`maxResults` ≤100; paid). Or delegate to the `backlink-analyst` agent, passing it only the caps the user approved.
- Compare referring domains, anchor mix and dofollow share to the competitors. Flag over-optimised exact-match anchors, bursts, toxic neighbourhoods, and backlinks pointing at 404/redirected URLs (reclaim with 301s).
- Disavow only if there is a manual action.

## 2. Build the opportunity list (`seo-workspace/<domain>/prospects.csv`)
Columns: `domain,url,type,source,dr,traffic,relevance,contact,email,verified,status`. Sources, in order of value:
1. **Already yours**: unlinked brand mentions (SERP: `"[brand]" -site:[domain]`), partners, suppliers, integrations, clients, associations, awards; broken links pointing at the client's old URLs.
2. **Competitor gap**: referring domains linking to ≥2 competitors but not the client (diff the `referring_domains` reports) — directories and review sites first, then editorial.
3. **AI-cited pages** from `ai-search-visibility` (listicles, roundups, comparison pages) → inclusion requests.
4. **Prospect discovery**: `khadinakbar/backlink-opportunity-finder` — `keywords` (3–10 topics), `targetDomain` (client), `excludeDomains` (competitors, marketplaces), `opportunityTypes` (resource pages, guest-post guidelines, listicles, directories…), `countryCode`, `maxResultsPerKeyword` (default 25), `minimumRelevanceScore`. Charged per saved prospect, so keep the count small (for example 5 topics × 20). Paid: ask first. Start with the sites AI cites for two or more competitors but not the brand, when `ai-search-visibility` or `competitor-research` has that list.
5. **Custom footprints** via `khadinakbar/scrape-google-serp` when needed: `"[topic]" "write for us"`, `intitle:"best [category]"`, `"[topic]" inurl:resources`, `inurl:sponsors [city]`, `"[competitor]" review -site:[competitor]`.
6. **Broken-link building**: run `khadinakbar/broken-link-checker` (paid; ask first) on the best resource pages; each dead outbound link relevant to a client page = a replacement pitch.
De-duplicate by domain; drop domains already linking to the client.

## 2b. Score and rank (so the user works on the best 20, not the first 200)
Score each prospect 0 to 2 on: topical relevance, real traffic in the target country, page likelihood to link (it already lists similar resources), ease (contact found, clear ask), and what the link would add that the profile lacks. Contact at 6 or more out of 10, best first. Show the user the top 20 in plain words: who, why them, what to ask for.

## 3. Vet every candidate (no exceptions)
Pass all: real organic traffic with no recent cliff, traffic in the target country, topical relevance to the page you'd link, the page indexed (`site:` check) and not crowded with outbound links, not a link farm / sell-to-anyone site, sensible price if paid. Record the reason in `relevance`. A smaller relevant site beats a big irrelevant one.

## 4. Act
- **Outreach links** (`type` = listicle / resource / broken-link / unlinked-mention / competitor-gap / guest-post): set `status=to_contact` and hand to the `outreach` skill (templates in `../../references/outreach-playbook.md`). Contacts come from `khadinakbar/bulk-website-contact-extractor` and are verified with `khadinakbar/email-address-validator` there.
- **Claimable listings** (directories, review sites, partner pages): list the exact URL and the fields to submit; the user (or a browser session they supervise) completes them.
- **Paid placements**: Citebase does not sell, resell or recommend vendors for links or placements. If the user decides to buy one on their own, help vet the site with §3, link the most relevant page, every paid link must carry `rel="sponsored"` or `nofollow` (if the publisher refuses, do not buy it), and never place an order yourself.
- For guest posts, draft the article to the publisher's guidelines: genuinely useful, original, one contextual link, brand mention, no AI slop.
- Log every placement in `seo-workspace/<domain>/offpage-log.csv`: `date,type,vendor,target_url,live_url,anchor,cost_usd,status`.

Pace by site stage: a new site (under 20 pages) earns 3 to 5 links a month from owned and relationship sources first (partners, suppliers, directories, unlinked mentions); an established site adds competitor-gap and listicle asks; only then consider paid placements. Report each month in plain words: links won, from whom, to which page, and what to ask for next.

## 5. Verify and maintain
Fetch each live URL: confirm the link exists, its `rel`, anchor and target; check the page is indexed after ~2 weeks; re-check monthly and log lost links. Pace: steady monthly cadence sized to the site (a 10-page new site ≈5 links in month 1), never bursts to one page.

## Never
PBNs, link farms, expired-domain redirect schemes, hacked/parasite placements, link exchanges at scale, comment/forum spam, automated directory bots. Flag these if found in the profile.

