using-superctx
Use when entering a repository with a .ctx/ hub, or when the user asks about project context, agent instructions, tool configuration, health, candidates, broken shims, repair, or cross-tool context.
Install
mkdir -p .claude/skills/using-superctx && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13453" && unzip -o skill.zip -d .claude/skills/using-superctx && rm skill.zipInstalls to .claude/skills/using-superctx
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use when entering a repository with a .ctx/ hub, or when the user asks about project context, agent instructions, tool configuration, health, candidates, broken shims, repair, or cross-tool context.About this skill
SuperCtx Reference Guide (Agent Reference / Advanced)
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.
When to Use
Use this skill whenever:
- A
.ctx/directory exists in the project root. - The user asks about project context, agent instructions, or tool configuration.
- The user asks about sync, health, candidates, broken shims, or cross-tool context.
- The user asks to update or apply context changes across agents.
Core Model
SuperCtx provides a central project-local context layer using a hub-and-shim model:
.ctx/SUPERCTX.mdis the canonical project context hub.- Tool-specific instruction files (e.g.
.claude/CLAUDE.md,.codex/AGENTS.md) are generated shims/adapters pointing to the hub. .ctx/sources/contains inactive recovery copies of original instruction files.
Edit Policy
When updating shared project context, the agent edits .ctx/SUPERCTX.md directly. The other managed files are not authoring surfaces.
| File | Policy |
|---|---|
.ctx/SUPERCTX.md | Author here. Canonical editable hub. Edit it to update shared project context. /superctx:sync preserves these edits. |
Tool files (.claude/CLAUDE.md, .codex/AGENTS.md, .agy/ANTIGRAVITY.md, …) | Generated shims. Do not edit. Edit .ctx/SUPERCTX.md instead. |
.ctx/sources/** | Backup only. Do not read, import, or edit as active context. Not live context. |
Agent Rules
-
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.tomlorSUPERCTX.md, or manually run/superctx:syncor/superctx:addas the happy path unless they explicitly ask for commands. Prefer agent action and internal command execution. If/superctx:syncreports 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:syncfor 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:syncor 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. - create
-
Guide legacy or broken setups to repair/migration/inspection.
- If
/superctx:syncreportsmanaged_needs_repairand the recommended action isrepair, offer to repair the broken or missing shims and run/superctx:syncinternally after getting consent. - If it reports
inspect(due to missing or invalid manifest), explain the problem clearly and do not runsyncorinit. - If it reports
legacylayout, explain the situation clearly, warning that migration/recovery is required. Preserve existing instruction contents and use explicit user-approved migration steps. Never run/superctx:syncor mutate files on a legacy/inspect state without explicit user consent.
- If
Action Cues (Before Action)
Announce these cues before starting the corresponding action or command. Replace <path> with the actual file path.
| Situation | Phrase |
|---|---|
| Updating instructions | Using SuperCtx to update the shared project context across connected agents. |
| Syncing/Checking health | Using SuperCtx to synchronize and verify project context. |
| Adding a local file | Using SuperCtx to connect <path> as a local context file. |
| Offering setup | Using SuperCtx to offer project context management setup. |
Result Confirmation Phrases (After Action)
Use these phrases to report successful execution when the command output is healthy.
| Situation | Phrase |
|---|---|
| Healthy result | All SuperCtx context links are healthy. |
Command Guide
/superctx:sync: Global setup, check, repair, and report command./superctx:add <path>: Tracks a local custom candidate file./using-superctx: Agent-facing reference skill.
Example Workflows
Workflow 1: Updating project instructions
- User: "Update the project instructions to include Y."
- Agent Action: Update
.ctx/SUPERCTX.md, then run/superctx:syncto verify that registered shims are still healthy.
Workflow 2: Checking context for a specific tool
- User: "What context does Codex have?"
- Agent Action: Inspect the registered Codex shim, then read
.ctx/SUPERCTX.mdas the canonical project context. If freshness matters, run/superctx:sync.
Workflow 3: Checking connection and health
- User: "Is everything connected?"
- Agent Action: Run
/superctx:sync.
Workflow 4: Repairing generated shims
- User: "The Codex instruction file is missing."
- Agent Action: Run
/superctx:sync. If the registered shim is missing or broken, explain the issue and offer to repair the shims. Once the user gives consent, run/superctx:syncinternally.
Workflow 5: Tracking a new instruction file
- User: "I added a new tool instruction file at .agy/ANTIGRAVITY.md."
- Agent Action: Explain that you can connect the new instruction file to the shared context hub, and offer to do so. Once the user gives consent, run
/superctx:add .agy/ANTIGRAVITY.mdinternally.
Workflow 6: Agent-guided setup in a candidate repo
- Context: Session starts; hook reports
candidate_repowith detected files.claude/CLAUDE.mdand.codex/AGENTS.md. - Agent Action: Present the detected files and make the consent-based offer (see Rule 8). Do not run
/superctx:syncyet. - User: "Yes, go ahead."
- Agent Action: Announce
Using SuperCtx to set up the shared project context for this repo., then run/superctx:sync. Report the result concisely.