ahrefs-research
БесплатноБез исполняемых скриптовНе проверенPulls Ahrefs data through the official MCP server or API v3 and ships a competitor gap Kanban with scaffolded pages, a clean link-replication CSV…
от Illyism★ 2 274 звезды на GitHubОб этом скилле
Ahrefs Research for Coding Agents
Ahrefs data is only worth the API units if it ends as a file in the repo. Every workflow below terminates in a Markdown roadmap, a CSV, or a scaffolded route. Never stop at "here is what I found".
When invoking: On first use, state which connection path you detected and which workflow you are running, then run it. On repeat use, go straight to the output.
Step 0: Pick the Connection Path
Is an Ahrefs tool in your tool list (names mirror v3 paths, e.g. site-explorer-top-pages)?
├── Yes → use the MCP tools. Same params as the REST calls below.
└── No → is $AHREFS_API_KEY set? (run: test -n "$AHREFS_API_KEY" && echo set)
├── Yes → use the `ahrefs` shell helper below (REST v3).
└── No → CSV fallback:
1. Ask the user to export the matching Ahrefs report as CSV (UTF-8).
2. Save to seo/data/ahrefs/<report>-<domain>.csv
3. Parse the CSV columns (URL, Traffic, Top keyword, Value, Referring domains)
and continue the same workflow from the "Filter" step.
Why the order: MCP needs zero glue code, REST is scriptable and repeatable, CSV is slow but keeps the workflow alive when the user has a UI seat and no API plan.
REST helper
Paste into the shell session once:
ahrefs() { # usage: ahrefs <endpoint> key=value ...
local ep="$1"; shift
local args=(); for kv in "$@"; do args+=(--data-urlencode "$kv"); done
curl -sS --get "https://api.ahrefs.com/v3/$ep" \
-H "Authorization: Bearer $AHREFS_API_KEY" \
-H "Accept: application/json" "${args[@]}"
}
mkdir -p seo/data/ahrefs
TODAY=$(date +%F)
Unit budget rules
- Each call costs
max(50, per_row_cost × rows)units.sum_trafficandvaluecost 10 units per row,referring_domainscosts 5,urlandtop_keywordcost 1. - Always set
limit. Default to 100 rows, never above 500 without the user's OK. Why: one unboundedtop-pagescall on a large domain burns a monthly allowance. - Always set
selectto the exact fields the workflow uses. Extra columns are paid columns. - Cache every raw response to
seo/data/ahrefs/*.jsonand reuse it within 7 days. Why: Ahrefs refreshes traffic estimates slowly, so a re-pull within a week buys nothing. - To confirm a
wherefield name, apply the same filter in the Ahrefs UI and click theAPI {}button. Why: field names differ per endpoint (trafficonorganic-competitors,sum_trafficontop-pages).
Workflow A: Competitor Top-Pages Gap Diffing
Output: seo/competitor-gaps.md Kanban + 1-3 scaffolded pages.
Pull the target's ranking pages.
ahrefs site-explorer/top-pages target=deployfast.dev mode=subdomains country=us date=$TODAY \ select=url,top_keyword,sum_traffic,value,referring_domains \ order_by=sum_traffic:desc limit=200 > seo/data/ahrefs/top-pages-deployfast.dev.jsonFind competing domains.
ahrefs site-explorer/organic-competitors target=deployfast.dev mode=subdomains country=us date=$TODAY \ select=competitor_domain,domain_rating,keywords_common,keywords_competitor,share,traffic \ order_by=keywords_common:desc limit=25 > seo/data/ahrefs/competitors-deployfast.dev.jsonFilter competitors to 5-10 real peers.
- Drop UGC and platform giants:
reddit.com,youtube.com,quora.com,medium.com,wikipedia.org,linkedin.com,github.com,stackoverflow.com. Why: you cannot copy their ranking power by publishing a page. - Keep domains with
keywords_common >= 50andkeywords_competitor >= 200. Why: low overlap means a different market, and a lowkeywords_competitormeans nothing to steal. - Cap at 10. Why: past 10, the marginal competitor adds noise and units, not new topics.
- Drop UGC and platform giants:
Pull each competitor's top pages with a traffic floor:
ahrefs site-explorer/top-pages target=<competitor> mode=subdomains country=us date=$TODAY \ select=url,top_keyword,sum_traffic,value,referring_domains \ where='{"field":"sum_traffic","is":["gte",50]}' \ order_by=sum_traffic:desc limit=100 > seo/data/ahrefs/top-pages-<competitor>.jsonNormalize topics. Topic key =
top_keywordlowercased, with competitor brand names, years, and the modifiersbest,free,online,top,2026removed.Classify every competitor page:
competitor page ├── URL is homepage, /pricing, /login, /signup, or top_keyword contains the competitor brand │ └── Skip. Navigational traffic, not stealable. ├── target has a top-pages row with the same topic key │ └── Covered. Skip. ├── repo already has a route/content file for the topic (grep app/, pages/, content/, sitemap) │ └── Refresh column. The page exists but does not rank: fix it, do not duplicate it. ├── competitor URL contains /tools/, /calculator, /generator, /checker │ └── Build Tool column. Run dataforseo-serp Workflow B before building. └── everything else └──
Установить ahrefs-research в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл ahrefs-research?
Pulls Ahrefs data through the official MCP server or API v3 and ships a competitor gap Kanban with scaffolded pages, a clean link-replication CSV, Reddit-mined page specs, and exact link-insertion target URLs. Use when the user asks for competitor research, content gaps, top pages, backlink audits, 'is this DR real', Reddit topic mining, or picking a page on a prospect site for a link insertion.
Как установить скилл ahrefs-research?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ahrefs-research запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic