SkillsGrove
SkillsGrove/ドキュメント作成/JakeLabate/Claude-SEO-Skills/keyword-cannibalization-audit

keyword-cannibalization-audit

インストール

$npx skills add https://github.com/JakeLabate/Claude-SEO-Skills --skill keyword-cannibalization-audit
$git clone --depth 1 https://github.com/JakeLabate/Claude-SEO-Skills.git /tmp/Claude-SEO-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Claude-SEO-Skills/skills/keyword-cannibalization-audit ~/.claude/skills/keyword-cannibalization-audit
この Agent Skill をインストールしてください:https://github.com/JakeLabate/Claude-SEO-Skills/tree/bfe97d55a0d76906357f3c6ab04979114488353d/skills/keyword-cannibalization-audit — まず SKILL.md とスクリプトを読み、安全であることを確認してから、私のスキルフォルダにインストールしてください。

概要

原文の説明 · MITAudit a website for keyword cannibalization (multiple pages competing for the same search query). Crawls pages and compares titles, H1s, and body keywords to find pages with duplicate title targets, clusters of pages whose keyword signatures overlap, and pages sharing the same primary keyword phrase. Use when the user asks to audit, check, or fix keyword cannibalization, pages competing for the same keyword, overlapping/competing content, keyword overlap, or which page should rank for a query on a website.
以下の SKILL.md は JakeLabate/Claude-SEO-Skills(コミット bfe97d5)から MIT ライセンスに基づいて転載しています。本文は変更しておらず、ファイル先頭のメタデータのみ省略し、画像はリンクとして表示し、非常に長いファイルは途中までの表示としています。Copyright 2026 Jake Labate。ライセンス:LICENSE。表示しているのは指示ファイルのみです。スクリプト等は元のリポジトリをご覧ください。

Keyword Cannibalization Audit

Audit a website for pages that compete with each other for the same query, and produce an actionable report. Findings are candidates to confirm: some overlap is legitimate; this skill surfaces the clusters and recommends a hierarchy.

When to use this skill

Use this skill when the user asks to:

  • Audit or fix keyword cannibalization
  • Find pages competing for the same keyword / query
  • Decide which page should rank for a topic and what to do with the rest
  • Review overlapping or competing content

Inputs to collect

  1. Site URL or URL list: a live site root to crawl (auto-seeds from /sitemap.xml), or a text file with --url-list.
  2. Scope: pages to crawl (default 500, --max-pages).
  3. Brand suffix: e.g. "| Acme Co" so brand words don't inflate title similarity (--brand-suffix).
  4. Overlap threshold: Jaccard similarity to flag competing pages (default 0.6, --overlap).

Workflow

Step 1: Crawl and capture target signals

Use scripts/extract_targets.py:

python3 scripts/extract_targets.py https://example.com --max-pages 500 --output target_inventory.json
# already crawled once (e.g. in a full SEO audit)? skip the crawl and reuse the shared cache:
# python3 scripts/fetch_pages.py https://example.com --output page_cache.json
# python3 scripts/extract_targets.py --from-cache page_cache.json --output target_inventory.json

For each page it records title, H1, meta description, noindex, word count, and the top body keywords by frequency.

Step 2: Run the audit checks

python3 scripts/audit_cannibalization.py target_inventory.json --brand-suffix "| Acme Co" --overlap 0.6 --output audit_report.json

Step 3: Evaluate the audit checks

Evaluate each check in references/audit-checks.md. Core checks:

Check Severity
Duplicate title target High
Overlapping target cluster (keyword signatures) Medium
Shared primary keyword (title bigram) Low

Step 4: Produce the report

Write a report following references/report-template.md: summary, duplicate title targets first, then overlapping clusters (largest first) each with a recommended hierarchy, and a prioritized action list.

Step 5: Recommend fixes

  • For each cluster, name one primary page and a role for every other page: differentiate to a distinct sub-query, merge, or 301/canonicalize into the primary.
  • Frame as hierarchy, not deletion: supporting pages that target distinct intents and link up to the primary are healthy.
  • Always recommend confirming with Search Console query data before consolidating: this audit infers competition from on-page signals.
  • Related angles: meta-data-audit (duplicate titles) and content-quality-audit (duplicate bodies).
  • Base every grouping on observed signatures; never invent rankings.

Optional: export the report

As a Word document (.docx)

If the user wants the report as a .docx (for example, to share with stakeholders or attach to a ticket), save the Markdown report to a file and convert it:

python3 scripts/md_to_docx.py report.md --output report.docx

scripts/md_to_docx.py uses only the Python standard library (no pip install) and renders headings, tables, lists, links, bold/italic, and code blocks. Offer this whenever a user asks for a Word doc, a .docx, or a shareable/downloadable report.

As a CSV of findings (.csv)

If the user wants the raw findings as a spreadsheet (for filtering, sorting, or triage in Sheets or Excel), convert the audit's audit_report.json directly:

python3 scripts/findings_to_csv.py audit_report.json --output findings.csv

scripts/findings_to_csv.py is also standard-library only. It writes one row per finding, with check and severity columns prepended and list fields (e.g. the pages sharing a duplicate value) joined with ; . Unlike the .docx, which reformats the written report, the CSV is a direct dump of the structured findings: offer it whenever a user wants the data itself, a spreadsheet, or to slice findings by check or severity.

Resources

  • scripts/md_to_docx.py: convert the Markdown report into a Word (.docx) document (standard library only)
  • scripts/findings_to_csv.py: flatten the audit findings JSON into a CSV, one row per finding (standard library only)
  • references/audit-checks.md: full definitions, thresholds, and rationale
  • references/report-template.md: report output structure
  • scripts/extract_targets.py: crawl and capture keyword-target signals
  • scripts/audit_cannibalization.py: run cannibalization audit checks
ライセンス全文を見る(MIT)
MIT License

Copyright (c) 2026 Jake Labate

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.