github-master

github-master is a skill for Claude Code from Miaoge-Ge/coding-agent-skills. It costs 85 tokens per session (1,111 once invoked), scanned A, original, MIT.

A guide to Git and GitHub, tools for tracking code changes and collaborating on repositories. It covers branches, conflicts, history recovery, pull requests, branch protection, and GitHub Actions, which automate checks and deployments.

In plain words
What is it for?
Use it to resolve merge conflicts, recover commits, manage branches and pull requests, configure CI/CD workflows, and rewrite local history carefully.
Why use it?
It helps prevent lost work and handle shared code history and collaboration problems safely.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the github-master plugin — 1 skill shipped together

Good fit Use it to resolve merge conflicts, recover commits, manage branches and pull requests, configure CI/CD workflows, and rewrite local history carefully.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/miaoge-ge/coding-agent-skills/github-master
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 Miaoge-Ge/coding-agent-skills --skill github-master
Clone the repo
git clone --depth 1 https://github.com/Miaoge-Ge/coding-agent-skills

Made for: Claude Code.

Or install github-master, the plugin that ships this one along with the rest of its 1 skill.

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 github-master

README.md
[![agentmods](https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/github-master/github.svg)](https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/github-master)
Your own site
<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/github-master"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/github-master/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 github-master

Your own site · 80×15
<a href="https://agentmods.dev/skills/miaoge-ge/coding-agent-skills/github-master"><img src="https://agentmods.dev/badge/skills/miaoge-ge/coding-agent-skills/github-master.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 85 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,111 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.00085 $0.01111
Opus 5.5 $0.00034 $0.00444
Sonnet 5.5 $0.00017 $0.00222
Haiku 4.5 $0.00009 $0.00111

Measured 1mo ago against content hash 14ca548722de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

github-master 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 1mo 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/github-master/skills/github-master/SKILL.md · 84 lines

How it starts

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

GitHub Master

Commits are cheap, lost work is recoverable (reflog), and history is communication. Rebase your own local work, never shared history; force-push only with --force-with-lease.

When to Use

  • Git commands or trouble: conflicts, detached HEAD, lost commits, undo/redo.
  • Repo management, PRs, issues, branch protection, CODEOWNERS.
  • Branching strategy or GitHub Actions CI/CD.
  • Recovering or rewriting history safely.

When NOT to Use

  • Writing application code → relevant language skill.
  • High-level system design → software-architect.
  • Shell logic inside workflows → bash-scripting-expert.

Core Principles

1. Core operations & recovery

  • Fluent with add/commit/push/pull/branch/merge/rebase, plus stash, cherry-pick, bisect, worktree.
  • Almost nothing is truly lost: git reflog finds detached/reset-away commits. Prefer git revert (safe, new commit) over reset --hard on anything shared.
  • Undo map: un-add → restore --staged; amend last (local) commit → commit --amend; move branch pointer → reset; recover → reflog + checkout -b.

2. Rewriting history — the safety rule

  • Rewrite only local, unpushed commits (interactive rebase to clean up). Never rewrite shared/main history.
  • If you must update a shared branch after rebase, use git push --force-with-lease (refuses if someone else pushed) — never plain --force.

3. Workflow & commits

  • GitHub Flow (main + short-lived feature branches) for most teams; Git Flow only for heavy release trains. Protect main with required reviews + status checks; use CODEOWNERS and PR/issue templates.
  • Conventional Commits (feat:, fix:, docs:) enable automated changelogs/SemVer. Small, focused PRs that explain why; link issues (Fixes #123). Know merge strategies: squash (clean linear history), merge commit (preserve context), rebase (linear, no merge commit).

4. GitHub Actions CI/CD

  • Workflows in .github/workflows/*.yml: triggers (on), jobs, steps, runners. Cache dependencies (actions/cache or setup-* cache), use matrix builds, pin action versions, and scope permissions: to least privilege. Secrets via encrypted Secrets/Variables — never echo them.

Read the full file on GitHub · 84 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. 1mo ago First seen · 84 lines · 85 tokens per session scan A 14ca548722de

Subscribe to this mod's changes

github-master is a skill published in the GitHub repository Miaoge-Ge/coding-agent-skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 85 tokens to every session and 1,111 once invoked, about $0.0003 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.