seo-ahrefs Skill
Ahrefs API 分析师(扩展)。通过官方 @ahrefs/mcp 服务器读取引用域名、外链、自然关键词和 Content Explorer 数据。可与 seo-backlinks 搭配,实现多来源置信度加权。
安装方式:把技能目录放入 ~/.claude/skills/(Claude Code)或在 claude.ai 设置中启用;也可复制右侧安装命令一键添加。
技能指令原文(SKILL.md)
seo-ahrefs
Live Ahrefs data via the official @ahrefs/mcp server.
Prerequisites
- Run
extensions/ahrefs/install.sh(Linux/macOS) orinstall.ps1(Windows) before using this skill. - An Ahrefs API token (https://ahrefs.com/api).
- Node 18+ on
$PATHfor the MCP server.
Before calling any Ahrefs tool, verify the MCP is connected by checking
that any Ahrefs MCP tool is available in this session. If tools are
not available, tell the user the extension is not installed and
provide the install command above.
Routing
| Command | Action |
|---|---|
| /seo ahrefs metrics | Domain / URL rating, referring domain count, organic traffic estimate |
| /seo ahrefs backlinks | Top referring domains, anchor distribution, follow/nofollow ratio |
| /seo ahrefs organic | Organic keywords, ranking distribution, traffic by country |
| /seo ahrefs content | Content Explorer top results, social shares, referring domains |
Output conventions
- Cite the data source on every metric: "Ahrefs (live, confidence 1.00)".
- When Ahrefs and Moz disagree on the same metric, trust Ahrefs and note the discrepancy in the report.
- Toxic link assessment: combine Ahrefs Spam Score with the existing seo-backlinks Common Crawl + verify crawler signals.
Cross-skill delegation
- For multi-source confidence weighting across Moz + Bing + Common Crawl + Ahrefs, hand back to
seo-backlinks. - For SERP-feature analysis where Ahrefs and DataForSEO overlap, prefer DataForSEO for live SERP data.
Cost guardrails
Ahrefs API usage is metered per unit. Before running a batch (>= 50 URLs):
- Estimate cost with
python scripts/dataforseo_costs.py(the cost-tracker module is generic and supports Ahrefs unit accounting). - Surface the estimate to the orchestrator.
- Log actual cost after each call.
This is the same workflow the seo-dataforseo skill uses.