git-master
БесплатноБез исполняемых скриптовНе проверенComplete Git expertise system for ALL git operations. PROACTIVELY activate for: (1) ANY Git task (basic/advanced/dangerous), (2) Repository management, (3)…
Об этом скилле
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:
- Create commits automatically with appropriate messages
- Stage changes only (you handle commits manually)
- 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.):
- Always warn the user explicitly
- Explain the risks clearly
- Ask for confirmation
- Suggest creating a backup branch first
- 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,
ghCLI), 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/:
| 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 |
Quick Command Index
| 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 b |
Установить git-master в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл git-master?
Complete Git expertise system for ALL git operations. PROACTIVELY activate for: (1) ANY Git task (basic/advanced/dangerous), (2) Repository management, (3) Branch strategies and workflows, (4) Conflict resolution, (5) History rewriting/recovery, (6) Platform-specific operations (GitHub/Azure DevOps/Bitbucket), (7) Advanced commands (rebase/cherry-pick/filter-repo). Provides: complete Git command reference, safety guardrails for destructive operations, platform best practices, workflow strategies, reflog recovery techniques, and expert guidance for even the most risky operations. Always asks user preference for automatic commits vs manual control.
Как установить скилл git-master?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-master запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub