oc-bug-check

oc-bug-check is a skill for Claude Code from asfbay-bit/opchain-skills. It costs 133 tokens per session (9,473 once invoked), scanned A, original, Apache-2.0.

A fast quality gate that checks changed code before it is committed to version control. It checks types, lint rules, tests, common bad patterns, exposed secrets, the build, and vulnerable dependencies.

In plain words
What is it for?
Use it before committing changes, run it on a whole codebase, apply fixable formatting or lint changes, and block a commit when a required check fails.
Why use it?
It catches common problems before they enter the project's history, while reporting failures separately from non-blocking warnings.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event.

Part of the opchain plugin — 36 skills, 16 commands, 4 hooks shipped together

Good fit Use it before committing changes, run it on a whole codebase, apply fixable formatting or lint changes, and block a commit when a required check fails.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/asfbay-bit/opchain-skills/oc-bug-check
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add asfbay-bit/opchain-skills --skill oc-bug-check
Clone the repo
git clone --depth 1 https://github.com/asfbay-bit/opchain-skills

Made for: Claude Code.

Or install opchain, the plugin that ships this one along with the rest of its 36 skills, 16 commands, 4 hooks.

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

agentmods badge for oc-bug-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-bug-check/github.svg)](https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-bug-check)
Your own site
<a href="https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-bug-check"><img src="https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-bug-check/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.

agentmods 80×15 button for oc-bug-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-bug-check"><img src="https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-bug-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.09473
Opus 5.5 $0.00053 $0.03789
Sonnet 5.5 $0.00027 $0.01895
Haiku 4.5 $0.00013 $0.00947

Measured 2d ago against content hash 850ad3bbf49f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oc-bug-check 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 2d 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.

plugins/opchain/skills/oc-bug-check/SKILL.md · 911 lines

How it starts

The opening of the file, as written. The whole thing — 911 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Bug Check

On first invocation, read references/orchestrator.md and follow its welcome protocol.

Pre-commit QA gate. Runtime depends on the configured checks and project size. Catches the bugs, type errors, test failures, and anti-patterns that shouldn't make it into a commit — before they cost real debugging time downstream.

This is NOT oc-code-auditor. Code-auditor runs a deep tri-agent sweep (Auditor → Fixer → Verifier) that takes 30+ minutes and produces a graded report. Bug-check is the metal detector at the door — fast and blunt: the gate verdict is PASS, FAIL, or UNSUPPORTED (a required check cannot run — never a pass). Individual checks may emit advisory WARN notes (e.g. "no test suite detected") that ride on a PASS as a count; in strict mode they become FAIL. Only PASS clears the commit.

/oc-bugcheck — Command Reference

BUG CHECK COMMANDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  GATE
  /oc-bugcheck              Run all checks on staged/changed files
  /oc-bugcheck run          Same as /oc-bugcheck
  /oc-bugcheck run --all    Run on entire codebase (not just changes)
  /oc-bugcheck fix          Auto-fix what's fixable (lint, formatting)

  CONFIG
  /oc-bugcheck config       Show or edit check configuration
  /oc-bugcheck config strict    Enable strict mode (zero warnings allowed)
  /oc-bugcheck config lenient   Allow warnings, block only on errors

  REPORT
  /oc-bugcheck report       Show last run results from checkpoint
  /oc-bugcheck history      Show pass/fail trend from checkpoint

  OVERRIDE
  /oc-bugcheck bypass       Skip gate this once (logs the bypass in checkpoint)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Runs automatically before /oc-commit and /oc-git-sync.

--all, strict, and lenient are arguments to the declared run and config verbs, not separate commands.


Session Persistence (Checkpoint Protocol)

The shared checkpoint schema, write rules and resume protocol live in references/checkpoint-protocol.md, bundled with this skill. This section adds only what is specific to oc-bug-check.

Read the full file on GitHub · 911 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2d ago Changed 850ad3bbf49f
  2. 24d ago Changed ec0e7f39e94e
  3. 27d ago Changed 84760f2c5c7f
  4. 1mo ago Changed · +4 lines 6242e51b7c83
  5. 1mo ago Changed · +37 lines 0c3bc2a5b023
  6. 2mo ago Changed 6d63144afca5
  7. 2mo ago Changed 6b1f213af6be
  8. 2mo ago Changed a7242f6ecf45
  9. 2mo ago Changed · +106 lines · -2 tokens per session 5c8a2869c454
  10. 3mo ago First seen · 764 lines · 135 tokens per session scan A fcbe516b19af

Subscribe to this mod's changes

oc-bug-check is a skill published in the GitHub repository asfbay-bit/opchain-skills (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 133 tokens to every session and 9,473 once invoked, about $0.0005 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-08-31.

Related

oc-bug-check compared with skills from other repositories

oc-bug-check next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oc-bug-checkasfbay-bit/opchain-skillsSkill03d agoApache-2.0A133Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
systematic-debuggingobra/superpowersSkill332k6d agoMITA21Claude Code