Paste this into your coding agent with your project open. It checks your installation and installs the updater for you.
Read the upgrade prompt
Upgrade my existing Opchain installation to the latest published release, including oc-update. I’m on 1.9 or earlier, so that command may not exist yet.
Check this project’s installation and my agent host first. If Opchain is managed as a global plugin, use the host’s supported plugin update flow. Do not create a duplicate repo installation or overwrite plugin caches. If this is an Opchain source checkout, explain that syncing local files does not fetch a public release and confirm the source update path with me.
For a repo installation, verify Node.js 22.13 or newer and check https://opchain.dev/opchain-update/latest.json. If 2.0 or newer is not published, stop and tell me. Otherwise, download https://opchain.dev/update.mjs completely to a temporary file. Run it from my project root with --check first, then run the update for the detected installation. Do not copy SKILL.md files by themselves.
Preserve my checkpoints, tracking consent, usage history and unrelated skills. Use the updater’s backup of replaced Opchain files and report its location. Keep learning and hooks at their current settings.
Verify the installed version and complete files afterward. Report any failure or tracking warning accurately. Tell me if I need a new agent session, then confirm that /oc-update check works. Do not commit or deploy my project.
Each skill includes a SKILL.md file and its supporting files. Install complete folders so references and runtime commands work. The local runtime needs Node.js 22.13 or newer.
01
Claude Code CLI
Need the CLI first?Install Claude Code, then pick a path. The plugin is the one to use if you can — it carries the skills and the hooks that enforce them. The zip carries the skills only.
Plugin recommended
Two commands. Adds the 36 skills, sixteen registered slash commands, and three hooks: a commit gate that refuses git commit unless the code being committed passed bug-check, pipeline state at session start, and a pointer to the next skill when one finishes.
Drop the skills into .claude/skills/; Claude Code discovers them next session. Use this where a plugin install isn't an option. Note what it does not include: none of the hooks, so nothing mechanically enforces a gate — the skills describe the contract and you follow it.
Verify it worked. In that session, type/oc-discover. If oc-app-architect starts an interview ("Who's the primary user? Sync or async? …"), you're set. If not, re-check that the files landed in.claude/skills/<name>/SKILL.md.
Keep each skill’s supporting files with it. Local runtime commands need filesystem access and Node.js 22.13 or newer; loading instructions alone does not run those commands.
Start a new conversation and name the skill ("use oc-app-architect — I have an app idea") or use its slash command (/oc-discover). Naming it explicitly is markedly more reliable than hoping the description matches.
03
Team (check into git)
Commit the skills directory so every teammate uses the same prompt pipeline.
Codex — and any MCP-aware agent (Claude Desktop, Cursor, Windsurf) — reaches opchain two ways, over theModel Context Protocolor as drop-in skills. The drop-in path is the closest match to Claude Code: Codex Agent Skills auto-trigger by description, so the pipeline fires on its own. The hosted MCP endpoint needs no install, but relies on the model choosing to call opchain's tools.
Drop the skills in (recommended) — Codex Agent Skills use the same SKILL.md format and auto-trigger by description — the same unenforced, name-it-yourself matching Claude Code skills rely on:
Verify it worked. Run codexand ask "build me an app" — a drop-in skill match (or, over the hosted server, opchain's route tool) hands you to oc-app-architect's discovery interview. Note: Codex doesn't surface MCP prompts, so opchain's /oc-* verbs aren't slash commands in Codex — just describe what you want ("build me an app", "audit this") and the matching skill triggers.
upgrade
Update an existing install
Already running opchain in a project? Replace the skills in place. Your .checkpoints/ directory livesoutside.claude/skills/, so every skill's session state — phase, step, next actions, decisions — is preserved across the swap. The new skills pick up the existing checkpoints on their next invocation.
Already on 1.x? Upgrade to 2.0
Three new skills. The full set now includes 36 skills: oc-update, Hindsight and Evolve join the existing 33.
Complete files, one update. The updater replaces Opchain skill folders and their runtime files, backs up replaced files, and preserves checkpoints, telemetry consent and unrelated skills.
Learning starts off. Enable it separately for this project. Lessons and rules need review before use. Live evaluations send the selected tasks to your configured provider.
Plugin installations use the plugin manager. The repo updater does not change a global plugin installation or install hooks.
/oc-update check
/oc-update
If 1.x does not recognize /oc-update, use the bootstrap installer below once. Run it from your project root with Node.js 22.13 or newer. For Codex, use --target=codex.
Claude Code CLI
Run from your project root. The installer checks the bundle, backs up replaced Opchain files and installs the current release.
Verify the installation. Start a new agent session and run/oc-update check. It should report the installed release as current. Your saved checkpoints remain available.
Review the changed Opchain files and install receipt before committing the update.
Check which version you're on
/oc-update check
Checks the installed skills against the current release without changing files.
Get notified automatically
Skills don't phone home, so a stale install stays stale silently. This Claude Code hook checks at session start: it reads theversion from your installed skills' frontmatter, compares it against the live catalog'scatalogVersion atopchain.dev/skills.json, and drops a one-line notice into the session when a newer release is out. Merge it into ~/.claude/settings.json (or a project's .claude/settings.json) — if you already have a hooks block, add theSessionStart entry to it rather than pasting the whole object.
It checks, it never installs — releases can carry breaking changes (see the changelog), so the swap stays a deliberate step: run the upgrade command above when you see the notice. When you're current, offline, or opchain isn't installed, the hook prints nothing and gets out of the way. It fires only onstartup — not on resume or compact — and gives the network three seconds before giving up.
Configuration
.claude/skills/
Where Claude Code looks for skills.
.checkpoints/
Skills write JSON session state here. Add to .gitignore.
orchestrator.md
Shared welcome protocol + pipeline map. Bundled with every skill.
.agents/skills/
Where Codex looks for drop-in skills — same SKILL.md format as Claude Code.
~/.codex/config.toml
Register the hosted MCP server under [mcp_servers.opchain].
Session persistence — JSON checkpoints in .checkpoints/; pick up exactly where you left off, next chat or next week
Documented handoffs — each skill names the one that follows it, so you always know what to run next; with the plugin installed, the commit gate is enforced and finished skills suggest the next step
Natural-language triggers — type "build me an app" or "audit this before Friday" and opchain routes you to the right skill
Want a preview first? The demo walks you through fifteen end-to-end opchain examples.
what next
Your first 30 minutes
Skills are inert until you trigger one. Here are three starter paths — pick whichever matches the moment.