omc-gh-setup

omc-gh-setup is a skill for Claude Code from RobinNorberg/oh-my-copilot. It costs 49 tokens per session (1,500 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 — 63 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 63 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 49 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,500 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.00049 $0.01500
Opus 5.5 $0.00020 $0.00600
Sonnet 5.5 $0.00010 $0.00300
Haiku 4.5 $0.00005 $0.00150

Measured 25d ago against content hash 8d8e150b67f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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 · 212 lines

How it starts

The opening of the file, as written. The whole thing — 212 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 · 212 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. 25d ago Changed · -3 lines · -51 tokens per session 8d8e150b67f6
  2. 1mo 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 yesterday), licensed MIT. It adds 49 tokens to every session and 1,500 once invoked, about $0.0002 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-04.

Related

Other skills, from other repositories

implement-ticket

Use when asked to implement, build, or pick up a ticket end to end — a Jira work item, GitHub Issue, or GitLab Issue — including "implement ABC-123", "implement gh issue #137", "work on issue 137", or "pick up this ticket". Critiques the request against the code, builds it in a throwaway git worktree, verifies it with…

Dawn-Technology/aicelerate · 116 tokens

project-session-manager

Worktree-first dev environment manager for issues, PRs, and features with optional tmux sessions.

Yeachan-Heo/oh-my-claudecode · 23 tokens

moai-workflow-worktree

Git worktree management for parallel SPEC development with isolated workspaces, automatic branch registration, and seamless MoAI-ADK integration. Use when setting up parallel development environments.

modu-ai/moai-adk · 41 tokens

close-task-commit-push-pr

Close the active backlog task (detected from branch name), commit all changes, push to remote, and open a pull request. Use when the user says "close task and ship it", "close task commit push pr", or invokes /close-task-commit-push-pr.

devoxx/DevoxxGenieIDEAPlugin · 64 tokens

start-task

Create a feature branch for a backlog task, switch to it, and start implementation. Use when the user says "start task-123", "work on task-123", "implement task-123", or invokes /start-task with a task ID.

devoxx/DevoxxGenieIDEAPlugin · 54 tokens

github-triage

Triage GitHub issues through a label-based state machine with interactive grilling sessions. Use when user wants to triage issues, review incoming bugs or feature requests, prepare issues for an AFK agent, or manage issue workflow.

sammcj/agentic-coding · 50 tokens