omc-gh-setup

omc-gh-setup is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 100 tokens per session (1,553 once invoked), scanned A, original, MIT.

A workflow for connecting the current project to GitHub, including detecting its repository and saving the required project settings.

In plain words
What is it for?
It helps set up GitHub integration, verify login and permissions, detect the repository from Git, and create the project configuration.
Why use it?
It avoids manual configuration and checks that the GitHub command-line tool is installed, authenticated, and authorized.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the oh-my-copilot plugin — 51 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server shipped together

Good fit It helps set up GitHub integration, verify login and permissions, detect the repository from Git, and create the project configuration.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/robinnorberg/oh-my-copilot/omc-gh-setup
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 RobinNorberg/oh-my-copilot --skill omc-gh-setup
Clone the repo
git clone --depth 1 https://github.com/RobinNorberg/oh-my-copilot

Made for: Claude Code.

Or install oh-my-copilot, the plugin that ships this one along with the rest of its 51 skills, 21 commands, 20 agents, 11 hooks, 1 MCP server.

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 omc-gh-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/omc-gh-setup/github.svg)](https://agentmods.dev/skills/robinnorberg/oh-my-copilot/omc-gh-setup)
Your own site
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/omc-gh-setup"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/omc-gh-setup/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 omc-gh-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/robinnorberg/oh-my-copilot/omc-gh-setup"><img src="https://agentmods.dev/badge/skills/robinnorberg/oh-my-copilot/omc-gh-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 100 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,553 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.00100 $0.01553
Opus 5 $0.00050 $0.00776
Sonnet 5 $0.00020 $0.00311
Haiku 4.5 $0.00010 $0.00155

Measured 5d ago against content hash 625b296342f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

omc-gh-setup 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 5d 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.

skills/omc-gh-setup/SKILL.md · 215 lines

How it starts

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

OMC GitHub Setup

Configure GitHub integration for the current project. Detects the owner and repo from the git remote URL, verifies gh authentication, and writes .omg/config.json with all required settings.

When this skill is invoked, immediately execute the workflow below. Do not only restate or summarize these instructions back to the user.

Trigger Patterns

  • "gh setup"
  • "github setup"
  • "configure github"
  • "connect to github"
  • "omc-gh-setup"

Prerequisites

Before running the main workflow, verify all prerequisites are present. If any fail, report the issue and stop with actionable remediation steps.

Check 1: gh CLI installed

gh --version 2>&1 | head -1

If this fails: tell the user to install the GitHub CLI from https://cli.github.com/.

Check 2: gh authentication status

gh auth status 2>&1

If this fails or shows "not logged in": tell the user to run gh auth login and retry.

Check 3: Token scopes

gh auth status 2>&1 | grep -i "token scopes"

The token must include the repo scope for full access. If scopes are insufficient, suggest: gh auth refresh -s repo.


Step 1: Detect GitHub Remote

Inspect the git remote URL to determine if the repo is hosted on GitHub.

git remote -v 2>&1

GitHub remote URLs follow these patterns:

  • https://github.com/{owner}/{repo}.git
  • https://github.com/{owner}/{repo}
  • [email protected]:{owner}/{repo}.git

Parse the remote URL to extract:

  • owner — the GitHub organization or user
  • repo — the repository name (strip trailing .git if present)

If no GitHub remote is detected, inform the user and ask whether they want to configure manually (prompt for owner, repo values).


Step 2: Probe Existing Configuration

Check if .omg/config.json already exists:

node -e "const f=require('fs');try{process.stdout.write(f.readFileSync('.omg/config.json','utf8'))}catch{console.log('NOT_FOUND')}"

If it exists and contains github settings, ask the user whether to update or keep the existing configuration (use AskUserQuestion).

Read the full file on GitHub · 215 lines

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. 5d ago First seen · 215 lines · 100 tokens per session scan A 625b296342f1

Subscribe to this mod's changes

omc-gh-setup is a skill published in the GitHub repository RobinNorberg/oh-my-copilot (5 stars, last pushed 3d ago), licensed MIT. It adds 100 tokens to every session and 1,553 once invoked, about $0.0005 per session on Opus 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-04.