/semctx:semctx-semanticfrom semctx
Carry intent, invariants, decisions, evidence and unknowns through a non-trivial change using the semctx semantic layer. Use when starting substantial work: open or select a change contract, pull a bounded semantic slice, then keep the contract honest as you edit — verify impact, compose the change verdict, run the recommended tests, and record proofs/unknowns. Never conclude on a BLOCK.
Ships in semctx. 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.
This is the focused Plane B workflow. Use semctx-control when the task also needs repository
impact, L0-L6 tracing, migration planning, or the shared Codex/Claude completion contract.
The semantic layer is authored truth (Plane B) that sits beside the deterministic repository graph (Plane A). It answers "which intention, invariants, decisions, evidence and unknowns must survive while I change this system?" — it does not find files for a task (that is grep/BM25/ embeddings; see ADR 0005). Everything is deterministic and works with no LLM; you make it better.
Pass the absolute project root as repositoryRoot on every MCP call. The server rejects missing or
relative roots so a plugin-cache working directory can never become the implicit target.
Check semantic integrity. Call semctx_semantic_check and preserve every canonical reason
code. Do not continue into a write loop with an invalid/mismatched pointer, obsolete active
contract, or stale verification baseline.
Open or select a change contract.
semctx_change_open with { id: "change.<slug>", statement, preserves: [...], serves: [...], requires: [...], unknowns: [...] }. It becomes the active change (provenance agent).preserves are the invariants this change must not break; requires are the proofs you will
owe; unknowns are the open questions you must not silently drop.Pull a bounded semantic slice. semctx_semantic_slice { changeId } (or symbolRef /
claimRef). Read the capsule: Intentions, Invariants, Decisions, Linked symbols/claims, Evidence
obtained, Open unknowns, Forbidden / safety constraints, Next expected proofs. It is bounded
and every line points to a source — treat anything absent as unknown, not as false.
Edit the code.
Analyse impact. Call semctx_verify_change (Plane A: impacted symbols/contracts/invariants,
recommended tests, PASS/WARN/BLOCK). This is unchanged and still first-class.
Compose the change verdict. Call semctx_change_verify { changeId }. It reuses the impact
report verbatim and folds in the contract:
Run the recommended tests from the impact report. They must pass.
Record progress. When you actually obtain a proof (you ran the test and it passed), update the
evidence node's status to tested / runtime_verified. Before resolving an unknown, ensure its
authored node declares proved_by to that proven evidence; then use
semctx_change_update { id, resolveUnknowns: [...] }.
Close through proof. semctx_change_close { id } reruns composed verification and derives
verified only from a VERIFIED result. Generic updates cannot assert that lifecycle.
.semctx/config.json.Before a context compaction or handing the work to a fresh agent, call semctx_handoff (optionally
with a note). It captures the active change, touched invariants, obtained/pending proofs, open
unknowns and next validations into .semctx/working/. On resume, call semctx_resume to rehydrate a
short, stable capsule. These are explicit tools — do not rely on any implicit compaction hook.
Prefer the plugin-bundled CLI (dist/semctx.js, same release as MCP). Claude Code substitutes the
plugin root into this skill at load time, so the path below is already absolute; if it still reads
as a literal ${…} placeholder, use a global semctx on PATH instead (same version: semctx --version), or report that no shell CLI is available. CLAUDE_PLUGIN_ROOT is never exported to
your terminal — do not rely on the shell to expand it.
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" semantic init # scaffold .semctx/semantic/ (versioned)
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" semantic check --json # integrity + lifecycle reason codes
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" change open change.<slug> --preserves <inv-ids> --unknown <unknown-ids>
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" semantic slice --change change.<slug> --format agent
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" verify diff --base origin/main # Plane A impact
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" change verify change.<slug> --base origin/main # composed verdict
bun "${CLAUDE_PLUGIN_ROOT}/dist/semctx.js" semantic handoff # / semctx semantic resume
semctx semantic check --json # global fallback
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub hoklims/semctx --plugin semctx4 skills in this plugin
/index-control-planeGovern code-intelligence routing, freshness, refresh, consumer generations, provider cost, and fallback across Codex and Claude Code. Use this skill whenever a task asks which code index to use, reports slow or stale indexing, touches CCC/CocoIndex, Graphify, Semctx, Serena, LSP or SCIP, changes index hooks or MCP exposure, opens a substantial Git worktree, or needs architecture/impact retrieval. Prefer this control plane even when the user only says the agent is slow, cannot find code, or seems to use the wrong context./semctx-controlUse semctx through its MCP tools for top-down root-cause diagnosis, repository impact analysis, authored goals and invariants, proof-carrying change contracts, handoffs, bounded target proposals, and fail-closed migration planning. Use for non-trivial code changes, refactors, migrations, architecture reconstruction, semantic trace requests, invariant preservation, generic project demonstrations, or pre-commit verification in a semctx-enabled repository./semctx-verifyVerify the semantic blast radius of a code change before finishing. Use after any non-trivial edit and before a commit or push: check impacted invariants/contracts and run the recommended tests. Invoke when the user asks to commit, open a PR, or "make sure this change is safe".Other plugins' skills for the same job