Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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_traffic and value cost 10 units per row, referring_domains costs 5, url and top_keyword cost 1.
  • Always set limit. Default to 100 rows, never above 500 without the user's OK. Why: one unbounded top-pages call on a large domain burns a monthly allowance.
  • Always set select to the exact fields the workflow uses. Extra columns are paid columns.
  • Cache every raw response to seo/data/ahrefs/*.json and reuse it within 7 days. Why: Ahrefs refreshes traffic estimates slowly, so a re-pull within a week buys nothing.
  • To confirm a where field name, apply the same filter in the Ahrefs UI and click the API {} button. Why: field names differ per endpoint (traffic on organic-competitors, sum_traffic on top-pages).

Workflow A: Competitor Top-Pages Gap Diffing

Output: seo/competitor-gaps.md Kanban + 1-3 scaffolded pages.

  1. 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.json
    
  2. Find 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.json
    
  3. Filter 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 >= 50 and keywords_competitor >= 200. Why: low overlap means a different market, and a low keywords_competitor means nothing to steal.
    • Cap at 10. Why: past 10, the marginal competitor adds noise and units, not new topics.
  4. 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>.json
    
  5. Normalize topics. Topic key = top_keyword lowercased, with competitor brand names, years, and the modifiers best, free, online, top, 2026 removed.

  6. 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
        └──
    
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить ahrefs-research с