oc-git-ops

oc-git-ops is a skill for Claude Code from asfbay-bit/opchain-skills. It costs 184 tokens per session (9,992 once invoked), scanned A, original, Apache-2.0.

A workflow for managing Git repositories, the systems that record code history and collaboration. It covers branches, commits, pull requests, synchronization, pushes, and release tags.

In plain words
What is it for?
Use it to initialize or inspect a repository, create branches, commit changes, prepare pull requests, push and synchronize work, and tag releases.
Why use it?
It turns code changes into an organized, reviewable path from a working folder to a shared repository and a tagged release.

Skill for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: mentions CLAUDE.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is node scripts/checkpoint.mjs handoff oc-docs-forge --policy pr-docs-v1 --verdict PASS --scope "<files the PR touches>" --evidence "<why no README/CHANGELOG/docs/.

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

Good fit Use it to initialize or inspect a repository, create branches, commit changes, prepare pull requests, push and synchronize work, and tag releases.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/asfbay-bit/opchain-skills
agentmods
npx agentmods add skills/asfbay-bit/opchain-skills/oc-git-ops

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-git-ops

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/asfbay-bit/opchain-skills/oc-git-ops"><img src="https://agentmods.dev/badge/skills/asfbay-bit/opchain-skills/oc-git-ops.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 184 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,992 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.00184 $0.09992
Opus 5.5 $0.00074 $0.03997
Sonnet 5.5 $0.00037 $0.01998
Haiku 4.5 $0.00018 $0.00999

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

Security

Grade A, and why

oc-git-ops 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-git-ops/SKILL.md · 853 lines

How it starts

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

Git Ops

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

Move code from Claude's workspace to a git repository with proper branch management, commit structure, and PR descriptions. This is the bridge between "Claude built it" and "it's in version control."

/oc-git — Command Reference

When the user types /oc-git, display this menu:

GIT OPS COMMANDS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

  WORKFLOW
  /oc-commit           Stage + commit with structured message
  /oc-pr               Generate PR description from commits/checkpoint
  /oc-push             Push branch to remote
  /oc-git-sync         Full workflow: branch (from convention) → commit → push → PR
  /oc-merge <pr>       Merge a reviewed PR: checks green, head pinned, the repo's merge method
  /oc-git-release      Tag a merged release + push the tag (closes the ledger)

  UTILITIES
  /checkpoint          Show checkpoint status

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  Type any command to begin. /oc-git to see this again.

Plain requests, not slash commands: "set up the repo" (clone and prepare the workspace, Phase 0), "git status" (branch, staged changes, remote state and diff since the last commit), and "show / set the git conventions" (branch and commit naming).


How This Skill Works

CLAUDE WORKSPACE                    GIT REPO
<workspace>/project/                github.com/user/project
                                    
  Built files          ──────►      Feature branch
  + checkpoint data    ──────►      Structured commits
  + audit report       ──────►      PR description

The typical flow:

  1. Clone the user's repo (or confirm it's already cloned)
  2. Create a feature branch following project conventions
  3. Copy/move built files into the repo working tree
  4. Stage each intended commit and run oc-bug-check; an enrolled Git hook verifies the exact staged candidate and its immutable PASS receipt at each commit
  5. Make structured commits (one per logical unit)
  6. Push the branch
  7. Run the pre-PR gate: oc-docs-forge (PR docs packet) → oc-repo-ops (readiness check); docs edits the packet makes are committed (through the bug-check gate) and pushed before the readiness check
  8. Generate a PR description from the checkpoint + commit log + docs packet

Read the full file on GitHub · 853 lines

Files

What ships with it

3 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 1474a0403b54
  2. 22d ago Changed · +11 lines 566e4379447f
  3. 24d ago Changed 64b1db71acd8
  4. 27d ago Changed 02b7ab080cea
  5. 1mo ago Changed · +8 lines fbce5cecc1e1
  6. 1mo ago Changed · +52 lines · +22 tokens per session c59454f2d383
  7. 1mo ago Changed · +29 lines d044b12fcfc7
  8. 2mo ago Changed c9c76bca883a
  9. 2mo ago Changed fa83ace5d052
  10. 2mo ago First seen · 753 lines · 162 tokens per session scan A bdecfafe8b8b

Subscribe to this mod's changes

oc-git-ops is a skill published in the GitHub repository asfbay-bit/opchain-skills (0 stars, last pushed 3d ago), licensed Apache-2.0. It adds 184 tokens to every session and 9,992 once invoked, about $0.0007 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-git-ops compared with skills from other repositories

oc-git-ops next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oc-git-opsasfbay-bit/opchain-skillsSkill03d agoApache-2.0A184Claude Code
github-automationruvnet/rufloSkill83kyesterdayMITA61Claude Code
write-changelogDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA24Claude Code
changelogDonchitos/Claude-Code-Game-StudiosSkill42k24d agoMITA22Claude Code
comet-safe-deliveryrpamis/cometSkill3.3kyesterdayMITA78Claude Code, Codex
git-pushyunshu0909/yunshu_skillshubSkill79513d agoMITA223Claude Code, Codex
development-workflowathola/claude-night-marketSkill358yesterdayMITA20Claude Code