Not loaded · from platinum-seo-engine
Detects keyword cannibalization in Google Search Console data: finds multiple pages ranking for the same query, groups conflicts, and writes results to a cannibalization sheet. Requires an initialized project with GSC data.
Claude Code won't load this skill
It ships in platinum-seo-engine at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
10-step protocol. Steps map 1:1 to workflow_runner invocations + the
spec §16.5 8-step MCP discipline. Raw JSON drift recovery is mandatory:
the MCP response is dropped into inbox/gsc/ before any transform
runs, so a transform bug never costs us the upstream payload.
This skill follows the convention authority established by
skills/discovery/quick-wins/SKILL.md (Phase 5) and
skills/ingestion/gsc-pull/SKILL.md (Phase 6). The 10-step protocol
shape, raw JSON inbox discipline, URL normalization (D-03), DURUR + flag
rule, and provenance event format are reused verbatim — only the domain
content (target sheet, transform script, conflict heuristic) changes.
Deviate only with an ADR.
| Name | Type | Default | Notes |
|---|---|---|---|
project_slug | string | — | Required. Resolves projects/{slug}/master.xlsx. |
days_back | integer | 28 | GSC date window end=today, start=today-N. |
min_impressions | integer | 10 | K threshold per page; below-K pages dropped before grouping. |
default_status | string | "TODO" | statusEnum seed for new rows (master-excel.schema definitions). |
workspace_root is resolved via PSEO_WORKSPACE_ROOT env or explicit
test override (mirrors workflow_runner / events_writer).
projects/{slug}/master.xlsx#cannibalization — one row per query
conflict (7 cols, schema-locked).projects/{slug}/outputs/reports/{date}-cannibalization.md —
human-readable summary (top conflicts, primary URLs, resolution mix).projects/{slug}/_state/events.jsonl — event_kind=provenance
entries (source.kind=gsc_mcp, target_excel_sheet=cannibalization).projects/{slug}/inbox/gsc/{date}-search_analytics-cannibalization-{slug}.json
— raw MCP payload (drift recovery).Each step name must match the
steps[*].namepassed toworkflow_runner.create_run. Names are stable identifiers across runs.
create_runOpen a workflow run shell. The state file lives at
projects/{slug}/_state/workflows/{run_id}.json (ADR-021, ADR-019).
from scripts.state import workflow_runner
handle = workflow_runner.create_run(
skill="cannibalization",
project_slug=project_slug,
steps=[
{"name": "fetch_search_analytics"},
{"name": "transform"},
{"name": "request_approval"},
{"name": "write_excel"},
{"name": "render_report"},
],
)
fetch_search_analytics (MCP §16.5 step 3 — raw inbox first)Pull query × page rows over the recent window so groups can form.
workflow_runner.start_step(handle.run_id, 0,
project_slug=project_slug)
raw = mcp__gsc__search_analytics(
siteUrl=project_config["gsc"]["site_url"],
**gsc_window.recent_window(today, days_back).as_params(), # D-04: ends today-3, no overlap
rowLimit=gsc_window.GSC_ROW_LIMIT, # D-01: tool default is 1,000; check gsc_window.truncation(raw)
dimensions=["query", "page"],
)
inbox_path = (
workspace_root / "projects" / project_slug
/ "inbox" / "gsc"
/ f"{today.isoformat()}-search_analytics-cannibalization-{project_slug}.json"
)
inbox_path.parent.mkdir(parents=True, exist_ok=True)
inbox_path.write_text(json.dumps(raw, ensure_ascii=False, indent=2))
workflow_runner.finish_step(handle.run_id, 0,
project_slug=project_slug,
output_ref=str(inbox_path))
transformPure compute via scripts/discovery/cannibalization_transform.py:
python3 scripts/discovery/cannibalization_transform.py \
--raw inbox/gsc/{date}-search_analytics-cannibalization-{slug}.json \
--min-impressions 10 \
--default-status TODO \
--output-dir _state/transform/{run_id}/
Produces a JSON array (cannibalization) shaped to the master-excel
schema (7 columns: conflict_pair, overlapping_queries_est, total_impact,
resolution, note, status, priority). URL normalization (D-03) is applied
here, not at fetch time, so the raw inbox copy is byte-faithful to the
MCP response. The transform is idempotent: same input → byte-identical
output.
If meta.conflict_count == 0, the skill SKIPS write_excel and emits a
"no cannibalization detected" notice (DURUR #7 — clean exit, not error).
request_approval (skill EXIT awaiting_approval)workflow_runner.request_approval(
handle.run_id, project_slug=project_slug,
approver="user",
subject=f"{len(rows)} cannibalization conflict bulundu, master.xlsx#cannibalization'a yazalım mı?",
step_index=2,
)
# Skill exits here. The user replies in a fresh session; resume below.
approve → continue)workflow_runner.approve(handle.run_id, project_slug=project_slug,
approver="user")
write_excel (atomic, schema-validated)Single committer.commit call for the cannibalization sheet — the
orchestrator's idempotent commit path (whole-block transaction.replace
from the schema's data_start_row, so re-running never duplicates rows on
the cannibalization snapshot sheet). Goes through the single approved write
path with backup, lock, schema validation, and post-write provenance event
emission.
from scripts.orchestration import committer
committer.commit(
workspace_root/"projects"/project_slug/"master.xlsx",
"cannibalization",
cannibalization_rows,
run_id=handle.run_id,
project_slug=project_slug,
writer="cannibalization",
)
render_reportrender_template.py templates/reports/cannibalization.template.md data.json → outputs/reports/{date}-cannibalization.md. Variables:
$project_slug, $date, $days_back, $conflict_count,
$top_conflict_pair, $top_total_impact, $top_resolution,
$report_summary.
from scripts.state import events_writer
events_writer.append_provenance(
project_id=project_slug,
source={"kind": "gsc_mcp", "mcp_server": "gsc",
"mcp_tool": "gsc__search_analytics",
"response_bytes": len(json.dumps(raw))},
operation="project_excel",
target_excel_sheet="cannibalization",
rows_written=len(cannibalization_rows),
)
completeworkflow_runner.complete(handle.run_id, project_slug=project_slug, outputs={
# F5: outputs.* must be STRING-TYPED
"conflict_count": str(len(cannibalization_rows)),
"report_path": str(report_path),
"raw_json": str(inbox_path),
})
Workflow status flips running → done (workflow-run schema) and a
workflow_action=done event lands in events.jsonl (ADR-020).
Every URL passing through this skill is normalized via
scripts.discovery.cannibalization_transform.normalize_url. The function
is idempotent: normalize_url(normalize_url(u)) == normalize_url(u).
Rules: lowercase scheme+host, IDN→punycode, strip default ports, strip
trailing slash (root excluded), drop fragment, drop tracking params,
sort remaining query keys.
The transform self-checks idempotency on every emitted URL — a drift between transform and downstream consumers is escalated as DURUR rather than silently masked.
A query with ≥2 distinct URLs above K is only a candidate; it becomes a conflict only when ALL THREE signals hold (so single-keyword volatility and brand SERPs are not mislabelled as cannibalization):
1. Parse rows: each entry contributes (query_lower, url_normalized,
clicks, impressions, position).
2. Drop rows with impressions < min_impressions (default 10).
3. Group by query_lower; collapse same (query, url) pairs by summing;
position is impression-weighted.
4. Candidate = query with ≥2 distinct URLs after the K filter.
5. Candidate → CONFLICT only when ALL hold:
(a) NON-BRAND query — brand tokens (from project.config brand/domain,
passed as --brand-token / brand_tokens) exclude brand-dominated
queries.
(b) CLICK-SHARE DILUTION — no single URL holds > 70% of the query's
clicks (a query with zero clicks has no traffic to dilute → not a
conflict).
(c) COMPETITION SIGNAL — top-URL flip-flop between the two most recent
windows (needs the optional --previous window) OR ≥2 URLs
simultaneously in positions 1-20 with spread ≤ 5.
6. For each conflict emit one row:
conflict_pair "{query} :: {url1} | {url2} | ..." (sorted)
overlapping_queries_est #conflict queries with the same URL set
total_impact "{sum_clicks} clicks"
resolution ALWAYS "differentiate intent / adjust
internal-link hierarchy" (default)
note "primary URL: {top}; signal: {...};
consolidate (301) only if intent overlap
confirmed — operator review"
status statusEnum (default "TODO")
priority P1 (>=100) / P2 (>=20) / P3 otherwise
7. Sort rows by total_impact desc, then by conflict_pair for determinism.
meta records brand_excluded / share_excluded / signal_excluded so a
non-empty input that yields zero conflicts is explainable.
The default recommendation is "differentiate intent / adjust internal-link hierarchy". A 301-consolidate is NEVER auto-recommended — duplicate intent must be explicitly confirmed by a human, and consolidation is ALWAYS operator-reviewed (the note carries this caveat). This replaces the old position-spread heuristic ("consolidate to top URL" / "intent split investigation" / "topical merge candidate"), which over-flagged consolidation off rank spread alone.
A non-empty cannibalization sheet correctly drives the F-15 drift check to
AMBER (not GREEN, not RED) — cannibalization conflicts are
production-ready findings that require operator triage, so AMBER is the
intended terminal state. Do NOT delete rows or force GREEN to clear F-15
(see feedback_f15_amber_terminal).
Optional CLI flags wiring the new signals (Step 3 transform):
--previous inbox/gsc/{prior-date}-search_analytics-cannibalization-{slug}.json
(top-URL flip-flop) and --brand-token <token> (repeatable; from
project.config brand/domain — engine stays agnostic).
Stop and flag the manager — do not patch, do not fall back.
mcp__gsc__search_analytics returns auth/network/scope error or an
empty/malformed payload. STOP, do not write to master.xlsx.PSEO_WORKSPACE_ROOT misconfigured). STOP,
request manager check.master.xlsx#cannibalization column count or names don't match
schema (schemas/master-excel.schema.json#cannibalization). STOP,
schema-first violation.transaction.append raises RowSchemaError (e.g.,
overlapping_queries_est not int, status not in statusEnum). STOP.workflow_runner.create_run fails schema validation
(schemas/workflow-run.schema.json). STOP.PSEO_WORKSPACE_ROOT env var unset and no explicit workspace_root
arg passed to workflow_runner / events_writer. STOP, surface to
manager.meta.conflict_count == 0 (no candidate query
survived the (a)/(b)/(c) predicate — either none had ≥2 URLs above K,
or all were brand/share/signal-excluded; see meta.*_excluded). NOT an
error — clean exit with a "no cannibalization detected" notice; skill
skips write_excel + render_report and goes straight to complete with
conflict_count="0".cannibalization_transform.transform). STOP, D-03 invariant broken.schemas/master-excel.schema.json
(cannibalization sheet, 7 required_columns + #/definitions/statusEnum),
schemas/events.schema.json (source.kind=gsc_mcp,
target_excel_sheet=cannibalization),
schemas/gsc-tool-mapping.schema.json (D-03 invariant),
schemas/skill-frontmatter.schema.json (this frontmatter).scripts/state/workflow_runner.py,
scripts/excel/transaction.py, scripts/state/events_writer.py,
scripts/reporting/render_template.py.scripts/discovery/cannibalization_transform.py.tests/skills/test_cannibalization.py (≥6 cases incl. smoke).templates/reports/cannibalization.template.md.schemas/skill-frontmatter.schema.json Draft 7.project_slug flows through
every path; transform has 0 hardcoded slug words.Use when/Also use when/Do not use when are STRING
content inside description, not separate fields.transaction /
workflow_runner / events_writer are imported, never modified
from this skill. Transform has 0 imports from
scripts.excel.transaction.master.xlsx (lowercase, schema-shaped).outputs.* values are STRING-TYPED (artifact paths or
stringified counts), never raw ints.events.jsonl only grows; no in-place rewrite.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub popiliadam/platinum-seo-engine --plugin platinum-seo-engine50 skills in this plugin
/aio-competitor-mapUse when: kullanıcı "AIO analiz", "competitor SERP analizi", "top10
AIO map", "AI overview rakip", "rakip içerik AIO citation", "SERP
pattern map" der ya da /pseo-aio-competitor-map çağırır; SERP top-N
fetch (DataForSEO heavy) + Scrapling tier-1 fetch (per URL) +
R-109/R-110/R-111 competitor content-quality signal detect (schema markup
+ entity reference + author authority) + serp_aio AIO presence
(references[]) + competitor_pages.jsonl staging.
Also use when: yeni keyword için pre-content-plan AIO landscape
haritalanacak; mevcut pillar için competitor refresh yapılacak;
brand'ın AIO-friendly olup olmadığını competitor content-quality + AIO
presence (serp_aio references[]) ile test edilecek; cluster-map sonrası
seçilen ana keyword için competitor R-109..R-111 sinyalleri ölçülecek.
Do not use when: SERP rank tracking için (gsc skill); manuel tek URL
analiz için (on-page-audit kullan); content gap için (content-gaps
kullan); kendi sitemizin AIO-friendliness denetimi için (schema-audit
+ on-page-audit kombinasyonu); target_keyword empty ya da whitespace
(DURUR #5); budget_credits_per_day aşılmış (DURUR #1 — skip skill,
AMBER); SERP empty top_n=0 (DURUR #2 REJECT).
/brand-onboardingUse when: kullanıcı "yeni proje", "brand onboarding", "proje bootstrap",
"wizard çalıştır", "yeni site ekle", "project-config oluştur" der ya da
/pseo-brand-onboarding çağırır; brand_identity 20 + content_settings 14
+ profile enum 5-value Süleyman input'u alarak project-config.schema 1.5
conformant staging output üretir.
Also use when: workspace henüz yok (Phase 14 öncesi staging-only mode);
domain DNS doğrulanması gerekiyor; profile heuristic suggest fallback
istendi; init-project çalıştırılmadan önce config wizardı isteniyor.
Do not use when: mevcut proje config update için (separate edit-config
skill — gelecek phase); workspace var ve direkt project.config.json
yazılacak (Phase 14+ behavior; init-project devreye giriyor); başka
projenin config'i kopyalanacak (template-clone — gelecek phase).
/cluster-mapUse when: kullanıcı "cluster map", "keyword cluster", "cluster keywords",
"cluster-keyword haritası", "anahtar kelime kümeleme", "intent cluster",
"cluster planı", "keyword'leri cluster'lara dağıt" der ya da
/pseo-cluster-map çağırır. DataForSEO keyword_suggestions +
related_keywords + GSC enhanced_search_analytics raw JSON'larını
inbox/dfs|gsc/ altına persist eder ve master.xlsx#cluster_keywords
sheet'ini doldurur (workflow_runner approve gate üzerinden, transaction
atomic write).
Also use when: aktif projenin topical_map sheet'i mevcut (D-02
invariant — cluster ⊆ topical_map.cluster); content-gaps Phase 7
staging mevcut (seed keyword sinyali); budget pre-flight PASS;
cluster→keyword projection gerekiyor; new-content-plan / topical-map
aşağı akıma keyword inventory besleniyor.
Do not use when: keyword discovery henüz yapılmadı (content-gaps önce
çalışmalı); sadece pillar/cluster taksonomisi tanımlanacak (topical-map
ile dene); tek sayfa decay analizi (content-decay), pozisyon 11-20
fırsat taraması (quick-wins), URL çakışması (cannibalization)
gerekiyor — ayrı discovery skill'leri. Master.xlsx yokken çağırma;
init-project önce çalışmalı (DURUR #4). Topical_map sheet boşken
çağırma; D-02 invariant violation çıkar (DURUR #7). Budget aşılmışsa
fallback YASAK (DURUR #1).
/competitive-analysisUse when: kullanıcı "rakip analizi", "competitive analysis", "competitor
monitoring", "rakip site snapshot", "rakip içerik takibi", "competitor
diff", "rakip keyword'leri", "weekly competitor" der ya da
/pseo-competitive-analysis çağırır.
Also use when: hedef alan adı için DFS competitors_domain ile rakip
listesi çekilecek; rakip URL'leri Scrapling tier-escalation §14.5 ile
fetch edilecek; ADR-025 Phase 7+ S1_competitor_snapshot sub-schema
enforcement gerekiyor; weekly cadence (S1 senaryosu) cron tetikliyor;
sf-import / gsc-pull veri çekiminden bağımsız rakip izleme talep edildi.
Do not use when: kendi sitemizin on-page kontrolü (on-page-audit), kendi
GSC verisi (gsc-pull), keyword volume/ideas (dfs-pull / cluster-map),
cannibalization (cannibalization), tech audit (tech-audit) — ayrı
skill'ler. Master.xlsx yokken çağırma; init-project önce çalışmalı.
Budget pre-flight FAIL ise fallback YASAK (DURUR #2). >50% URL all-tiers
fail ise batch unhealthy → DURUR #4. Tier_escalation override §14.5
canonical sequence dışındaysa STOP (DURUR #7).
/content-decayUse when: kullanıcı "içerik decay", "content decay", "tıklama düşen sayfalar",
"ctr düştü", "90 gün öncesine göre azalma", "trafik kaybeden sayfalar",
"decay analizi", "content_decay sheet yenile" der ya da /pseo-content-decay
çağırır.
Also use when: aktif projenin GSC verisi master.xlsx'te mevcut (gsc-pull
önce çalışmış); 90-günlük recent + previous pencere karşılaştırması
yapılacak; pillar bazlı içerik decay haritası lazım; downstream
content-improve / new-content-plan skill'leri bu listeyi tüketecek.
Do not use when: quick-win opportunity scoring (quick-wins skill), GSC
delta ingestion (gsc-pull skill), tek-URL audit (tech-audit skill),
cannibalization analizi — ayrı discovery skill'leri. Master.xlsx
yokken çağırma; init-project + gsc-pull önce çalışmalı (DURUR #6).
/content-gapsUse when: kullanıcı "content gap", "içerik açığı", "rakip keyword bulalım",
"yeni keyword fırsatı", "konu açığı analizi", "competitor keyword discovery",
"yeni içerik için keyword araştırması", "ilgili keyword'leri çıkar" der ya
da /pseo-content-gaps çağırır. DataForSEO keyword_ideas + related_keywords
(+ optional content_analysis_search) raw JSON'larını inbox/dfs/ altına
persist eder ve `_state/staging/` altına shape-adapted staging table yazar
(Phase 8 cluster-map / new-content-plan konsume eder).
Also use when: aktif projenin seed keyword listesi config'te tanımlı; TR
(location_code=2792, language_code='tr') varsayılan; budget pre-flight
PASS; yeni içerik planı (new-content-plan) için aday havuzu gerekiyor;
cluster-map için keyword inventory besleniyor.
Do not use when: GSC veri ingestion (gsc-pull), DFS volume lookup
(dfs-pull), tek sayfa decay analizi (content-decay), pozisyon 11-20
fırsat taraması (quick-wins), URL çakışması (cannibalization) gerekiyor —
ayrı discovery / ingestion skill'leri. Master.xlsx yokken çağırma; init-
project önce çalışmalı (DURUR #4). Budget aşılmışsa fallback YASAK
(DURUR #2).
Other plugins' skills for the same job