git
Guide for Git operations including commits, branches, rebasing, and conflict resolution. Use when working with version control, creating commits, managing…
от vinnie357★ 30 звёзд на GitHub
Установить git в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git Operations
Activate when creating commits, managing branches, creating pull requests, resolving conflicts, or following Git workflows.
Anti-fabrication
This skill follows core:anti-fabrication. The commit/PR format rules are house
convention, but the "Remote and Authentication Conventions" section makes specific,
checkable claims about Git and the GitHub API — this is the one skill in this set that
does, and its claims are verified in different ways:
- Anonymous access to GitHub Releases on a private repo returns 404, not 403.
Confirmed against GitHub's own documentation, cited in
sources.md: "GitHub uses a 404 Not Found response instead of a 403 Forbidden response to avoid confirming the existence of private repositories." - SSH key auth bypasses the
workflowOAuth scope that HTTPS push enforces. GitHub documents theworkflowscope requirement for OAuth apps/PATs pushing Actions workflow files (cited insources.md), but does not document the SSH-side exemption as a general principle — that half is empirically observed, not centrally documented: pushing a.github/workflows/*.ymlchange over HTTPS with a token lackingworkflowscope is rejected ("Refusing to allow an OAuth App to create or update workflow ... withoutworkflowscope"); the identical push over SSH succeeds. - The Worktrees section's mechanics (index and
HEADper-worktree,refs/stashshared,addrefusing a branch already checked out,-drefusing after a squash merge, the$WORKTREE_ROOTroot formula) are confirmed against git 2.54.0 man pages and reproduced by execution in a throwaway repo, cited insources.md.
Don't assert git/gh/glab CLI or GitHub/GitLab API behavior this skill doesn't
already cover without checking the current docs, or testing it directly when the docs
don't say — CLI flags and API responses do change across versions.
glabcommand/flag names throughout this skill andreferences/gitlab-mr.mdcome from the official docs athttps://docs.gitlab.com/cli/(per-command pages cited insources.md), NOT from local execution —glabwas not installed on the machine where this content was authored, and no command here was tested by running it. Noglabversion is pinned deliberately: pinning a version never actually run against would overstate the evidence. Re-check withglab <cmd> --helpbefore relying on a flag.
Commit Format
Follow the Conventional Commits specification:
type(scope): description
optional body
optional footer
Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert
Subject line rules:
- Keep under 50 characters
- Lowercase after type prefix
- No period at the end
- Use imperative mood ("add" not "added" or "adds")
Body (optional): Wrap at 72 characters. Focus on the what and how — never describe the changes themselves, as the git diff handles that.
Footer (optional): Reference issues (Closes #123), note breaking changes (BREAKING CHANGE: ...).
NEVER add agent attribution anywhere in Git or a forge. No robot emoji (🤖), "Generated with Claude Code", AI signatures, Co-Authored-By, Signed-off-by, or similar credit. This covers commits and trailers; branch names and descriptions; tags and annotations; PR/MR titles, bodies and descriptions; issues and their titles/descriptions; comments, reviews, discussions, release notes, and API-posted content. Apply the rule to every creation, edit, reply, and merge message, regardless of tool or agent. Describe the work without crediting the assistant. Ordinary product names and required source/license notices are not assistant signatures.
Check before publishing, not only during review. Inspect the final outgoing title, name, message, description, and any body file before every Git/forge write. Remove attribution inherited from templates, generated text, or commit history. Never append a signature after checking. Core and all-skills register a plugin-level attribution hook for Bash calls; its supported command forms and limits are documented in references/no-attribution.md. Other tools still require the same pre-publication check.
Configure Claude Code's built-in attribution too. When setting up the no-attribution policy, merge "attribution": {"commit": "", "pr": "", "sessionUrl": false} into the chosen settings file, preserving unrelated settings. Use ~/.claude/settings.json for the user's projects on this machine or .claude/settings.json for a shared project policy. Read native configuration and verification for precedence, version compatibility and behavior checks. Keep the hook and pre-publication checks active; this setting controls Claude Code's commit/PR attribution, not all Git/forge output.
Examples:
# Single-line (pre
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- hooks/block-attribution.nu
- hooks/block-merge-writes.nu
- hooks/scan-merge-writes.nu
- references/advanced.md
- references/build-source-staleness.md
- references/commands.md
- references/gitlab-mr.md
- references/no-attribution.md
- references/shallow-clone-remotes.md
- references/troubleshooting.md
FAQ
Что делает скилл git?
Guide for Git operations including commits, branches, rebasing, and conflict resolution. Use when working with version control, creating commits, managing branches, or resolving merge conflicts.
Как установить скилл git?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…