AGENT SKILL

SEO 反向链接分析

seo-backlinks

反向链接概况分析:引荐域名、锚文本分布、有毒链接检测、竞争对手差距分析。支持免费 API(Moz、Bing Webmaster、Common Crawl)及 DataForSEO 扩展。当用户提到反向链接、链接概况、引荐域名、锚文本、有毒链接、链接差距、链接建设、disavow(拒绝链接)或反向链接审计时使用。

License 许可
MIT
最近更新
2026-11-14
Stars
★ 0
Forks
0

01 前言 Front Matter

name
seo-backlinks
license
MIT
metadata
{ "author": "AgriciDaniel", "version": "2.2.4", "category": "seo" }
description
Backlink profile analysis: referring domains, anchor text distribution, toxic link detection, competitor gap analysis. Works with free APIs (Moz, Bing Webmaster, Common Crawl) and DataForSEO extension. Use when user says backlinks, link profile, referring domains, anchor text, toxic links, link gap, link building, disavow, or backlink audit.
argument-hint
<url>
compatibility
Free: Common Crawl + verify always available. Optional: Moz API, Bing Webmaster (free signup). Premium: DataForSEO extension.
user-invocable
true

02 资源文件 1

03 SKILL.md 正文

Backlink Profile Analysis

Source Detection

Before analysis, detect available data sources:

  1. DataForSEO MCP (premium): Check if dataforseo_backlinks_summary tool is available
  2. Moz API (free signup): /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run backlinks_auth.py --check moz --json
  3. Bing Webmaster (free signup): /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run backlinks_auth.py --check bing --json
  4. Common Crawl (always available): Domain-level graph with PageRank
  5. Verification Crawler (always available): Checks if known backlinks still exist

Run /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run backlinks_auth.py --check --json to detect all sources at once.

If no sources are configured beyond the always-available tier:

  • Still produce a report using Common Crawl domain metrics
  • Suggest: "Run /seo backlinks setup to add free Moz and Bing API keys for richer data"

Quick Reference

Command Purpose
/seo backlinks <url> Full backlink profile analysis (uses all available sources)
/seo backlinks gap <url1> <url2> Competitor backlink gap analysis
/seo backlinks toxic <url> Toxic link detection and disavow recommendations
/seo backlinks new <url> New and lost backlinks (DataForSEO only)
/seo backlinks verify <url> --links <file> Verify known backlinks still exist
/seo backlinks setup Show setup instructions for free backlink APIs

Analysis Framework

Produce all 7 sections below. Each section lists data sources in preference order.

1. Profile Overview

DataForSEO: dataforseo_backlinks_summary → total backlinks, referring domains, domain rank, follow ratio, trend.

Moz API: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py metrics <url> --json → Domain Authority, Page Authority, Spam Score, linking root domains, external links.

Common Crawl: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run commoncrawl_graph.py <domain> --json → PageRank, harmonic centrality, and low-confidence rank/presence data.

Scoring:

Metric Good Warning Critical
Referring domains >100 20-100 <20
Follow ratio >60% 40-60% <40%
Domain diversity No single domain >5% 1 domain >10% 1 domain >25%
Trend Growing or stable Slow decline Rapid decline (>20%/quarter)

2. Anchor Text Distribution

DataForSEO: dataforseo_backlinks_anchors

Moz API: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py anchors <url> --json

Bing Webmaster: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run bing_webmaster.py links <url> --json (extract anchor text from link details)

Healthy distribution benchmarks:

Anchor Type Target Range Over-Optimization Signal
Branded (company/domain name) 30-50% <15%
URL/naked link 15-25% N/A
Generic ("click here", "learn more") 10-20% N/A
Exact match keyword 3-10% >15%
Partial match keyword 5-15% >25%
Long-tail / natural 5-15% N/A

Flag if exact-match anchors exceed 15% as a review heuristic; it may indicate unnatural or link-spam patterns.

3. Referring Domain Quality

DataForSEO: dataforseo_backlinks_referring_domains

Moz API: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py domains <url> --json → domains with DA scores

Common Crawl: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run commoncrawl_graph.py <domain> --json → domain-level rank/presence data, no verified referring-domain counts

Analyze:

  • TLD distribution: .edu, .gov, .org = high authority. Excessive .xyz, .info = low quality
  • Country distribution: Match target market. 80%+ from irrelevant countries = PBN signal
  • Domain rank distribution: Healthy profiles have links from all authority tiers
  • Follow/nofollow per domain: Sites that only nofollow = limited SEO value

4. Toxic Link Detection

DataForSEO: dataforseo_backlinks_bulk_spam_score + toxic patterns from reference

Moz API: Raw vendor spam_score from /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py metrics <url> --json (source-label the value; apply thresholds only if verified against current Moz docs)

Verification Crawler: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run verify_backlinks.py --target <url> --links <file> --json (verify suspicious links still exist)

High-risk indicators (flag immediately):

  • Links from known PBN (Private Blog Network) domains
  • Unnatural anchor text patterns (100% exact match from a domain)
  • Links from penalized or deindexed domains
  • Mass directory submissions (50+ directory links)
  • Link farms (sites with 10K+ outbound links per page)
  • Paid link patterns (footer/sidebar links across all pages of a domain)

Medium-risk indicators (review manually):

  • Links from unrelated niches
  • Reciprocal link patterns
  • Links from thin content pages (<100 words)
  • Excessive links from a single domain (>50 backlinks from 1 domain)

Load ../seo/references/backlink-quality.md for the full 30 toxic patterns and disavow criteria.

5. Top Pages by Backlinks

DataForSEO: dataforseo_backlinks_backlinks with target type "page"

Moz API: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py pages <domain> --json

Find:

  • Which pages attract the most backlinks
  • Pages with high-authority links (link magnets)
  • Pages with zero backlinks (internal linking opportunities)
  • 404 pages with backlinks (redirect opportunities to reclaim link equity)

6. Competitor Gap Analysis

DataForSEO: dataforseo_backlinks_referring_domains for both domains, then compare

Bing Webmaster: /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run bing_webmaster.py compare <url1> <url2> --json only when both properties are registered and accessible to the same Bing API account. For arbitrary competitors, use DataForSEO, Moz, or Common Crawl.

Moz API: Compare DA/PA between domains via /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run moz_api.py metrics <url> --json for each

Output:

  • Domains linking to competitor but NOT to target = link building opportunities
  • Domains linking to both = validate existing relationships
  • Domains linking only to target = competitive advantage
  • Top 20 link building opportunities with domain authority

7. New and Lost Backlinks

DataForSEO only: dataforseo_backlinks_backlinks with date filters for 30/60/90 day changes

Verification Crawler: For known links, verify current status with /home/noirelab/.config/opencode/skills/seo/bin/claude-seo run verify_backlinks.py --target <url> --links <file> --json

Note: Free sources cannot track new/lost links over time. If this section is requested without DataForSEO, inform the user: "Link velocity tracking requires the DataForSEO extension. Free sources provide point-in-time snapshots only."

Red flags:

  • Sudden spike in new links (possible negative SEO attack)
  • Sudden loss of many links (site penalty or content removal)
  • Declining velocity over 3+ months (content not attracting links)

Backlink Health Score

Calculate a 0-100 score. When mixing sources, apply confidence weighting:

Factor Weight Sources (preference order) Confidence
Referring domain count 20% DataForSEO > Moz 1.0 / 0.85
Domain quality distribution 20% DataForSEO > Moz DA distribution 1.0 / 0.85
Anchor text naturalness 15% DataForSEO > Moz > Bing anchors 1.0 / 0.85 / 0.70
Toxic link ratio 20% DataForSEO > Moz spam score 1.0 / 0.85
Link velocity trend 10% DataForSEO only 1.0
Follow/nofollow ratio 5% DataForSEO > Bing details 1.0 / 0.70
Geographic relevance 10% DataForSEO > Bing country 1.0 / 0.70

Data sufficiency gate: Count how many of the 7 factors have at least one data source available.

  • 4+ factors with data: Produce a numeric 0-100 score (redistribute missing weights proportionally)
  • Fewer than 4 factors: Do NOT produce a numeric score. Instead display:
    Backlink Health Score: INSUFFICIENT DATA (X/7 factors scored)
    
    Show individual factor scores that ARE available with their source and confidence. Recommend: "Configure Moz API (free) for a scoreable profile. Run /seo backlinks setup"

When only CC is available, do not produce a numeric score; report low-confidence rank/presence data only. A numeric score with fewer than 4 data sources is misleading, it implies poor health when the reality is we simply lack data.

Output Format

Backlink Health Score: XX/100 (or INSUFFICIENT DATA)

Section Status Score Data Source
Profile Overview pass/warn/fail XX/100 Moz (0.85)
Anchor Distribution pass/warn/fail XX/100 Moz (0.85)
Referring Domain Quality pass/warn/fail XX/100 CC (0.50)
Toxic Links pass/warn/fail XX/100 Moz Spam (0.85)
Top Pages info N/A Moz (0.85)
Link Velocity pass/warn/fail XX/100 DataForSEO only

Critical Issues (fix immediately)

High Priority (fix within 1 month)

Medium Priority (ongoing improvement)

Link Building Opportunities (top 10)

Error Handling

Error Cause Resolution
No sources configured No API keys, no DataForSEO Run /seo backlinks setup
Moz rate limit Free tier: 1 req/10s Wait 10 seconds, retry. Built into script.
Bing site not verified Site not verified in Bing Verify at https://www.bing.com/webmasters
CC download timeout Large graph file, slow connection Use --timeout 180 flag
DataForSEO unavailable Extension not installed Run ./extensions/dataforseo/install.sh
No backlink data returned Domain too new or very small Note: small sites may have <10 backlinks

Fallback cascade:

  1. DataForSEO available? → Use as primary (confidence: 1.0)
  2. Moz configured? → Use for DA/PA/spam/anchors (confidence: 0.85)
  3. Bing configured? → Use for registered-property links and comparison only when both properties are accessible (confidence: 0.70)
  4. Always: Common Crawl for domain-level metrics (confidence: 0.50)
  5. Always: Verification crawler for known link checks (confidence: 0.95)
  6. Nothing works? → "Run /seo backlinks setup to configure free APIs"

Pre-Delivery Review (MANDATORY)

Before presenting any backlink analysis to the user, run this checklist internally. Do NOT skip this step. Fix any issues found before showing the report.

Fact-Check Every Claim

  • [ ] Schema claims: Did parse_html return @type for each block? If any @type is missing, re-check, it may use @graph wrapper (valid JSON-LD, not malformed).
  • [ ] "link_removed" findings: Is the page JS-rendered? If unverifiable_js, say so, never report a JS-rendered page as "link removed" (that's a false negative).
  • [ ] H1 findings: Are any H1s in the h1_suspicious list? If so, note they are likely counters/stats, not semantic headings.
  • [ ] Reciprocal links: If site A links to site B AND B links back to A, flag it as a reciprocal link pattern. Check outbound links against verified inbound sources.
  • [ ] Health score: Are 4+ of 7 factors scored? If not, report INSUFFICIENT DATA, never show a misleading numeric score.

Verify Data Source Labels

  • [ ] Every metric in the report has a source label (e.g., "Parsed (0.95)", "CC (0.50)")
  • [ ] Every "not found" result distinguishes between "not crawled" vs "below threshold" vs "error"
  • [ ] Social media pages flagged as unverifiable_js (not link_removed)

Cross-Check Consistency

  • [ ] Platform detection matches actual signals (check for wp-content, shopify CDN, etc.)
  • [ ] Referring domain count in summary matches the actual verified links list
  • [ ] No claim is presented without a data source backing it

If ANY check fails, fix the finding before presenting. Never present inferred data as fact.

Post-Analysis

After completing any backlink analysis command, always offer: "Generate a professional PDF report? Use /seo google report"

Reference Documentation

Load on demand (do NOT load at startup):

  • skills/seo/references/backlink-quality.md -- Detailed toxic link patterns and scoring methodology (shared reference, load when analyzing toxic links or spam scores)
  • skills/seo/references/free-backlink-sources.md -- Source comparison, confidence weighting, setup guides (shared reference, load when configuring free backlink APIs)

04 同仓库更多 Skills

noirelab
noirelab/linux-setup

技能创建与优化

skill-creator

创建新技能、修改并改进现有技能,以及衡量技能性能。当用户想要从零开始创建技能、编辑或优化现有技能、运行评测(evals)测试技能、通过方差分析对技能性能进行基准测试,或优化技能描述以提升触发准确率时使用。

AI 工程师插件与技能管理
★ 0
noirelab
noirelab/linux-setup

退货与逆向物流处理

returns-reverse-logistics

涵盖退货授权、收货与检验、处置决策、退款处理、欺诈检测和保修索赔管理的成套专业知识。基于具备 15 年以上经验的退货运营经理的实践经验。包含分级框架、处置经济性分析、欺诈模式识别和供应商追偿流程。适用于处理产品退货、逆向物流、退款决策、退货欺诈检测或保修索赔。

退货运营专员退货与逆向物流
★ 0
noirelab
noirelab/linux-setup

质量不合格项调查与 CAPA 管理

quality-nonconformance

面向受监管制造业的质量控制、不合格项调查、根本原因分析、纠正措施与供应商质量管理的系统化专业知识。由在 FDA、IATF 16949 和 AS9100 环境下拥有 15 年以上经验的质量工程师总结而成。涵盖 NCR 生命周期管理、CAPA 系统、SPC 解读与审核方法。适用于调查不合格项、开展根本原因分析、管理 CAPA、解读 SPC 数据或处理供应商质量问题等场景。

质量经理质量纠正预防措施管理
★ 0
noirelab
noirelab/linux-setup

生产排程与产线平衡优化

production-scheduling

面向离散制造和批量生产的生产排程、作业排序、产线平衡、换型优化与瓶颈解决的系统化专业知识。由拥有 15 年以上经验的生产计划员总结而成。涵盖 TOC/鼓-缓冲-绳(drum-buffer-rope)、SMED、OEE 分析、中断响应框架以及 ERP/MES 交互模式。适用于生产排程、瓶颈解决、换型优化、中断响应或产线平衡等场景。

产品与制造工程师生产计划与排程
★ 0
noirelab
noirelab/linux-setup

物流异常与理赔处理

logistics-exception-management

用于处理货运异常、货物延误、损坏、丢失及承运商争议的规范化专业知识。源自拥有 15 年以上运营经验的物流专业人士。包含升级处理流程、承运商特定行为、索赔程序及判断框架。在处理运输异常、货运索赔、交付问题或承运商争议时使用。

物流调度员物流异常与理赔处理
★ 0
noirelab
noirelab/linux-setup

库存需求预测与补货计划

inventory-demand-planning

面向多门店零售商的需求预测、安全库存优化、补货计划和促销增量估算的规范化专业知识。由拥有 15 年以上经验、管理数百个 SKU 的需求规划师提炼而成。包含预测方法选择、ABC/XYZ 分析、季节转换管理和供应商谈判框架。适用于需求预测、设定安全库存、规划补货、管理促销或优化库存水平等场景。

供应链与采购经理供应链库存优化与规划
★ 0