git-ops

git-ops is a skill for Claude Code, Codex, GitHub Copilot from TheSethRose/Copilot-Skills. It costs 81 tokens per session (1,631 once invoked), scanned A, original, MIT.

A guide for carrying out Git tasks, where Git is the version-control system used to track code changes and collaborate safely.

In plain words
What is it for?
Creating and switching branches, committing and pushing code, merging or rebasing branches, resolving conflicts, and using separate worktrees.
Why use it?
It provides a consistent process for saving changes, managing parallel lines of work, and handling conflicts between them.

Skill for Claude CodeCodexGitHub Copilot

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.

agentmods
npx agentmods add skills/thesethrose/copilot-skills/git-ops
Any agent
npx skills add TheSethRose/Copilot-Skills --skill git-ops
Clone the repo
git clone --depth 1 https://github.com/TheSethRose/Copilot-Skills

Made for: Claude Code, Codex, GitHub Copilot.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thesethrose/copilot-skills/git-ops.svg)](https://agentmods.dev/skills/thesethrose/copilot-skills/git-ops)
Your own site
<a href="https://agentmods.dev/skills/thesethrose/copilot-skills/git-ops"><img src="https://agentmods.dev/badge/skills/thesethrose/copilot-skills/git-ops.svg" alt="Measured on agentmods" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,631 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00081 $0.01631
Opus 5 $0.00041 $0.00816
Sonnet 5 $0.00016 $0.00326
Haiku 4.5 $0.00008 $0.00163

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

Security

Grade A, and why

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 5d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/commit_helper.sh, scripts/conflict_resolver.sh, scripts/git_safe_exec.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.github/copilot-skills/operations/git-ops/SKILL.md · 237 lines

How it starts

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

Git Operations

Stage all changes, create conventional commits, manage branches safely, and resolve conflicts with systematic approaches.

When to Use

Automatically activate when the user:

  • Explicitly asks to commit and push ("commit and push", "push these changes")
  • Mentions saving work to remote ("save to github", "push to remote")
  • Needs to create or manage branches ("create a feature branch", "switch branches")
  • Encounters merge conflicts ("fix conflicts", "resolve merge")
  • Wants isolated workspace for parallel work ("create worktree for feature X")
  • Asks to finish development ("finish this branch", "complete development")
  • Mentions rebasing, pulling, or other git operations

What It Does

1. Commit and Push Workflow

  • Stages all changes
  • Generates conventional commit message (or uses provided message)
  • Pushes to remote branch (with -u for new branches)
  • Shows PR link for GitHub repos
  • Validates before each step

2. Branch Management

  • Create feature branches from latest main
  • List and manage active branches
  • Delete branches safely (with verification)
  • Switch between branches
  • Rename branches

3. Merge and Rebase

  • Merge branches with conflict detection
  • Rebase with safety checks
  • Handle merge conflicts systematically
  • Preview changes before merge/rebase

4. Isolated Worktrees

  • Create parallel workspaces for simultaneous development
  • Automatically verify .gitignore configuration
  • Setup development environment in worktree
  • List and manage active worktrees
  • Clean up worktrees after completion

5. Conflict Resolution

  • Identify conflicted files
  • Show conflict markers
  • Guide manual resolution
  • Verify resolution before commit

Approach

Smart Commit Message Generation

When user doesn't provide a message, analyze staged changes to generate conventional commit:

Steps:

  1. Analyze changed files (git diff --cached --name-only)
  2. Determine commit type:
    • feat: New feature (default)
    • fix: Bug fix
    • docs: Documentation changes
    • test: Test updates
    • chore: Dependencies, config changes
    • refactor: Code restructuring
  3. Extract scope from directory/component (first changed file path)
  4. Generate description in imperative mood ("Add", not "Added")
  5. Keep under 90 characters

Read the full file on GitHub · 237 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. 5d ago First seen · 237 lines · 81 tokens per session scan A be7ab0e781f5

Subscribe to this mod's changes

git-ops is a skill published in the GitHub repository TheSethRose/Copilot-Skills (3 stars, last pushed 8mo ago), licensed MIT. It adds 81 tokens to every session and 1,631 once invoked, about $0.0004 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-08-31.

Related

Other skills, from other repositories

trending-repos-discovery

Discover and analyze trending GitHub repositories from TrendShift and other sources — evaluate usefulness, extract learnings, and identify valuable skills/tools.

kevinnft/ai-agent-skills · 33 tokens

github-actions-trigger

Trigger GitHub Actions workflows from Claude Code. Auto-run tests, deploy, or validate when skills like run-pre-commit-checks complete.

mahmoud20138/Tradecraft · 32 tokens

offensive-parameter-pollution

HTTP parameter pollution (HPP) checklist: duplicate parameter injection, backend vs frontend parsing differences, WAF bypass via HPP, server-side vs client-side HPP, and practical exploitation patterns. Use when testing web applications for parameter handling flaws.

SnailSploit/Claude-Red · 0 tokens

seo

Optimize for search engine visibility and ranking. Use when asked to "improve SEO", "optimize for search", "fix meta tags", "add structured data", "sitemap optimization", or "search engine optimization".

addyosmani/web-quality-skills · 46 tokens

fiscaliste

Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…

romainsimon/paperasse · 302 tokens

semantic-kernel

Build AI-enabled .NET applications with Semantic Kernel using services, plugins, prompts, and function-calling patterns that remain testable and maintainable. USE FOR: adding AI-driven prompts, plugins, or orchestration to a .NET app; reviewing kernel construction, service registration, or plugin usage; building…

managedcode/dotnet-skills · 116 tokens