using-superctx
Centrally manage and sync agent instructions and project context using the SuperCtx hub-and-shim model.
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.Key capabilities
- →Interact with a project-local SuperCtx context hub.
- →Update the canonical project context in `.ctx/SUPERCTX.md`.
- →Synchronize and verify project context across agents.
- →Repair broken or missing generated shims.
- →Track local custom candidate files as context.
- →Guide agent-guided setup for new repositories.
How it works
The skill manages a central project-local context layer using a hub-and-shim model, where `.ctx/SUPERCTX.md` is the canonical hub and tool-specific instruction files are generated shims.
Inputs & outputs
When to use using-superctx
- →Updating shared project context
- →Syncing agent instructions
- →Resolving broken shims
- →Checking project configuration health
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.
When not to use it
- →When the user is a normal user and not an agent.
- →When the task involves reading, importing, or editing `.ctx/sources/**` as active context.
- →When the task involves editing generated shims as the source of truth.
Limitations
- →It does not allow editing generated shims as the source of truth.
- →It does not use `.ctx/sources/**` as active context.
- →It requires explicit user consent for setup or mutation of files in candidate or legacy repositories.
How it compares
This skill centralizes project context management through a hub, ensuring consistency across multiple AI tools, unlike manually managing individual instruction files.
Compared to similar skills
using-superctx side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| using-superctx (this skill) | 0 | 1mo | No flags | Advanced |
| resolve-conflicts | 81 | 8mo | Review | Intermediate |
| claude-automation-recommender | 47 | 2mo | Review | Beginner |
| codex-skill | 12 | 5mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
resolve-conflicts
antinomyhq
Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.
claude-automation-recommender
anthropics
Analyze a codebase and recommend Claude Code automations (hooks, subagents, skills, plugins, MCP servers). Use when user asks for automation recommendations, wants to optimize their Claude Code setup, mentions improving Claude Code workflows, asks how to first set up Claude Code for a project, or wants to know what Claude Code features they should use.
codex-skill
feiskyer
Use when user asks to leverage codex, gpt-5, or gpt-5.1 to implement something (usually implement a plan or feature designed by Claude). Provides non-interactive automation mode for hands-off task execution without approval prompts.
git-advanced-workflows
wshobson
Master advanced Git workflows including rebasing, cherry-picking, bisect, worktrees, and reflog to maintain clean history and recover from any situation. Use when managing complex Git histories, collaborating on feature branches, or troubleshooting repository issues.
subagent-driven-development
davila7
Use when executing implementation plans with independent tasks in the current session
validate-openapi-specs
epieczko
Validates and registers hook manifest files (YAML) in the Hook Registry for versioned hook management.