ahrefs-automation

ahrefs-automation is a skill for Claude Code, Codex from onfire7777/universal-ai-skills-library. It costs 43 tokens per session (1,986 once invoked), scanned A, a copy of Ahrefs Automation, MIT.

An automation workflow for Ahrefs, an SEO research service that measures search visibility, keywords, backlinks, and related website data. It connects through Composio so a coding agent can request Ahrefs reports.

In plain words
What is it for?
Use it to inspect backlink profiles, research keywords, review historical domain metrics, audit organic rankings, and analyze multiple URLs.
Why use it?
It removes the need to gather several SEO measurements manually and supports repeatable analysis for domains and URLs.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code.

Good fit Use it to inspect backlink profiles, research keywords, review historical domain metrics, audit organic rankings, and analyze multiple URLs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/onfire7777/universal-ai-skills-library/ahrefs-automation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add onfire7777/universal-ai-skills-library --skill ahrefs-automation
Clone the repo
git clone --depth 1 https://github.com/onfire7777/universal-ai-skills-library

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ahrefs-automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/onfire7777/universal-ai-skills-library/ahrefs-automation/github.svg)](https://agentmods.dev/skills/onfire7777/universal-ai-skills-library/ahrefs-automation)
Your own site
<a href="https://agentmods.dev/skills/onfire7777/universal-ai-skills-library/ahrefs-automation"><img src="https://agentmods.dev/badge/skills/onfire7777/universal-ai-skills-library/ahrefs-automation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ahrefs-automation

Your own site · 80×15
<a href="https://agentmods.dev/skills/onfire7777/universal-ai-skills-library/ahrefs-automation"><img src="https://agentmods.dev/badge/skills/onfire7777/universal-ai-skills-library/ahrefs-automation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,986 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.01986
Opus 5 $0.00022 $0.00993
Sonnet 5 $0.00009 $0.00397
Haiku 4.5 $0.00004 $0.00199

Measured 12d ago against content hash 0f549426c897, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ahrefs-automation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to Ahrefs Automation — 2 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ahrefs-automation/SKILL.md · 178 lines

How it starts

The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Ahrefs Automation

Run Ahrefs SEO analytics directly from Claude Code. Analyze backlink profiles, research keywords, track domain authority over time, audit organic keyword rankings, and batch-analyze multiple URLs without leaving your terminal.

Toolkit docs: composio.dev/toolkits/ahrefs


Setup

  1. Add the Composio MCP server to your configuration:
    https://rube.app/mcp
    
  2. Connect your Ahrefs account when prompted. The agent will provide an authentication link.
  3. Most tools require a target (domain or URL) and a country code (ISO 3166-1 alpha-2). Some also require a date in YYYY-MM-DD format.

Core Workflows

1. Site Explorer Metrics

Retrieve comprehensive SEO metrics for a domain including backlink counts, referring domains, organic keyword rankings, and traffic estimates.

Tool: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS

Key parameters:

  • target (required) -- domain or URL to analyze
  • date (required) -- metrics date in YYYY-MM-DD format
  • country -- ISO country code (e.g., us, gb, de)
  • mode -- scope: exact, prefix, domain, or subdomains (default)
  • protocol -- both, http, or https
  • volume_mode -- monthly or average

Example prompt: "Get Ahrefs site metrics for example.com as of today in the US"


2. Historical Metrics Tracking

Track how a domain's SEO metrics have changed over time for trend analysis and competitive benchmarking.

Tools: AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY, AHREFS_DOMAIN_RATING_HISTORY

For full metrics history:

  • target (required) -- domain to track
  • date_from (required) -- start date in YYYY-MM-DD
  • date_to -- end date
  • history_grouping -- daily, weekly, or monthly (default)
  • select -- columns like date,org_cost,org_traffic,paid_cost,paid_traffic

For Domain Rating (DR) history:

  • target (required), date_from (required), date_to, history_grouping

Example prompt: "Show me the monthly Domain Rating history for example.com over the last year"

Read the full file on GitHub · 178 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 178 lines · 43 tokens per session scan A 0f549426c897

Subscribe to this mod's changes

ahrefs-automation is a skill published in the GitHub repository onfire7777/universal-ai-skills-library (16 stars, last pushed yesterday), licensed MIT. It adds 43 tokens to every session and 1,986 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to Ahrefs Automation, differing in 2 lines, and is treated as a copy.

Related

Other skills, from other repositories

jk

Manage Jenkins controllers with jk, including jobs, runs, logs, artifacts, credentials, nodes, queues, and plugins.

avivsinai/jenkins-cli · 26 tokens

harness-init-runner

Initialize a lightweight repo-local Node.js harness (harness/ + .harness/) WITHOUT AIOS dependency. Use ONLY when you need a standalone, portable harness. If AIOS is installed, use aios-long-running-harness instead — it has rex Command hosting, ContextDB integration, and checkpoint recovery.

rexleimo/aios · 70 tokens

sudocode

ALWAYS use this skill for ALL sudocode spec and issue operations. Use when user mentions "spec", "issue", "ready", "blocked", "implement", "feature", "plan", or "feedback" with sudocode specs and issues. PROACTIVELY use at start of implementation tasks to check ready issues and understand work context. Operations…

sudocode-ai/sudocode · 118 tokens

business-defect-audit

A review of whether software follows the intended business rules, even when the code runs, compiles, and passes tests.

Dmatut7/codex-flow · 223 tokens

parallel-fix

A method for applying a list of mostly independent code fixes at the same time, with one later step to merge and test them.

Dmatut7/codex-flow · 162 tokens

firefox-cli

Control the user's Firefox from a terminal. Use when your task needs the user's browser or authenticated session, page navigation, tab/window control, screenshots, DOM reads, waits, or page interactions in Firefox. Do not use it as a web search replacement.

respawn-llc/firefox-cli · 54 tokens