Not loaded · from platinum-seo-engine
Bootstraps a fresh manager session by executing the 7-step context loading sequence from SESSION_PROTOCOL.md. Reads phase status, open questions, decisions, and reference index within a <15KB budget. Produces a load report and events log.
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 manager session wakeup aggregator. Codifies the 7-step
sequence from docs/SESSION_PROTOCOL.md §2 (mirroring spec §13.2)
into an executable governance flow:
docs/PHASE_STATUS.md read.docs/OPEN_QUESTIONS.md read.docs/DECISIONS.md last 5 ADR read.docs/REFERENCE_INDEX.md full read.The skill produces a single markdown report summarizing what was loaded, the active phase auto-detected from PHASE_STATUS, the byte budget (target <15KB per spec §13.2), and the per-file size breakdown so the manager can confirm the wakeup was within budget.
Read-only contract: master.xlsx MUST NOT be opened. Skill
writes only to outputs/reports/{date}-load-context.md and
_state/events.jsonl.
max_kb input
permits per-profile override (e.g. enterprise profile may run
at 20KB if compliance docs grew).## ADR-NNN heading match.
Summarization is the manager's judgment call. mcp_tools=[]
enforces.
max_kb * 1024) → AMBER + suggested per-file trim (sorted descending by size). Never silently truncate; surface the budget violation so the manager either accepts the bigger payload or tightens the docs.
| Name | Type | Default | Notes |
|---|---|---|---|
phase_id | string | auto-detect | Auto-extracts from PHASE_STATUS.md "Active Phase" line; explicit override allowed. |
max_kb | integer | 15 | Byte budget cap (KB). Default mirrors spec §13.2 manager wakeup target. |
outputs/reports/{date}-load-context.md — auto-detected active
phase + byte budget summary + 7-step status checklist._state/events.jsonl — single event_kind=audit row
(audit_action="accessed", audit_target="session:wakeup-codify",
actor="agent:load-context").extract_spec_sections_1_13_17 (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
import json
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)
phase_id = "auto-detect"
max_kb = 15
project_id = "drifttest"
spec_path = Path("docs/superpowers/specs/2026-04-30-platinum-seo-engine-design.md")
phase_status_path = Path("docs/PHASE_STATUS.md")
open_questions_path = Path("docs/OPEN_QUESTIONS.md")
decisions_path = Path("docs/DECISIONS.md")
reference_index_path = Path("docs/REFERENCE_INDEX.md")
session_protocol_path = Path("docs/SESSION_PROTOCOL.md")
spec = spec_path.read_text(encoding="utf-8")
def _section(idx: int) -> str:
pat = re.compile(rf"^## {idx}\.[^\n]*\n(.*?)(?=^## \d+\.)", re.MULTILINE | re.DOTALL)
m = pat.search(spec)
if not m:
raise SystemExit(f"DURUR #1: spec §{idx} anchor not found")
return m.group(0)
section_1 = _section(1)
section_13 = _section(13)
section_17 = _section(17)
spec_bytes = sum(len(s.encode("utf-8")) for s in (section_1, section_13, section_17))
assert spec_bytes < 10_000, f"spec sections grew unexpectedly: {spec_bytes}B"
Each section is bounded by the next ## N. heading. Anchor
regex ^## \d+\. is the canonical extractor used by spec-aware
tooling.
parse_phase_statusphase_status = phase_status_path.read_text(encoding="utf-8")
active_match = re.search(r"^\*\*Active Phase:\*\*\s*([^\n]+)", phase_status, re.MULTILINE)
active_phase = active_match.group(1).strip() if active_match else "<unknown>"
blockers_match = re.search(r"^### Blockers\n(.*?)(?=^##|\Z)", phase_status, re.MULTILINE | re.DOTALL)
blockers = blockers_match.group(1).strip() if blockers_match else ""
Active phase comes from the canonical **Active Phase:** markdown
bold line; blockers come from the ### Blockers section.
read_open_questionsopen_q = open_questions_path.read_text(encoding="utf-8")
# Extract Q-XX-NN entries, count Phase 13+ candidates
q_entries = re.findall(r"^### (Q-[A-Z]+-\d+)", open_q, re.MULTILINE)
Q-NN-MM format (e.g. Q-CR-02, Q-CD-01). Count per category for
the report.
read_last_5_adrdecisions = decisions_path.read_text(encoding="utf-8")
# Anchor: "## ADR-NNN"
adr_anchors = list(re.finditer(r"^## ADR-(\d+)", decisions, re.MULTILINE))
last_5_starts = [m.start() for m in adr_anchors[-5:]]
# Slice from first of last-5 to end
adr_block = decisions[last_5_starts[0]:] if last_5_starts else ""
The 5 most recent ADRs are the "what was decided?" surface a fresh
session needs. Older ADRs live in DECISIONS_ARCHIVE.md (per
ADR-011 rotation rule).
read_reference_indexref_index = reference_index_path.read_text(encoding="utf-8")
# Full read: ~3KB, well under budget
The Q&A "where to look?" index is small enough to read in full.
verify_session_protocol_matchsession_protocol = session_protocol_path.read_text(encoding="utf-8")
# Count the numbered 7-step sequence in §2
step_lines = re.findall(r"^\d\.\s", session_protocol, re.MULTILINE)
assert len(step_lines) >= 7, (
f"SESSION_PROTOCOL §2 wakeup sequence drifted: expected ≥7 numbered "
f"steps, found {len(step_lines)}"
)
The 7-step sequence is the contract; if SESSION_PROTOCOL drifts to 6 or 8 steps the wakeup contract is broken and the report flags it.
verify_byte_budget (DURUR #2)total = (spec_bytes + len(phase_status.encode("utf-8"))
+ len(open_q.encode("utf-8")) + len(adr_block.encode("utf-8"))
+ len(ref_index.encode("utf-8")))
budget_bytes = max_kb * 1024
verdict = "GREEN" if total <= budget_bytes else "AMBER"
if total > budget_bytes:
# Surface per-file sorted desc — manager picks the trim target
sizes = sorted([
("spec §1+§13+§17", spec_bytes),
("PHASE_STATUS.md", len(phase_status.encode("utf-8"))),
("OPEN_QUESTIONS.md", len(open_q.encode("utf-8"))),
("DECISIONS.md last 5 ADR", len(adr_block.encode("utf-8"))),
("REFERENCE_INDEX.md", len(ref_index.encode("utf-8"))),
], key=lambda kv: -kv[1])
Budget verdict is reported, never silently truncated.
render_reportWrite outputs/reports/{date}-load-context.md:
### Blockers section.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="session:wakeup-codify",
# actor="agent:load-context",
# notes=f"phase={active_phase} bytes={total} verdict={verdict}",
# )
audit_payload = {
"event_kind": "audit",
"audit_action": "accessed",
"audit_target": "session:wakeup-codify",
"actor": "agent:load-context",
"notes": f"phase={active_phase} bytes={total} verdict={verdict}",
}
event_kind=audit requires 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 kind.
load-context MUST NOT call transaction.append, transaction.update,
transaction.delete, or wb.save. It does not open master.xlsx —
the wakeup operates on docs/ exclusively. The test suite enforces
this by regex grep over the production prose.
The spec is 68KB. Reading it whole would blow the 15KB budget on the first file. §1 (Vision) anchors the WHY, §13 (Manager Session Protocol) anchors the HOW, §17 (Phase Roadmap) anchors the WHERE WE ARE. These three sections sum to <10KB typical and answer 95% of fresh-session questions. The other sections are demand-loaded when the manager identifies a specific need.
Hardcoding phase-13 here would create the same drift class
schema-validate exists to surface (manager finding F-13.1). Auto-
detection from PHASE_STATUS lets this skill survive Phase 14, 15,
... without edits.
schemas/events.schema.json (audit branch).scripts/state/events_writer.py (audit append),
scripts/reporting/render_template.py (report render).tests/skills/governance/test_load_context.py.schema-validate (schema drift),
glossary-audit (term drift), drift-check (master.xlsx
invariants).What SKILL.md sets; muted values are Claude Code's defaults
50 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).
npx claudepluginhub popiliadam/platinum-seo-engine --plugin platinum-seo-engineOther plugins' skills for the same job