Install
$ agentstack add skill-lionkiii-claude-seo-skills-seo-ahrefs-anchor-analysis ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Ahrefs Anchor Text Analysis
Fetches the anchor text distribution for a domain's backlink profile from Ahrefs, sorted by referring domains count, and assesses the health of the anchor profile.
References
@skills/seo/references/mcp-degradation.md @skills/seo/references/ahrefs-api-reference.md
Inputs
domain: The bare domain to analyze (e.g.,example.com). Striphttps://,
http://, and trailing slashes before passing to Ahrefs tools.
MCP Check
Before proceeding, verify Ahrefs MCP is available:
- Use ToolSearch with query
+ahrefs - If tools are returned → Ahrefs MCP is available, proceed to Execution
- If no tools returned → display the Ahrefs MCP error template from
references/mcp-degradation.md and stop
Execution
Step 1 — Call Anchors
Call mcp__claude_ai_ahrefs__site-explorer-anchors with:
target: the bare domain (e.g.,example.com)
Returns per anchor: anchor (text), referring_domains count, backlinks count
Step 2 — Calculate Percentages
- Sum all
referring_domainsacross all anchors to get the total - Calculate each anchor's
% of Total= (referring_domains/ total) * 100 - Sort by
referring_domainsdescending
Step 3 — Health Assessment
Classify the anchor text distribution using these thresholds:
- Branded anchors (domain name, brand name, company name):
- >40% of referring domains = healthy
- 10% = over-optimized risk (potential Google penalty signal)
- 3–10% = acceptable range
- Generic anchors ("click here", "here", "this link", "read more", naked URLs):
- >30% = may indicate low-quality link profile
- 10–30% = normal range
- Diverse distribution (no single non-branded anchor >5%) = natural profile signal
Output Format
## Ahrefs Anchor Text Analysis: example.com
### Anchor Text Distribution
| Anchor Text | Referring Domains | Backlinks | % of Total |
|-------------|------------------|-----------|------------|
| example.com | 1,420 | 3,100 | 44.2% |
| brand name | 580 | 890 | 18.1% |
| seo tools | 210 | 340 | 6.5% |
| click here | 180 | 210 | 5.6% |
| best seo software | 95 | 112 | 3.0% |
**Total referring domains across all anchors:** 3,210
### Profile Health Assessment
| Signal | Value | Status |
|--------|-------|--------|
| Branded anchors (example.com + brand name) | 62.3% | HEALTHY (>40%) |
| Exact-match keyword anchors (seo tools, best seo software) | 9.5% | ACCEPTABLE (` for a full static SEO analysis without live Ahrefs data
- Use `/seo technical ` for technical SEO issues without backlink/keyword data
**To connect Ahrefs MCP:**
- Ensure the Ahrefs MCP is registered at user scope in ~/.claude/mcp.json
- Verify with: cat ~/.claude/mcp.json | grep -i ahrefs
- Ahrefs MCP must be registered at user scope (not project scope) to work in subagents
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: lionkiii
- Source: lionkiii/claude-seo-skills
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.