git-workflow
БесплатноБез исполняемых скриптовНе проверенUse this skill for any git work such as creating branches, staging changes, writing commit messages, pushing branches, or preparing pull requests. If the…
от fmflurry★ 173 звезды на GitHubОб этом скилле
Git Workflow Skill
Use this skill whenever the task involves git.
When to Activate
- Creating or renaming branches
- Staging changes
- Writing commit messages
- Creating commits
- Pushing branches
- Preparing pull requests
- Reviewing branch names or commit message format
Required Delegation
When git work is needed: if the git-specialist agent is installed, delegate to that agent via the /git command. Otherwise the main agent does the work inline by following this skill.
- If
git-specialistis installed, do not handle substantive git workflow in the main agent when/gitcan handle it. Otherwise the main agent does that git work inline. - If
git-specialistis installed, that agent owns branch naming, commit message drafting, staging, commits, and pushes. Otherwise the main agent does those inline. - Keep non-git implementation work in the main agent. If
git-specialistis installed, switch to/gitfor repository operations. Otherwise stay in this session and follow this skill. - If you are already the
git-specialistagent, execute the git task directly and do not re-delegate it. Follow the Canonical spec section below.
Commit provenance
Claude Code and OpenCode agent-shell Git commits receive Harness, Harness-SHA, and Session-Id trailers from the installed session hooks. The SHA identifies the installed source checkout; -dirty means the source was dirty, the prior installation or overlay could not be proven clean, or installed managed files changed since capture. Do not remove or invent these trailers. Human shells outside agent sessions are unaffected.
Before creating or updating a PR, run agent-harness pr-provenance list origin/<base> HEAD and paste its output into the PR body. Run it again after new commits. The PR body check rejects missing records. Use agent-harness ship-merge for squash merges: it copies the checked PR body into the squash message. Direct agent-shell gh pr merge requires --rebase or --merge and the current --match-head-commit.
Known limits: GitHub website/API merges, Git hook overrides such as core.hooksPath, agent commits made with the guard bypassed, and OpenCode builds without shell.env are outside this best-effort guarantee. Human commits are not blocked.
Commit Convention
Every commit message must follow this format:
<type>(<scope>): <short summary>
[optional body]
[optional footer(s)]
When scope is not useful or not clear, this no-scope form is also valid:
<type>: <short summary>
Allowed Types
feat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect behavior, such as formattingrefactor: Code changes that neither fix a bug nor add a featuretest: Adding or correcting testschore: Maintenance tasks such as tooling or build updates
Commit Rules
- English only: subject and body MUST be English, even when the diff or conversation is French.
- Prefer including a meaningful
scopewhen the affected area is clear - Omit
scopeinstead of inventing one when it is not clear - Use a concise present-tense summary
- Keep the summary focused on intent, not a file-by-file changelog
- Match the type to the actual purpose of the change
Examples
feat(api): add user authentication endpointfix(auth): prevent empty login submissionchore(settings): sync opencode configuration
Branch Convention
Every branch name must follow this format:
<type>/<scope>-<short-description>
Branch Rules
- Reuse the same allowed
typevalues as commits scopeis required for branchesscopemust be a single lowercase token with letters and numbers only- The first
-after/separatesscopefromshort-description - Use a short kebab-case description
- Keep the branch name specific to the actual change
- If branch scope is ambiguous, ask one short question before creating the branch
Examples
feat/auth-login-formfix/api-token-refreshchore/settings-git-workflow
Git Specialist Expectations
If the git-specialist agent is installed, it must follow this list. Otherwise the main agent follows the same list inline.
- inspect repository status before acting
- draft compliant branch names and commit messages
- stage only relevant changes
- avoid destructive git commands unless explicitly requested
- push only when requested or clearly part of the delegated git task
- detect the host from
git remote get-url originand use the matching CLI for PR work:ghfor GitHub,az repos prfor Azure DevOps - preserve repository history hygiene
Azure DevOps work item lifecycle
For Isagri_Dev_GC_GestionCommerciale Feature, User Story, Enabler, and Enabler Story work, run agent-harness ado-state start "$(git branch --show-current)" "$ARGUMENTS" when work starts. Pass the request or PR text containing an AB#<id> reference when the branch does not carry the ID. If refer
Установить git-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл git-workflow?
Use this skill for any git work such as creating branches, staging changes, writing commit messages, pushing branches, or preparing pull requests. If the `git-specialist` agent is installed, delegate to that agent. Otherwise the main agent does the work inline by following this skill.
Как установить скилл git-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл git-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic