Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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-specialist is installed, do not handle substantive git workflow in the main agent when /git can handle it. Otherwise the main agent does that git work inline.
  • If git-specialist is 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-specialist is installed, switch to /git for repository operations. Otherwise stay in this session and follow this skill.
  • If you are already the git-specialist agent, 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 feature
  • fix: A bug fix
  • docs: Documentation only changes
  • style: Changes that do not affect behavior, such as formatting
  • refactor: Code changes that neither fix a bug nor add a feature
  • test: Adding or correcting tests
  • chore: 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 scope when the affected area is clear
  • Omit scope instead 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 endpoint
  • fix(auth): prevent empty login submission
  • chore(settings): sync opencode configuration

Branch Convention

Every branch name must follow this format:

<type>/<scope>-<short-description>

Branch Rules

  • Reuse the same allowed type values as commits
  • scope is required for branches
  • scope must be a single lowercase token with letters and numbers only
  • The first - after / separates scope from short-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-form
  • fix/api-token-refresh
  • chore/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 origin and use the matching CLI for PR work: gh for GitHub, az repos pr for 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

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить git-workflow с