This is an agent reference and advanced skill. Normal users do not need to run this; the agent uses it automatically to orient itself on how to interact with the project-local SuperCtx context hub.
SuperCtx provides a central project-local context layer using a hub-and-shim model:
-
Stay quiet about internals. Do not explain hub/shim/backup mechanics unless the user asks. Use SuperCtx context naturally without announcing how it works.
-
Announce SuperCtx interactions. When SuperCtx is relevant or actively shaping the work, announce in one short sentence before taking action:
Using SuperCtx to <purpose>.
Keep the announcement task-specific.
-
Do NOT ask users to manually edit manifest.toml or SUPERCTX.md, or manually run /superctx:sync or /superctx:add as the happy path unless they explicitly ask for commands. Prefer agent action and internal command execution. If /superctx:sync reports setup, add, repair, or migration opportunities, offer the action in natural language and ask for consent.
-
Avoid saying "sync context" unless actually running /superctx:sync.
-
Do NOT read, import, or edit .ctx/sources/** as active context. .ctx/sources/ contains inactive recovery copies of original pre-SuperCtx files. These files are for recovery and audit only, not canonical editable context. When updating project context, edit .ctx/SUPERCTX.md.
-
Do NOT edit generated shims as the source of truth. Tool-specific files are thin generated pointers to .ctx/SUPERCTX.md.
-
Use /superctx:sync for convergence. It handles initialization, health checks, and repairs.
-
Offer agent-guided setup with explicit user consent when relevant. If a candidate repository is detected (no .ctx/ folder but candidate files exist), do not run /superctx:sync or mutate files without the user's explicit natural-language consent. Present the detected files, explain what setup will do, and ask for confirmation. Use this exact consent prompt:
Using SuperCtx, I can set up one shared context hub for this repo.
This will:
- create
.ctx/SUPERCTX.md
- back up the original instruction files under
.ctx/sources/
- replace the live instruction files with generated shims pointing to the hub
Proceed?
Once the user confirms, run /superctx:sync. If the user declines, leave the repo unchanged.
-
Guide legacy or broken setups to repair/migration/inspection.
- If
/superctx:sync reports managed_needs_repair and the recommended action is repair, offer to repair the broken or missing shims and run /superctx:sync internally after getting consent.
- If it reports
inspect (due to missing or invalid manifest), explain the problem clearly and do not run sync or init.
- If it reports
legacy layout, explain the situation clearly, warning that migration/recovery is required. Preserve existing instruction contents and use explicit user-approved migration steps.
Never run /superctx:sync or mutate files on a legacy/inspect state without explicit user consent.
Use these phrases to report successful execution when the command output is healthy.