Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add asfbay-bit/opchain-skills/plugin install opchainWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/asfbay-bit/opchain-skills/oc-enroll)<a href="https://agentmods.dev/commands/asfbay-bit/opchain-skills/oc-enroll"><img src="https://agentmods.dev/badge/commands/asfbay-bit/opchain-skills/oc-enroll/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/asfbay-bit/opchain-skills/oc-enroll"><img src="https://agentmods.dev/badge/commands/asfbay-bit/opchain-skills/oc-enroll.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00011 | $0.01103 |
| Opus 5.5 | $0.00004 | $0.00441 |
| Sonnet 5.5 | $0.00002 | $0.00221 |
| Haiku 4.5 | $0.00001 | $0.00110 |
Grade A, and why
oc-enroll scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 22d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Implements the oc-bug-check enrollment contract. This is repository setup,
not a next-skill handoff. Installing the plugin installs no gate: until this
command succeeds, no hook checks anything in this repository. Resolve the
current repository root, then run:
node "${CLAUDE_PLUGIN_ROOT}/scripts/install-git-drivers.mjs" --enroll --repo "$(git rev-parse --show-toplevel)"
This explicit enrollment copies the packaged verifier and receipt runtime beneath
the repository's Git common directory, installs three managed hooks, and creates
.opchain/ only after setup succeeds:
pre-commit— reruns the declared checks on the exact staged candidate and writes the receipt that is the final commit decision.post-commit— runs even under--no-verify. When HEAD's tree has no PASS receipt it writes.git/opchain/bypasses/v1/<sha>.json, appends to the bug-check checkpoint'sskill_state.bypasses, and prints a warning. The reason comes from the commit'sOpchain-Bypass:trailer.pre-push— refuses to push any commit that has neither a PASS receipt nor anOpchain-Bypass:trailer, listing the commits. Commits a rebase or cherry-pick rewrote are excused.OPCHAIN_PUSH_BYPASS=1 git pushis the loud escape hatch; use it once for history that predates enrollment.
Enrollment then writes the managed opchain section of the repo-root AGENTS.md
for agents that do not read CLAUDE.md (Codex, Cursor, Copilot): read
.checkpoints/ first, pick the matching skill, the commit-gate rules above, and
vendored oc-* skills change only through the updater. It names no version
(.opchain-install.json does), only the text between its markers changes, and
/oc-update refreshes it. It is skipped when AGENTS.md is a symlink or has a
line reading <!-- opchain:agents-section off -->, and with --no-agents-md.
Offer to commit AGENTS.md.
Enrollment also writes *.lock and .*.tmp into .checkpoints/.gitignore.
Every checkpoint write leaves a zero-byte <skill>.checkpoint.json.lock beside
the tracked checkpoints, and without the rule git add -A commits it. Only
missing lines are appended, the repo-root .gitignore is not touched, and the
checkpoint CLI writes the same two lines itself in a repository that never
enrolled. Offer to commit .checkpoints/.gitignore.
If setup exits nonzero or prints BLOCKED, stop. Never overwrite an existing
foreign hook. Show the user the exact manual integration snippet emitted by the
installer and do not claim commit enforcement until their hook manager runs it.
Other modes, with the user's arguments in $ARGUMENTS:
--doctor— installs nothing. Prints PASS/FAIL per item: enrollment, runtime, each hook, the.bugcheck.jsonverificationblock, whether every declared command resolves (node_modules/.binor PATH,npm runscripts exist), and whethernode_modules/is a real install rather than a.vite-only cache. It also prints a WARN, which does not fail the run, when.checkpoints/*.lockis not ignored, is ignored only by this clone's.git/info/excludeor a global excludes file, or when a lock file is already tracked (the fix isgit rm --cached -- '.checkpoints/*.lock'). Run it when a gate FAILs with exit 127 or on a fresh worktree.--ci [--force]— enrolls, vendors the verifier into.opchain/runtime/, and writes.github/workflows/opchain-evidence.ymlso every pull request runsverify-candidate runand theevidence:prgate without the plugin. Never overwrites an existing workflow without--force. Tell the user to commit both.--claude-md— creates or updates the managed opchain section ofCLAUDE.mdnaming this repository's verbs (/oc-commit,/oc-pror/oc-git-sync,/oc-deploy,/oc-bugcheck,/oc-enroll) and the rule that commits go through the gate, PRs carry the docs packet, and--no-verifynever happens without/oc-bugcheck bypass.--agents-md: creates or updates the managed opchain section ofAGENTS.mdwithout enrolling. Enrollment already writes it (see above); this refreshes it by hand, and adds the gate rules only once the repository is enrolled. Both flags can be combined:--claude-md --agents-md.--no-agents-md: enroll without writing theAGENTS.mdsection.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 22d ago Changed · +11 lines 062f017a655c
- 24d ago Changed · +14 lines cc29491c2237
- 1mo ago Changed · +30 lines 50d8d562b5f0
- 2mo ago First seen · 19 lines · 11 tokens per session scan A 87a4bd201441
oc-enroll is a command published in the GitHub repository asfbay-bit/opchain-skills (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 11 tokens to every session and 1,103 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-14.
oc-enroll compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| oc-enrollasfbay-bit/opchain-skills | Command | 0 | 3d ago | Apache-2.0 | A | 11 | Claude Code |
| session-reportdamusix/atomic-claude | Command | 117 | 2d ago | MIT | A | 31 | Claude Code |
| standupvvedantb/eva | Command | 100 | today | MIT | A | 0 | Claude Code |
| gitazrtydxb/procoder | Command | 212 | yesterday | Apache-2.0 | A | 20 | Claude Code |
| pr-riskkumaran-is/claude-code-onboarding | Command | 37 | 3d ago | MIT | A | 0 | Claude Code |
| commitechoVic/blade-code | Command | 181 | 18d ago | MIT | A | 8 | Claude Code |
| triage-githubdatacore-one/datacore | Command | 5 | yesterday | MIT | A | 10 | Claude Code |