When the user wants backlink analysis, link gap analysis, competitor link profiles, referring domain data, or link building research. Trigger on "backlinks," "who links to," "link profile," "referring domains," "link gap," "Ahrefs," "link building research," or "why do they outrank me" (often a link authority issue).
Add this skill
npx mdskills install garrettjsmith/ahrefs-toolComprehensive link analysis guide with clear workflows, metric interpretation, and actionable next steps
1---2name: ahrefs-tool3description: When the user wants backlink analysis, link gap analysis, competitor link profiles, referring domain data, or link building research. Trigger on "backlinks," "who links to," "link profile," "referring domains," "link gap," "Ahrefs," "link building research," or "why do they outrank me" (often a link authority issue).4metadata:5 version: 1.0.06 author: Garrett Smith7---89# Ahrefs Tool1011> **Note:** LocalSEOData (`localseodata-tool`) now has `backlink_summary` and `backlink_gap` endpoints. Use LocalSEOData for quick backlink overviews and gap analysis. Ahrefs remains the preferred tool for deep link analysis — anchor text profiles, lost/new links, referring domain details, and content gap analysis.1213Ahrefs has an official MCP server. When connected, use it for backlink analysis and link-focused competitive intelligence. Ahrefs has the largest backlink index — it's the authoritative source for link data.1415## When to Use Ahrefs vs Other Tools1617| You Need | Use Ahrefs | Use Instead |18|----------|-----------|-------------|19| Backlink profile for a domain | ✅ Best backlink database | — |20| Referring domains count/list | ✅ | — |21| Link gap (who links to competitor but not you) | ✅ Best for this | — |22| Lost/broken backlinks | ✅ | — |23| Anchor text analysis | ✅ | — |24| Keyword search volume | ⚠️ Can do it | Semrush (better keyword tool) |25| Keyword gap analysis | ⚠️ Can do it | Semrush (preferred for keywords) |26| Content Explorer (find linkable content) | ✅ Unique to Ahrefs | — |27| Technical site audit | ⚠️ Has one | Screaming Frog (more detailed) |28| SERP data | ❌ | SerpAPI |29| Local pack rankings | ❌ | Local Falcon |30| Citation data | ❌ | BrightLocal |3132## Core Workflows3334### Analyze a Business's Link Profile3536**When:** User asks "why aren't we ranking?" or needs to understand link authority.3738**What to pull:**391. **Domain Rating (DR)**: Overall link authority score (0-100)402. **Referring Domains**: Unique domains linking to the site (more important than total backlinks)413. **Backlink list**: Individual backlinks with source, anchor text, follow/nofollow, first seen date424. **Referring domains by DR**: Quality distribution of linking domains4344**How to interpret for local:**45- DR 20-40: Typical for local businesses46- DR 40-60: Strong local site, likely has press or industry links47- DR 60+: Very strong, probably a brand or large multi-location48- Referring domains matter more than total backlinks (10 links from 10 domains > 50 links from 2 domains)49- Local relevance matters: 1 link from a local news site > 10 links from random blogs5051**Red flags:**52- Sudden spike in referring domains (could be spam or negative SEO)53- Mostly nofollow links (limited authority transfer)54- Anchor text heavily keyword-stuffed (penalty risk)55- Links from irrelevant or low-quality sites5657### Link Gap Analysis (Competitor vs You)5859**When:** User wants to find link building opportunities from competitor profiles.6061**What to pull:**621. **Link Intersect**: Domains that link to competitors but NOT to user's site632. Filter by DR 20+ (skip low-quality)643. Filter by dofollow links654. Sort by referring domain authority6667**What to look for:**68- Local directories linking to competitors but not you → citation opportunity69- Local news/media sites → PR opportunity70- Industry associations or organizations → membership/sponsorship opportunity71- Local blogs or community sites → content/relationship opportunity72- .edu or .gov sites → high authority, worth extra effort7374**How to prioritize opportunities:**751. Local relevance (local site > random site)762. Domain authority (DR 30+ preferred)773. Dofollow status (dofollow > nofollow for SEO, but nofollow still has value)784. Achievability (directory listings are easy, editorial links take effort)7980### Lost Link Recovery8182**When:** Rankings dropped and you suspect link loss, or routine maintenance.8384**What to pull:**851. **Lost backlinks** (filtered by recent timeframe)862. Filter by referring domain DR 20+873. Check if the linking page is gone (404) or the link was removed8889**What to do:**90- Page 404'd → Reach out and ask to update the link91- Link removed → Understand why (content changed? contact changed?)92- Domain expired → Check if link was valuable enough to pursue alternative93- High-DR losses → Priority recovery targets9495### Anchor Text Analysis9697**When:** Checking for over-optimization or understanding link profile health.9899**What healthy local anchor text looks like:**100- Brand name (40-60%): "Smith Plumbing," "smithplumbing.com"101- Generic (15-25%): "click here," "website," "learn more"102- Location-based (10-20%): "plumber in Buffalo," "Buffalo NY plumbing"103- Exact match keywords (under 10%): "emergency plumber" — too much of this is a penalty risk104105### Content Explorer (Find Linkable Content Ideas)106107**When:** User needs content ideas that attract links.108109- Search for topics in your industry + location110- Find content that got the most links in your space111- Analyze what made it linkable (data, tools, guides, local research)112- Create something better for your market113114## Key Metrics and What They Mean115116| Metric | What It Is | Local SEO Context |117|--------|-----------|-------------------|118| Domain Rating (DR) | Ahrefs' authority score (0-100) | Compare to local competitors, not national brands |119| Referring Domains | Unique domains linking to you | The #1 link metric — more unique domains = more authority |120| URL Rating (UR) | Authority of a specific page | Useful for comparing location page authority |121| Dofollow % | Percentage of links passing authority | Below 50% dofollow is weak |122| Anchor text distribution | What text is used in links | Over-optimized anchors can trigger penalties |123| Link velocity | Rate of new links acquired | Steady growth is healthy, spikes are suspicious |124125## What to Do Next126127| What You Found | Next Action | Skill |128|----------------|-------------|-------|129| Competitor has 3x more referring domains | Build a link acquisition strategy | `local-link-building` |130| Found link gap opportunities (directories) | These are citation opportunities | `local-citations` |131| Found link gap opportunities (editorial/media) | Build targeted outreach campaigns | `local-link-building` |132| Anchor text over-optimized | Diversify with brand and generic anchors going forward | `local-link-building` |133| Lost high-value links | Outreach to recover, then build replacements | `local-link-building` |134| Link profile is fine but still not ranking locally | Links aren't the issue — check GBP, reviews, proximity | `geogrid-analysis`, `gbp-optimization` |135| Need this data in a client report | Include link profile comparison in deliverables | `client-deliverables` |136137**Default next step:** Link analysis always raises the question "is this a link problem or something else?" If the link profile is comparable to competitors, the issue is likely GBP, reviews, or relevance — not links.138
Full transparency — inspect the skill content before installing.