US

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.zip

Installs 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.
198 chars✓ has a “when” trigger
Advanced

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

You give it
A user request about project context, agent instructions, tool configuration, or a `.ctx/` directory existing in the project root.
You get back
Updated project context, synchronized agent instructions, repaired shims, or a report on context health.

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.md is 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.

FilePolicy
.ctx/SUPERCTX.mdAuthor 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

  1. Stay quiet about internals. Do not explain hub/shim/backup mechanics unless the user asks. Use SuperCtx context naturally without announcing how it works.

  2. 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.

  3. 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.

  4. Avoid saying "sync context" unless actually running /superctx:sync.

  5. 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.

  6. Do NOT edit generated shims as the source of truth. Tool-specific files are thin generated pointers to .ctx/SUPERCTX.md.

  7. Use /superctx:sync for convergence. It handles initialization, health checks, and repairs.

  8. 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.

  9. 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.

Action Cues (Before Action)

Announce these cues before starting the corresponding action or command. Replace <path> with the actual file path.

SituationPhrase
Updating instructionsUsing SuperCtx to update the shared project context across connected agents.
Syncing/Checking healthUsing SuperCtx to synchronize and verify project context.
Adding a local fileUsing SuperCtx to connect <path> as a local context file.
Offering setupUsing 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.

SituationPhrase
Healthy resultAll 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:sync to 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.md as 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:sync internally.

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.md internally.

Workflow 6: Agent-guided setup in a candidate repo

  • Context: Session starts; hook reports candidate_repo with detected files .claude/CLAUDE.md and .codex/AGENTS.md.
  • Agent Action: Present the detected files and make the consent-based offer (see Rule 8). Do not run /superctx:sync yet.
  • 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.

SkillInstallsUpdatedSafetyDifficulty
using-superctx (this skill)01moNo flagsAdvanced
resolve-conflicts818moReviewIntermediate
claude-automation-recommender472moReviewBeginner
codex-skill125moReviewAdvanced

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.

81334

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.

47140

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.

12110

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.

1197

subagent-driven-development

davila7

Use when executing implementation plans with independent tasks in the current session

1493

validate-openapi-specs

epieczko

Validates and registers hook manifest files (YAML) in the Hook Registry for versioned hook management.

594

Search skills

Search the agent skills registry