/ctx:ctx-kb-site-reviewfrom ctx
Mechanical structural audit of the kb. Coerces malformed capitalization, flags malformed closeout frontmatter, and refuses to make judgment calls that require evidence. Writes a site-review closeout for the audit trail.
Ships in ctx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Walk .context/kb/ and .context/ingest/closeouts/ mechanically.
Fix what is unambiguous (capitalization drift, missing frontmatter
fields the CLI knows how to coerce). Flag what is not (claims
that read as broken but require evidence to fix). Never invent
prose. Never mint EV-### rows. Never modify a claim's
Confidence band.
This is a janitor pass, not an editorial pass. Editorial judgment
lives in /ctx-kb-ingest.
Authoritative background reading:
.context/ingest/KB-RULES.md §Authority boundary;
specs/kb-editorial-pipeline.md §Validation Rules.
/ctx-kb-ingest)./ctx-kb-ground)./ctx-kb-ask)./ctx-kb-note)./ctx-kb-site-review: mechanical structural audit. May
coerce capitalization that the spec deems lossless (e.g.
Confidence: High → high). May flag any other malformation
in the closeout's What changed block. May not modify a
claim, an EV-### row's content, a Confidence band, a topic
page's prose, or a ledger state. Those require evidence
judgment./ctx-kb-ingest: handles anything this skill flags as
evidence-dependent./ctx-kb-ground: handles anything this skill flags as
source-staleness./ctx-kb-site-review
No arguments. The pass walks the kb in full.
Three distinct refusals, each leaves zero residue:
.context/ missing → suggest ctx init and stop..context/kb/ missing → suggest ctx init --upgrade and
stop..context/kb/index.md)
→ refuse with the scope message and stop.Verify pre-write gates. Refuse cleanly if any gate fails. Zero residue on refusal.
Walk topic pages. For every
.context/kb/topics/<slug>/index.md and every sibling
sub-page:
Subject, Last verified,
Author, Confidence)? Missing fields → flag in
What changed. Do not synthesize.Author: hand-authored is
prohibited per KB-RULES.md. Flag (do not auto-coerce;
human intent matters).high|medium|low|speculative
are the only valid values. Coerce capitalization
(High → high, MEDIUM → medium) silently and record
in What changed. Any other malformation (e.g.
Confidence: probable) is flagged for the user.TBD-cite markers: count them per page. The
Confidence floor for any page with TBD-cite is
speculative. If the page's Confidence is above
speculative while TBD-cite is present, flag (do not
auto-demote; demotion is evidence work).EV-### citation resolution: every EV-### cited on
the page must resolve to a row in
.context/kb/evidence-index.md. Unresolved IDs → flag.## Related concepts in this kb presence: if the
page is more than the lede + Status block AND the kb has
plausibly adjacent topics, the section should be present.
Absence is a soft flag (not auto-fixable).Walk evidence-index.md.
EV-### IDs: flag every duplicate; name
both files / line numbers. The LLM cleanup pass (per
spec's P1) handles renumbering, not this skill.EV-12 should be EV-012. Flag
(do not auto-coerce; renumbering cascades to citations on
topic pages, which is ingest work).occurred: field on dated sources: if the source-map
row for the cited source has a dated: field but the
evidence row lacks occurred:, flag. The temporal-
precedence rule needs it.Walk source-coverage.md.
Updated cell against the actual file mtime of the
source it points to (when the source is in-tree). Mismatch
→ flag (lying-to-the-ledger advisory). Do not auto-edit.comprehensive → highlights-extracted without
an explicit superseded step. Do not auto-correct.Source, Topic, State, EV coverage,
Residue, Next action, Updated). Missing columns →
flag.Walk closeouts in .context/ingest/closeouts/.
sha, branch, mode, pass-mode, life-stage,
generated-at. Missing fields → flag (the handover-fold
skips malformed closeouts; surface them so the user can
fix or delete).Pass-mode body block whose Declared: value
matches the frontmatter's pass-mode: field. Drift
between the two is exactly the false-finish signal the
redundancy exists to surface. Flag any drift.topic-page mode must have an Adjacency pre-flight
block whose value is either none surfaced or a
structured slug-list. Free-prose values fail validation;
flag.topic-page mode must include the four-item rubric in
What changed. Missing → flag.Walk .context/kb/index.md.
CTX:KB:TOPICS managed block: should list every
.context/kb/topics/<slug>/index.md currently on disk.
Drift (slug on disk not in the block, or block entry with
no matching folder) → recommend ctx kb reindex in the
closeout's Next pass hint. Do not run the CLI from this
skill.Write the site-review closeout. Create
.context/ingest/closeouts/<TIMESTAMP>-site-review-closeout.md
with required frontmatter:
---
sha: <short>
branch: <name>
mode: site-review
pass-mode: mechanical
life-stage: <bootstrap|maintenance>
generated-at: <RFC-3339>
---
Body sections:
EV-###, ledger mismatches, malformed
closeouts, etc. Each flag names file + line + nature./ctx-kb-ingest <slug> to restore
missing EV-### citation on <page>").| Case | Expected behavior |
|---|---|
.context/ missing | Refuse; suggest ctx init. No residue. |
.context/kb/ missing | Refuse; suggest ctx init --upgrade. No residue. |
| Kb scope undeclared | Refuse with the scope message. No residue. |
| Zero topic pages on disk | Walk closeouts and ledger anyway. Note the bootstrap state in the closeout. Not a failure mode. |
| Zero closeouts on disk | Walk topic pages and ledger anyway. Note in the closeout body. Not a failure mode. |
Confidence: High (capitalization drift) | Coerce to high silently; record in What changed. |
Confidence: probable (unknown band) | Flag for the user; do not coerce. |
Author: hand-authored | Flag for the user; do not coerce (human intent matters). |
Duplicate EV-### ID across files | Flag both files; defer renumbering to the LLM cleanup pass per spec's P1. |
EV-12 (missing zero-pad) | Flag for the user; do not auto-pad (cascades to citations). |
Unresolved EV-### on a topic page | Flag; recommend /ctx-kb-ingest <slug> in Next pass hint. |
Ledger row Updated predates source file mtime | Flag (lying-to-the-ledger advisory). Do not auto-edit. |
Illegal ledger transition (e.g. comprehensive → highlights-extracted without superseded) | Flag; recommend the corrective ingest invocation. Do not auto-correct. |
Closeout missing pass-mode frontmatter field | Flag; the handover-fold skips malformed closeouts so the user can fix or delete. |
Closeout body's Pass-mode Declared: disagrees with frontmatter pass-mode: | Flag (false-finish signal); recommend hand-edit. |
Closeout's Adjacency pre-flight is free prose instead of none surfaced or a slug-list | Flag; recommend hand-edit to structured form. |
CTX:KB:TOPICS managed block drift | Recommend ctx kb reindex in Next pass hint; do not run the CLI from this skill. |
TBD-cite on a page with Confidence above speculative | Flag; do not auto-demote (demotion is evidence work for /ctx-kb-ingest). |
Sibling sub-page exists with no link from index.md | Flag; recommend hand-edit or /ctx-kb-ingest <slug> to extend. |
EV-###
renumbering, ledger state changes, prose synthesis).INBOX.md or SESSION_LOG.md (other skills'
surfaces; never this one's).Author: hand-authored to anything else. The user's
intent matters; flag and wait.EV-### IDs. The cascade to
citations is ingest work; this skill flags only.For pre-write refusals, return only the specified refusal text and stop. No residue.
For passes that clear pre-write gates, end with this structured summary:
none if the kb is clean).Before reporting completion, verify:
What changed with
file + before/after.Flags with file + line +
nature.EV-### row was
modified, no Confidence band was promoted/demoted, no
ledger state was changed.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub activememory/ctx --plugin ctx54 skills in this plugin
/ctx-agentLoad full context packet. Use at session start or when context seems stale or incomplete./ctx-architectureBuild and maintain architecture maps. Use to create or refresh ARCHITECTURE.md and DETAILED_DESIGN.md. Supports principal mode for deeper analysis: vision, future direction, bottlenecks, implementation alternatives, gaps, upstream proposals, and intervention points./ctx-architecture-enrichEnrich architecture artifacts with code intelligence data. Takes existing /ctx-architecture output as baseline, verifies and quantifies with GitNexus MCP (blast radius, execution flows, domain clustering, registration sites). Run after /ctx-architecture, not instead of it./ctx-architecture-failure-analysisAdversarial failure analysis for codebases. Generates falsifiable incident hypotheses: race conditions, ordering assumptions, cache staleness, error swallowing, ownership gaps, idempotency failures, and scaling cliffs. Produces DANGER-ZONES.md with evidence-backed, ranked findings./ctx-archiveArchive completed tasks. Use when TASKS.md has many completed items cluttering the view./ctx-blogGenerate blog post draft. Use when documenting project progress, sharing learnings, or writing about development experience.Other plugins' skills for the same job