seo-ahrefs-new-linkslisted
Install: claude install-skill YogeshKu7877/claude-seo-skills
# Ahrefs New and Lost Links
Fetches referring domain history from Ahrefs, filtered to show recently acquired
domains (last 30 days) and any lost referring domains.
## References
@skills/seo/references/mcp-degradation.md
@skills/seo/references/ahrefs-api-reference.md
## Inputs
- `domain`: The bare domain to analyze (e.g., `example.com`). Strip `https://`,
`http://`, and trailing slashes before passing to Ahrefs tools.
## MCP Check
Before proceeding, verify Ahrefs MCP is available:
1. Use ToolSearch with query `+ahrefs`
2. If tools are returned → Ahrefs MCP is available, proceed to Execution
3. If no tools returned → display the Ahrefs MCP error template from
`references/mcp-degradation.md` and stop
## Execution
**Step 1 — Call Referring Domains**
Call `mcp__claude_ai_ahrefs__site-explorer-referring-domains` with:
- `target`: the bare domain (e.g., `example.com`)
Returns per referring domain: `domain`, `domain_rating`, `backlinks` count,
`first_seen` date (ISO 8601), and optionally `lost_date` for domains no longer linking.
**Step 2 — Filter by Date (Client-Side)**
The tool may not support native date filtering. If no native date filter exists:
- Compute the cutoff date: current date minus 30 days
- Filter entries where `first_seen >= cutoff_date` → these are new referring domains
- Separate entries where `lost_date` is present → these are lost referring domains
**Step 3 — Sort and Summarize**
- New referring domains: sort by `domain_rating` descending (hig