{"kind":"Skill","metadata":{"namespace":"community","name":"ahrefs-automation","version":"0.1.0"},"spec":{"description":"Automate SEO research with Ahrefs -- analyze backlink profiles, research keywords, track domain metrics history, audit organic rankings, and perform batch URL analysis through the Composio Ahrefs integration.","files":{"SKILL.md":"---\nname: Ahrefs Automation\ndescription: \"Automate SEO research with Ahrefs -- analyze backlink profiles, research keywords, track domain metrics history, audit organic rankings, and perform batch URL analysis through the Composio Ahrefs integration.\"\nrequires:\n  mcp:\n    - rube\n---\n\n# Ahrefs Automation\n\nRun **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.\n\n**Toolkit docs:** [composio.dev/toolkits/ahrefs](https://composio.dev/toolkits/ahrefs)\n\n---\n\n## Setup\n\n1. Add the Composio MCP server to your configuration:\n   ```\n   https://rube.app/mcp\n   ```\n2. Connect your Ahrefs account when prompted. The agent will provide an authentication link.\n3. 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.\n\n---\n\n## Core Workflows\n\n### 1. Site Explorer Metrics\n\nRetrieve comprehensive SEO metrics for a domain including backlink counts, referring domains, organic keyword rankings, and traffic estimates.\n\n**Tool:** `AHREFS_RETRIEVE_SITE_EXPLORER_METRICS`\n\nKey parameters:\n- `target` (required) -- domain or URL to analyze\n- `date` (required) -- metrics date in `YYYY-MM-DD` format\n- `country` -- ISO country code (e.g., `us`, `gb`, `de`)\n- `mode` -- scope: `exact`, `prefix`, `domain`, or `subdomains` (default)\n- `protocol` -- `both`, `http`, or `https`\n- `volume_mode` -- `monthly` or `average`\n\nExample prompt: *\"Get Ahrefs site metrics for example.com as of today in the US\"*\n\n---\n\n### 2. Historical Metrics Tracking\n\nTrack how a domain's SEO metrics have changed over time for trend analysis and competitive benchmarking.\n\n**Tools:** `AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY`, `AHREFS_DOMAIN_RATING_HISTORY`\n\nFor full metrics history:\n- `target` (required) -- domain to track\n- `date_from` (required) -- start date in `YYYY-MM-DD`\n- `date_to` -- end date\n- `history_grouping` -- `daily`, `weekly`, or `monthly` (default)\n- `select` -- columns like `date,org_cost,org_traffic,paid_cost,paid_traffic`\n\nFor Domain Rating (DR) history:\n- `target` (required), `date_from` (required), `date_to`, `history_grouping`\n\nExample prompt: *\"Show me the monthly Domain Rating history for example.com over the last year\"*\n\n---\n\n### 3. Backlink Analysis\n\nRetrieve a comprehensive list of backlinks including source URLs, anchor text, link attributes, and referring domain metrics.\n\n**Tool:** `AHREFS_FETCH_ALL_BACKLINKS`\n\nKey parameters:\n- `target` (required) -- domain or URL\n- `select` (required) -- comma-separated columns (e.g., `url_from,url_to,anchor,domain_rating_source,first_seen_link`)\n- `limit` (default 1000) -- number of results\n- `aggregation` -- `similar_links` (default), `1_per_domain`, or `all`\n- `mode` -- `exact`, `prefix`, `domain`, or `subdomains`\n- `history` -- `live`, `since:YYYY-MM-DD`, or `all_time`\n- `where` -- rich filter expressions on columns like `is_dofollow`, `domain_rating_source`, `anchor`\n\nExample prompt: *\"Get the top 100 dofollow backlinks to example.com with anchor text and referring DR\"*\n\n---\n\n### 4. Keyword Research\n\nGet keyword overview metrics and discover matching keyword variations for content strategy.\n\n**Tools:** `AHREFS_EXPLORE_KEYWORDS_OVERVIEW`, `AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS`\n\nFor keyword overview:\n- `select` (required) -- columns to return (volume, difficulty, CPC, etc.)\n- `country` (required) -- ISO country code\n- `keywords` -- comma-separated keyword list\n- `where` -- filter by volume, difficulty, intent, etc.\n\nFor matching terms:\n- `select` (required) and `country` (required)\n- `keywords` -- comma-separated seed keywords\n- `match_mode` -- `terms` (any order) or `phrase` (exact order)\n- `terms` -- `all` or `questions` (question-format keywords only)\n\nExample prompt: *\"Find keyword variations for 'project management' in the US with volume and difficulty\"*\n\n---\n\n### 5. Organic Keywords Audit\n\nSee which keywords a domain ranks for in organic search, with position tracking and historical comparison.\n\n**Tool:** `AHREFS_RETRIEVE_ORGANIC_KEYWORDS`\n\nKey parameters:\n- `target` (required) -- domain or URL\n- `country` (required) -- ISO country code\n- `date` (required) -- date in `YYYY-MM-DD`\n- `select` -- columns to return (keyword, position, volume, traffic, URL, etc.)\n- `date_compared` -- compare against a previous date\n- `where` -- rich filter expressions on `keyword`, `volume`, `best_position`, intent flags, etc.\n- `limit` (default 1000), `order_by`\n\nExample prompt: *\"Show all organic keywords where example.com ranks in the top 10 in the US\"*\n\n---\n\n### 6. Batch URL Analysis\n\nAnalyze up to 100 URLs or domains simultaneously to compare SEO metrics across competitors or site sections.\n\n**Tool:** `AHREFS_BATCH_URL_ANALYSIS`\n\nKey parameters:\n- `targets` (required) -- array of objects with `url`, `mode` (`exact`/`prefix`/`domain`/`subdomains`), and `protocol` (`both`/`http`/`https`)\n- `select` (required) -- array of column identifiers\n- `country` -- ISO country code\n- `output` -- `json` or `php`\n\nExample prompt: *\"Compare SEO metrics for competitor1.com, competitor2.com, and competitor3.com\"*\n\n---\n\n## Known Pitfalls\n\n- **Column selection is required:** Most Ahrefs tools require a `select` parameter specifying which columns to return. Omitting it or using invalid column names will cause errors. Refer to each tool's response schema for valid identifiers.\n- **Date format consistency:** Dates must be in `YYYY-MM-DD` format. Some historical endpoints return data at the granularity set by `history_grouping`, not by exact date.\n- **API unit costs vary:** Different columns consume different unit amounts. Columns marked with \"(5 units)\" or \"(10 units)\" in the schema are more expensive. Monitor API usage when requesting expensive columns like `traffic`, `refdomains_source`, or `difficulty`.\n- **Batch limit is 100 targets:** `AHREFS_BATCH_URL_ANALYSIS` accepts up to 100 targets per request. For larger analyses, split into multiple batches.\n- **Filter expressions are complex:** The `where` parameter uses Ahrefs' filter expression syntax, not standard SQL. Consult the column descriptions in each tool's schema for supported filter types and value formats.\n- **Deprecated offset parameter:** The `offset` parameter was deprecated on May 31, 2024. Use cursor-based pagination or adjust `limit` instead.\n- **Mode affects scope significantly:** Setting `mode` to `subdomains` (the default) includes all subdomains, which can dramatically increase result counts compared to `domain` or `exact`.\n\n---\n\n## Quick Reference\n\n| Tool Slug | Description |\n|---|---|\n| `AHREFS_RETRIEVE_SITE_EXPLORER_METRICS` | Current SEO metrics for a domain/URL |\n| `AHREFS_RETRIEVE_SITE_EXPLORER_METRICS_HISTORY` | Historical SEO metrics over time |\n| `AHREFS_DOMAIN_RATING_HISTORY` | Domain Rating (DR) history |\n| `AHREFS_FETCH_ALL_BACKLINKS` | Comprehensive backlink list with filtering |\n| `AHREFS_FETCH_SITE_EXPLORER_REFERRING_DOMAINS` | List of referring domains |\n| `AHREFS_GET_SITE_EXPLORER_COUNTRY_METRICS` | Country-level traffic breakdown |\n| `AHREFS_BATCH_URL_ANALYSIS` | Batch analysis of up to 100 URLs |\n| `AHREFS_EXPLORE_KEYWORDS_OVERVIEW` | Keyword metrics overview |\n| `AHREFS_EXPLORE_MATCHING_TERMS_FOR_KEYWORDS` | Matching keyword variations |\n| `AHREFS_EXPLORE_KEYWORD_VOLUME_BY_COUNTRY` | Keyword volume across countries |\n| `AHREFS_RETRIEVE_ORGANIC_KEYWORDS` | Organic keyword rankings for a domain |\n| `AHREFS_RETRIEVE_SITE_EXPLORER_KEYWORDS_HISTORY` | Historical keyword ranking data |\n| `AHREFS_RETRIEVE_TOP_PAGES_FROM_SITE_EXPLORER` | Top performing pages by SEO metrics |\n| `AHREFS_GET_SERP_OVERVIEW` | SERP overview for specific keywords |\n\n---\n\n*Powered by [Composio](https://composio.dev)*\n"},"import":{"commit_sha":"f2b5e29bc315f04c8e09591ba275f4c4f7d4b8fe","imported_at":"2026-05-18T20:07:47Z","license_text":"","owner":"ComposioHQ","repo":"ComposioHQ/awesome-claude-skills","source_url":"https://github.com/ComposioHQ/awesome-claude-skills/tree/f2b5e29bc315f04c8e09591ba275f4c4f7d4b8fe/composio-skills/ahrefs-automation"}},"content_hash":[25,145,44,139,210,254,55,34,60,35,2,227,137,186,16,16,73,183,18,84,121,137,89,122,109,196,249,79,94,161,251,74],"trust_level":"unsigned","yanked":false}
