Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
josiahsiegel avatar

Git Master

  • 550 installs
  • 50 repo stars
  • Updated June 18, 2026
  • josiahsiegel/claude-plugin-marketplace

git-master is a Claude Code skill that gives coding agents complete Git command expertise with safety guardrails for developers who need autonomous commits, branching, merging, and pull-request workflows without leaving

About

git-master is a Git expertise skill from josiahsiegel/claude-plugin-marketplace that turns a coding agent into a full Git operator covering init through recovery. The skill documents every major command—status, branch, merge, rebase, cherry-pick, reflog, filter-repo—and pairs destructive operations with explicit warnings, backup-branch creation, and user confirmation prompts. It supports GitHub, Azure DevOps, and Bitbucket workflows including Git Flow, GitHub Flow, and trunk-based development, and always asks whether to auto-commit, stage only, or provide guidance. Listed on skills.sh with 490 installs and rank 7 in its marketplace, git-master fits developers who want agent-driven repository management with platform-aware best practices. Reach for git-master when a session needs branching strategy, conflict resolution, PR preparation, or recovery from a bad reset without guessing shell flags.

  • Full git command orchestration from natural language instructions
  • Safe branch creation, staging, committing and pushing
  • Automated pull request drafting and updates
  • Repository status awareness and conflict detection
  • Works across any local git repository the agent can access

Git Master by the numbers

  • 550 all-time installs (skills.sh)
  • +6 installs in the week ending Aug 2, 2026 (Skillselion tracking)
  • Ranked #103 of 733 Git & Pull Requests skills by installs in the Skillselion catalog
  • Data as of Aug 3, 2026 (Skillselion catalog sync)
npx skills add https://github.com/josiahsiegel/claude-plugin-marketplace --skill git-master

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs550
repo stars50
Last updatedJune 18, 2026
Repositoryjosiahsiegel/claude-plugin-marketplace

How do agents handle Git commits and pull requests safely?

So their coding agent can autonomously handle commits, branching, merging, and pull-request workflows without leaving the chat.

Who is it for?

Developers who want an AI agent to run Git and PR workflows with explicit safety checks before destructive commands.

Skip if: Repositories that forbid agent shell access or teams that require all commits and reviews to stay entirely manual outside the IDE.

When should I use this skill?

The user asks the agent to commit, branch, merge, rebase, open a PR, or recover from a Git mistake.

What you get

Executed Git commands, backup branches, resolved merges, formatted commit messages, and pull-request workflow steps.

  • git commits
  • backup branches
  • pull-request steps

By the numbers

  • 490 installs listed on skills.sh for git-master
  • Rank 7 in the josiahsiegel/claude-plugin-marketplace catalog

Files

SKILL.mdMarkdownGitHub ↗

Git Mastery - Complete Git Expertise

Comprehensive Git skill covering basic to advanced operations, with mandatory safety guardrails for destructive commands and platform-specific workflows.

Critical Guidelines

Windows File Path Requirements

When using Edit or Write tools on Windows, use backslashes (\) in file paths, NOT forward slashes (/):

  • WRONG: D:/repos/project/file.tsx
  • CORRECT: D:\repos\project\file.tsx

Applies to: Edit/Write file_path parameters and all file operations.

Documentation Guidelines

NEVER create new documentation files unless explicitly requested by the user. Prefer updating existing README.md files. Keep documentation concise, direct, and professional.

TL;DR Safety First

Before ANY destructive operation:

# ALWAYS check status first
git status
git log --oneline -10

# For risky operations, create a safety branch
git branch backup-$(date +%Y%m%d-%H%M%S)

# Remember: git reflog is your safety net (90 days default)
git reflog

User Preference Check (ALWAYS ASK at start of any Git task):

"Would you like me to: 1. Create commits automatically with appropriate messages 2. Stage changes only (you handle commits manually) 3. Just provide guidance (no automatic operations)"

Respect this choice throughout the session.

When to Use This Skill

Activate for ANY Git command or operation including:

  • Repository initialization, cloning, configuration
  • Branch management and strategies
  • Commit workflows and best practices
  • Merge strategies and conflict resolution
  • Rebase operations (interactive and non-interactive)
  • History rewriting (filter-repo, reset, revert)
  • Recovery operations (reflog, fsck)
  • Dangerous operations (force push, hard reset)
  • Platform-specific workflows (GitHub, Azure DevOps, Bitbucket, GitLab)
  • Advanced features (submodules, worktrees, hooks)
  • Performance optimization, large files (LFS)
  • Cross-platform compatibility (Windows/Linux/macOS)

Key indicators: user mentions Git, GitHub, GitLab, Bitbucket, Azure DevOps, version control, commit/push/pull/merge/rebase, branch management, history modification, or recovery scenarios.

Core Principles

1. Safety Guardrails for Destructive Operations

Before ANY destructive operation (reset --hard, force push, filter-repo, etc.):

1. Always warn the user explicitly 2. Explain the risks clearly 3. Ask for confirmation 4. Suggest creating a backup branch first 5. Provide recovery instructions

See references/dangerous-operations.md for full safety protocols and confirmation scripts.

2. Commit Creation Policy

ALWAYS ask the user preference at the start of any Git task (automatic / stage-only / guidance-only). Respect this choice throughout.

3. Platform Awareness

Git behavior differs across platforms and hosting providers:

  • Windows (Git Bash/PowerShell): Line endings (core.autocrlf), path separators, case sensitivity, Windows Credential Manager
  • Linux/macOS: Case-sensitive filesystems, SSH key management, permissions
  • Hosting platforms: GitHub (PRs, Actions, gh CLI), Azure DevOps (PRs, Pipelines, policies), Bitbucket (PRs, Pipelines, Jira), GitLab (MRs, CI/CD)

See references/platform-workflows.md for hosting-specific commands and references/cross-platform.md for Windows/Linux/macOS handling.

Reference Map

This SKILL.md is a lean orchestrator. Detailed command catalogs and procedures live in references/:

ReferenceContents
references/basic-operations.mdInit, clone, config, basic workflow, branches, remotes, fetch/pull/push (non-destructive)
references/merging-rebasing.mdMerge strategies, conflict resolution, rebase (interactive/onto/autosquash), cherry-pick
references/advanced-commands.mdStash (incl. Git 2.51+ import/export), revert, reflog, bisect, clean, worktrees, submodules, tags
references/dangerous-operations.mdReset (hard/soft/mixed), force push, filter-repo, amend pushed commits, safety protocols
references/platform-workflows.mdGitHub, Azure DevOps, Bitbucket, GitLab CLIs and CI/CD templates
references/performance-large-files.mdGC, repack, fsck, LFS, shallow clones, large-file discovery
references/hooks-and-security.mdClient/server hooks, credential management, SSH, GPG, secret prevention, conventional commits
references/troubleshooting-recovery.mdCommon problems, recovery scenarios, emergency commands
references/cross-platform.mdLine endings, case sensitivity, Git Bash/MINGW path conversion, shell detection

Quick Command Index

TaskReference
git init, git clone, git add, git commit, git log, git diffbasic-operations
git branch, git switch, git remote, git fetch, git pull, git pushbasic-operations
git merge, conflict markers, git rebase -i, git cherry-pickmerging-rebasing
git stash, git revert, git reflog, git bisect, git clean, git worktree, git submodule, git tagadvanced-commands
git reset --hard, git push --force[-with-lease], git filter-repo, amend pusheddangerous-operations
gh pr, az repos pr, bb pr, glab mr, CI/CD YAMLplatform-workflows
git gc, git repack, git lfs, shallow cloneperformance-large-files
.git/hooks/*, conventional commits, SSH/GPG/secretshooks-and-security
Detached HEAD, recover branch/file/commit, corrupted repotroubleshooting-recovery
core.autocrlf, core.ignorecase, MSYS_NO_PATHCONV, cygpath, $MSYSTEMcross-platform

Success Criteria

A Git workflow using this skill should:

1. ALWAYS ask user preference for automatic commits vs manual 2. ALWAYS warn before destructive operations 3. ALWAYS create backup branches before risky operations 4. ALWAYS explain recovery procedures 5. Use appropriate branch strategy for the project 6. Write meaningful commit messages 7. Keep commit history clean and linear 8. Never commit secrets or large binary files 9. Test code before committing 10. Know how to recover from any mistake

Closing Note

Combined with the reference files and safety guardrails, this skill provides the knowledge to handle ANY Git operation safely and effectively. Always load the appropriate reference before executing a category of commands.

Related skills

How it compares

Pick git-master over generic shell guidance when you need structured PR workflows, platform-specific Git hosting rules, and mandatory guardrails on dangerous commands.

FAQ

What does git-master cover?

git-master is a complete Git expertise skill spanning basic commands through advanced rebase, cherry-pick, filter-repo, and reflog recovery. It adds safety guardrails for destructive operations and supports GitHub, Azure DevOps, and Bitbucket collaboration workflows.

Does git-master auto-commit without asking?

git-master always asks first whether to auto-commit, stage only, or provide guidance. Destructive commands like git reset --hard include warnings, backup-branch creation, and explicit confirmation before execution.

Git & Pull Requestsgitintegrations

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.