Not loaded · from platinum-seo-engine
Cross-references GLOSSARY.md with skill files and spec §20 to detect orphan and missing terms. Surfaces AMBER-level drift for human triage.
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.
Read-only term catalog audit. Loads docs/GLOSSARY.md (alphabetical
term registry per Disiplin #8), extracts spec §20 bold-marked terms,
verifies docs/REFERENCE_INDEX.md glossary anchor integrity, and
performs reverse-lookup over skills/**/SKILL.md to surface two drift
classes:
Both classes surface as AMBER warn entries (NOT RED). RED-style hard-failure is reserved for schema-validate and drift-check.
Read-only contract: master.xlsx MUST NOT be opened. Skill writes
only to outputs/reports/{date}-glossary-audit.md and
_state/events.jsonl.
solo profile false positives without
exempting enterprise profile from terminology rigor.mcp_tools=[] enforces.docs/GLOSSARY.md missing or unparseable → AMBER
exit. Glossary is the source of truth; without it no audit is
possible. The skill DOES NOT fall back to spec §20 (that would
mask Disiplin #8 violation).| Name | Type | Default | Notes |
|---|---|---|---|
glossary_path | string | docs/GLOSSARY.md | Alphabetical term registry root. |
spec_path | string | docs/superpowers/specs/2026-04-30-platinum-seo-engine-design.md | spec §20 cross-ref source for term extract. |
outputs/reports/{date}-glossary-audit.md — orphan list +
missing list + verdict._state/events.jsonl — single event_kind=audit row
(audit_action="accessed", audit_target="docs:glossary-audit",
actor="agent:glossary-audit").parse_glossary (DURUR #1)# Standalone-executable entrypoint (Phase 14 W3-W1 helper exec compliance):
# imports + entrypoint variables init for downstream concat blocks.
import os
import sys
import re
from pathlib import Path
# sys.path insert so `scripts.*` packages resolve under subprocess exec.
sys.path.insert(0, os.getcwd())
# Entrypoint variables (placeholder defaults — orchestrator overrides at runtime)
glossary_path = Path("docs/GLOSSARY.md")
spec_path = Path("docs/superpowers/specs/2026-04-30-platinum-seo-engine-design.md")
reference_index_path = Path("docs/REFERENCE_INDEX.md")
project_id = "drifttest"
REPO_ROOT = Path.cwd()
glossary_text = glossary_path.read_text(encoding="utf-8")
# Pattern: "- **TermName** — definition"
term_pattern = re.compile(r"^- \*\*([^\*]+)\*\*", re.MULTILINE)
glossary_terms = set(term_pattern.findall(glossary_text))
if not glossary_terms:
raise SystemExit("DURUR #1: GLOSSARY.md unparseable or empty")
Glossary follows the alphabetical bullet pattern documented in Disiplin #8. The skill counts ~20 terms typical (manager kanıt #12 = 23 lines including header/separator).
extract_spec_section_20spec_text = spec_path.read_text(encoding="utf-8")
# Find "## 20." section bounded by next "## " header
section_re = re.compile(r"^## 20\.[^\n]*\n(.*?)(?=^## \d+\.)", re.MULTILINE | re.DOTALL)
m = section_re.search(spec_text)
section_20 = m.group(1) if m else ""
spec_term_pattern = re.compile(r"^- \*\*([A-Z][^\*]+)\*\*", re.MULTILINE)
spec_terms = set(spec_term_pattern.findall(section_20))
Spec §20 declares the canonical term set. GLOSSARY.md should be a superset (Phase 0 bootstrap added some + Phase 5+ adds more).
verify_reference_index_anchorref_index_text = reference_index_path.read_text(encoding="utf-8")
# Heading-link integrity: REFERENCE_INDEX should mention "GLOSSARY.md"
assert "GLOSSARY.md" in ref_index_text, (
"REFERENCE_INDEX missing glossary anchor"
)
REFERENCE_INDEX is the Q&A "where to look for X?" router; the glossary anchor MUST be present (link integrity).
scan_skill_bodies_for_termsskill_terms_used: dict = {}
for skill_md in (REPO_ROOT / "skills").rglob("SKILL.md"):
text = skill_md.read_text(encoding="utf-8")
# Strip frontmatter to focus on body prose
m = re.match(r"^---\n.*?\n---\n", text, re.DOTALL)
body = text[m.end():] if m else text
# Extract Title Case 2+ capitalized tokens (heuristic)
candidates = re.findall(r"\b([A-Z][A-Za-z]{1,}(?:\s+[A-Z][A-Za-z]{1,})+)\b", body)
for c in candidates:
skill_terms_used.setdefault(c, []).append(skill_md)
Heuristic: capitalized 2+ token spans are candidates for glossary terms. False positives are filtered by the whitelist below.
detect_orphan_terms (DURUR #2)used_set = set(skill_terms_used.keys())
orphan_terms = sorted(glossary_terms - used_set)
# Each orphan_term: in GLOSSARY but no skill mentions it.
Orphan terms surface as AMBER warn list (NOT RED). Manager triages: keep (used in docs/spec only) vs. remove (genuinely stale).
detect_missing_terms_with_whitelist (DURUR #3)ACRONYM_WHITELIST = frozenset({
"JSON", "URL", "API", "HTML", "CSS", "SEO", "MCP", "GSC",
"DFS", "AIO", "FAQ", "JSON-LD", "XML", "HTTP", "CSV", "CLI",
"CI", "ADR", "UTC", "SHA", "SHA-256", "UUID", "REST", "TLS",
# F/D/M rule prefixes - they are rule IDs, not glossary terms
"F-01", "F-02", "F-03", # ... the suite
# R-XX rule prefixes
})
def _is_rule_id(t: str) -> bool:
return bool(re.match(r"^[FDMR]-\d+$", t))
missing_terms = sorted(
t for t in skill_terms_used
if t not in glossary_terms
and t not in ACRONYM_WHITELIST
and not _is_rule_id(t)
)
Defensive whitelist guards against false positives from common
acronyms and rule IDs (R-XX, F-XX, D-XX, M-XX), but it does NOT make
this a precise detector. The Title-Case heuristic flags every 2+ token
capitalized span absent from GLOSSARY — skill names, step labels, proper
nouns, prose emphasis — so the missing-term list runs to the hundreds
even after the 2+ token requirement and the whitelist (≈360 over the
current skills/ tree; the pre-fix single-token regex flagged ≈1,400).
It is therefore an AMBER advisory candidate list for manager triage,
not an authoritative "these terms are undefined" set: the operator skims
it for genuinely missing glossary entries and ignores the expected
false-positive bulk. The whitelist is conservative; new acronyms must be
added explicitly.
render_reportWrite outputs/reports/{date}-glossary-audit.md:
emit_audit_eventfrom scripts.state import events_writer
# Documented invocation (orchestrator runs at workflow time):
# events_writer.append_audit(
# project_id=project_id,
# audit_action="accessed",
# audit_target="docs:glossary-audit",
# actor="agent:glossary-audit",
# notes=f"orphans={len(orphan_terms)} missing={len(missing_terms)}",
# )
audit_payload = {
"event_kind": "audit",
"audit_action": "accessed",
"audit_target": "docs:glossary-audit",
"actor": "agent:glossary-audit",
"notes": f"orphans={len(orphan_terms)} missing={len(missing_terms)}",
}
event_kind=audit requires the audit_action + audit_target + actor
triple per events.schema.json allOf. event_type (WORK-only enum)
is NOT used — schema-first override (lesson 31+34) routes governance
signals to audit, never to work.
glossary-audit MUST NOT call transaction.append, transaction.update,
transaction.delete, or wb.save. It does not open master.xlsx —
the audit operates on docs/ and skills/ exclusively. The test
suite enforces this by regex grep over the production prose.
Disiplin #8 (Glossary Discipline) is a curation discipline, not a hard schema rule. Both drift classes are signals for human triage:
docs/ but not in any skill yet
(Phase 13 future skill will reference it).RED would force an unnecessary halt; AMBER surfaces the signal,
manager triages. This split is symmetric with drift-check's
F-15 manual-triage routing.
schemas/skill-frontmatter.schema.json (link to body
parser), schemas/events.schema.json (audit branch).scripts/state/events_writer.py (audit append),
scripts/reporting/render_template.py (report render).tests/skills/governance/test_glossary_audit.py.schema-validate (schema drift),
drift-check (master.xlsx invariants), load-context
(session wakeup).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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).
/cannibalizationUse when: kullanıcı "cannibalization", "kannibalizasyon", "keyword
conflict", "aynı keyword'e iki sayfa", "URL çakışması", "anahtar kelime
çakışması", "iki sayfam aynı sorguya çıkıyor", "intent split" der ya
da /pseo-cannibalization çağırır.
Also use when: aktif projenin GSC verisi mevcut; aynı sorguda ≥2 URL
ranking ediyor; quick-win / content-decay ile birlikte triage; F-08
invariant kontrolünden sonra cannibalization sheet doldurulacak.
Do not use when: tek sayfanın decay analizi (content-decay), pozisyon
11-20 fırsat taraması (quick-wins), tech audit (tech-audit), yeni
içerik planı (new-content-plan) — ayrı discovery skill'leri. Master.xlsx
yokken çağırma; init-project önce çalışmalı (DURUR #6).
/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).
Other plugins' skills for the same job