# Seo Ahrefs New Links

> >

- **Type:** Skill
- **Install:** `agentstack add skill-lionkiii-claude-seo-skills-seo-ahrefs-new-links`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [lionkiii](https://agentstack.voostack.com/s/lionkiii)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [lionkiii](https://github.com/lionkiii)
- **Source:** https://github.com/lionkiii/claude-seo-skills/tree/main/skills/seo-ahrefs-new-links

## Install

```sh
agentstack add skill-lionkiii-claude-seo-skills-seo-ahrefs-new-links
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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 (highest DR new links first)
- Lost referring domains: sort by `domain_rating` descending (highest DR losses first)
- Calculate net change: new count minus lost count

## Output Format

```
## Ahrefs New & Lost Links: example.com (Last 30 Days)

### Net Change Summary
| Metric | Value |
|--------|-------|
| New Referring Domains | +12 |
| Lost Referring Domains | -3 |
| Net Change | +9 |

### New Referring Domains (Last 30 Days)

| Domain | DR | Backlinks from Domain | First Seen |
|--------|----|-----------------------|------------|
| highdr-news.com | 71 | 1 | 2026-02-18 |
| industry-blog.io | 58 | 3 | 2026-02-10 |
| partner-site.com | 44 | 2 | 2026-02-05 |

### Lost Referring Domains

| Domain | DR | Lost Date |
|--------|----|-----------|
| old-partner.com | 52 | 2026-01-28 |

### Observations
- Gained 12 new referring domains this month — healthy link velocity
- Lost 3 domains — investigate whether content was removed or sites changed focus
- Highest-DR gain: highdr-news.com (DR 71) — strong editorial link
```

### No New Links

If no referring domains have `first_seen` within the last 30 days:

```
## Ahrefs New & Lost Links: example.com

No new referring domains detected in the last 30 days.

**Suggestions:**
- Run `/seo ahrefs backlinks example.com` to review the full backlink profile
- Consider outreach or PR campaigns to build new referring domains
```

### Error — Ahrefs MCP Not Available

If MCP check fails, display the Ahrefs error template from
`references/mcp-degradation.md`:

```
## Ahrefs MCP Not Available

The `/seo ahrefs new-links` command requires the Ahrefs MCP, which is not
currently connected.

**What you can do:**
- Use `/seo audit ` for a full static SEO analysis without live Ahrefs data
- Use `/seo technical ` for technical SEO issues without backlink/keyword data

**To connect Ahrefs MCP:**
- Ensure the Ahrefs MCP is registered at user scope in ~/.claude/mcp.json
- Verify with: cat ~/.claude/mcp.json | grep -i ahrefs
- Ahrefs MCP must be registered at user scope (not project scope) to work in subagents
```

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [lionkiii](https://github.com/lionkiii)
- **Source:** [lionkiii/claude-seo-skills](https://github.com/lionkiii/claude-seo-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-lionkiii-claude-seo-skills-seo-ahrefs-new-links
- Seller: https://agentstack.voostack.com/s/lionkiii
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
