/git-master:git-masterfrom git-master
Provides expert guidance on all Git operations, including branch management, conflict resolution, history rewriting, reflog recovery, and platform-specific workflows (GitHub, Azure DevOps, Bitbucket). Enforces safety guardrails and user preference for automatic vs manual commits.
Ships in git-master. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Comprehensive Git skill covering basic to advanced operations, with mandatory safety guardrails for destructive commands and platform-specific workflows.
When using Edit or Write tools on Windows, use backslashes (\) in file paths, NOT forward slashes (/):
D:/repos/project/file.tsxD:\repos\project\file.tsxApplies to: Edit/Write file_path parameters and all file operations.
NEVER create new documentation files unless explicitly requested by the user. Prefer updating existing README.md files. Keep documentation concise, direct, and professional.
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:
Respect this choice throughout the session.
Activate for ANY Git command or operation including:
Key indicators: user mentions Git, GitHub, GitLab, Bitbucket, Azure DevOps, version control, commit/push/pull/merge/rebase, branch management, history modification, or recovery scenarios.
Before ANY destructive operation (reset --hard, force push, filter-repo, etc.):
See references/dangerous-operations.md for full safety protocols and confirmation scripts.
ALWAYS ask the user preference at the start of any Git task (automatic / stage-only / guidance-only). Respect this choice throughout.
Git behavior differs across platforms and hosting providers:
core.autocrlf), path separators, case sensitivity, Windows Credential Managergh 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.
This SKILL.md is a lean orchestrator. Detailed command catalogs and procedures live in references/:
| Reference | Contents |
|---|---|
references/basic-operations.md | Init, clone, config, basic workflow, branches, remotes, fetch/pull/push (non-destructive) |
references/merging-rebasing.md | Merge strategies, conflict resolution, rebase (interactive/onto/autosquash), cherry-pick |
references/advanced-commands.md | Stash (incl. Git 2.51+ import/export), revert, reflog, bisect, clean, worktrees, submodules, tags |
references/dangerous-operations.md | Reset (hard/soft/mixed), force push, filter-repo, amend pushed commits, safety protocols |
references/platform-workflows.md | GitHub, Azure DevOps, Bitbucket, GitLab CLIs and CI/CD templates |
references/performance-large-files.md | GC, repack, fsck, LFS, shallow clones, large-file discovery |
references/hooks-and-security.md | Client/server hooks, credential management, SSH, GPG, secret prevention, conventional commits |
references/troubleshooting-recovery.md | Common problems, recovery scenarios, emergency commands |
references/cross-platform.md | Line endings, case sensitivity, Git Bash/MINGW path conversion, shell detection |
| Task | Reference |
|---|---|
git init, git clone, git add, git commit, git log, git diff | basic-operations |
git branch, git switch, git remote, git fetch, git pull, git push | basic-operations |
git merge, conflict markers, git rebase -i, git cherry-pick | merging-rebasing |
git stash, git revert, git reflog, git bisect, git clean, git worktree, git submodule, git tag | advanced-commands |
git reset --hard, git push --force[-with-lease], git filter-repo, amend pushed | dangerous-operations |
gh pr, az repos pr, bb pr, glab mr, CI/CD YAML | platform-workflows |
git gc, git repack, git lfs, shallow clone | performance-large-files |
.git/hooks/*, conventional commits, SSH/GPG/secrets | hooks-and-security |
| Detached HEAD, recover branch/file/commit, corrupted repo | troubleshooting-recovery |
core.autocrlf, core.ignorecase, MSYS_NO_PATHCONV, cygpath, $MSYSTEM | cross-platform |
A Git workflow using this skill should:
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.
references/advanced-commands.md (opens in a new tab)references/basic-operations.md (opens in a new tab)references/cross-platform.md (opens in a new tab)references/dangerous-operations.md (opens in a new tab)references/hooks-and-security.md (opens in a new tab)references/merging-rebasing.md (opens in a new tab)references/performance-large-files.md (opens in a new tab)references/platform-workflows.md (opens in a new tab)references/troubleshooting-recovery.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
6 skills in this plugin
/git-2025-featuresGit 2.49+ features and modern Git workflows (2025-2026).
PROACTIVELY activate for: (1) Git 2.49+ features (reftables, sparse-checkout, partial clone, worktrees), (2) git-backfill for partial clones, (3) reftables migration (file backend to reftable backend), (4) sparse-checkout for monorepos, (5) git worktrees for parallel development, (6) partial clone (--filter=blob:none), (7) commit graph and bitmap optimizations, (8) trunk-based development workflows, (9) Git LFS, (10) modern alternatives to legacy commands.
Provides: feature reference, version-detection snippets, sparse-checkout configuration, worktree workflow patterns, and migration guidance from older Git versions.
/git-2-49-featuresGit 2.49 specific features and performance improvements.
PROACTIVELY activate for: (1) git-backfill command (new in 2.49) for partial clones, (2) path-walk API improvements, (3) zlib-ng integration for faster compression, (4) reftables backend stabilization, (5) revision-walk performance, (6) bundle URI improvements, (7) sparse-checkout enhancements in 2.49, (8) git maintenance defaults in 2.49, (9) credential helper updates.
Provides: 2.49 changelog summary, git-backfill recipes, performance comparison vs 2.48, and migration notes for users upgrading from 2.40+.
/github-actions-2025GitHub Actions 2025-2026 features and modernization.
PROACTIVELY activate for: (1) 1 vCPU Linux runners (October 2025 public preview), (2) immutable releases for hardened distribution, (3) Node24 migration from Node20, (4) reusable workflows and composite actions, (5) workflow_dispatch with rich inputs, (6) artifact attestations and provenance, (7) ARC (Actions Runner Controller) for self-hosted Kubernetes, (8) larger runners and macOS Apple Silicon runners, (9) deployment environments and protection rules, (10) OIDC federation to AWS/Azure/GCP.
Provides: workflow templates, runner-selection matrix, OIDC setup recipes, attestation patterns, and Node24 migration steps.
/github-ai-features-2025GitHub AI-powered security and automation features (2025-2026).
PROACTIVELY activate for: (1) GitHub Copilot in PRs (Copilot code review, Copilot autofix), (2) GitHub Advanced Security (CodeQL, secret scanning, dependency review), (3) Copilot Workspace, (4) GitHub Models (gh models eval, prompt evaluations), (5) GitHub Copilot CLI 2.x, (6) AI-assisted issue triage, (7) Copilot extensions and skillsets, (8) Copilot Enterprise context (knowledge bases), (9) automated dependency updates (Dependabot AI grouping), (10) Spark for app generation.
Provides: feature catalog, Copilot CLI command reference, gh models eval examples, GHAS configuration, and Copilot Workspace usage.
/git-security-2025Git security best practices for 2025-2026 (signed commits, zero-trust, secret scanning).
PROACTIVELY activate for: (1) configuring signed commits (GPG, SSH, S/MIME), (2) verifying commit signatures, (3) zero-trust Git workflows, (4) secret scanning (GitHub Advanced Security, gitleaks, trufflehog), (5) preventing secret leaks via pre-commit hooks, (6) protected branches and required reviewers, (7) CODEOWNERS for sensitive paths, (8) Sigstore-style attestations, (9) detecting and remediating leaked credentials, (10) supply-chain security (provenance, SBOM, SLSA).
Provides: signed commit setup, secret-scanning integration, pre-commit hook templates, branch protection patterns, and incident-response checklist for credential exposure.
npx claudepluginhub josiahsiegel/claude-plugin-marketplace --plugin git-masterOther plugins' skills for the same job