Command Palette

Search for a command to run...

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

git-workflow

БесплатноЗапускает вложенные скриптыНе проверен

Use when branching strategies, implementing Conventional Commits, creating or reviewing PRs, dependent/stacked PR/MR safeguards, resolving PR review comments…

netresearchот netresearch★ 64 звезды на GitHub11 установок в других каталогах

Об этом скилле

Git Workflow Skill

Not Here

Releases: github-release. BLOCKED-PR diagnosis: github-project.

GitHub first. pr-status.sh also reads a GitLab merge request (-R host/group/project <iid>, needs glab) and prints the glab merge command; pr-merge.sh, pr-sweep.sh, the merge gate and review-thread handling speak GitHub only. For the rest of a GitLab merge request the glab calls are in references/pull-request-workflow.md § GitLab: the same gate with glab.

Critical Rules (Non-Negotiable)

  1. No direct push to main — always open a PR.
  2. No merge before all threads resolved (references/pull-request-workflow.md).
  3. No squash unless asked — preserves atomic commits, signatures, bisection.
  4. No "tested/verified/working" without pasted command output — else say so.
  5. No edits to installed skill/plugin cache paths (~/.claude/skills/, ~/.claude/plugins/cache/, **/.bare/**) — always the repo worktree, verified by pwd.
  6. Force-push only with --force-with-lease — never plain --force.
  7. Commit before rebase — add → commit → fetch → rebase → push (a dirty tree aborts it).
  8. No editorializing — state what changed, not how good it is (references/no-editorializing.md).

Reference Files

Reference Content Triggers
references/merge-dependencies.md Prerequisite discovery, stacked PR/MR safeguards, GitLab CE discussion gates and native dependencies
references/commit-conventions.md Conventional commits, DCO sign-off
references/pull-request-workflow.md PR merge gate, signed rebase, posting a review with inline suggestions, writing or updating the PR body, merging a stack, sibling PRs that change checks or output
references/ci-cd-integration.md CI watching, git mirrors
references/advanced-git.md Rebase (incl. non-interactive rebase -i), cherry-pick, bisect, stash, worktrees, reflog, hanging push/fetch (SSH mux), parsing git output in a script (flags that pin diff/log/status output against user config), fetching one branch in a single-branch clone (refspec)
references/github-releases.md → github-release skill
references/git-hooks-setup.md Hook frameworks, hooks per stage, tests that a hook starts touching the real repository
references/claude-code-hooks.md settings.json merge gate, cache-path rejection, auto-lint
references/code-quality-tools.md shellcheck, shfmt, git-absorb, difftastic
references/merge-gate-watcher.md Waiting on a gate, a hand-rolled watch loop, a watch that returns at once, a watcher the harness killed, merge-driver loop, check taxonomy, stale-SHA rerun, rerun of a superseded run cancelling the newer one, merge-queue entry dropped or stuck in AWAITING_CHECKS
references/spec-cleanup.md Planning artifacts off the base branch
references/no-editorializing.md No self-praise, no narrating the expected

Conventional Commits

<type>[scope]: <description>

feat MINOR, fix PATCH; full type list and DCO sign-off in references/commit-conventions.md. Breaking: ! after type, or BREAKING CHANGE: in the footer. Branches: feature/TICKET-123-description, release/1.2.0

Hook Detection

found=$(ls lefthook.yml .lefthook.yml captainhook.json Build/captainhook.json .pre-commit-config.yaml .husky/pre-commit 2>/dev/null)
[ -n "$found" ] && echo "$found" || echo "No hooks"

Install commands per framework: references/git-hooks-setup.md.

Dependency preflight

When creating, reviewing or preparing to merge, proactively check linked work, discussions and code for prerequisites. Read references/merge-dependencies.md when one is found: distinguish a review stack from an enforced merge gate, check platform capabilities, and propose or apply a suitable safeguard within the task's authorization. Do not leave a known dependency as a plain comment and call it protected.

PR Merge Requirements

Before merging: threads resolved, CI green (incl. annotations), rebased, signed, and reviewed on the current head — by a human, a bot, or the author through pr-merge.sh --self-reviewed. A review is mandatory; a bot review is not, and one is waited for only while it is actually in flight. Rebase-only + signed: git merge --ff-only.

Verification

./scripts/verify-git-workflow.sh /path/to/repository
# Gate state, next action:
./scripts/pr-status.sh [-R owner/repo | -R host/group/project] [PR] [--json] [--watch] [--stuck-after MIN] [--threads]
# Merge; refuses when the gate is shut:
./scripts/pr-merge.sh [-R owner/repo] [PR] [--dry-run|--self-reviewed|--retarget-stacked] [--wait [--interval SEC] [--max-wait SEC] [--request-coderabbit]]
# Many PRs (`owner/repo N` per line) to merge; stops on any NEXT it does not handle:
./scripts/pr-sweep.sh [--interval SEC] [--timeout SEC] [--attention FILE] LISTFILE
# What a repository expects, before the first artifact:
./
Полный SKILL.md на GitHub

Установить git-workflow в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash(git:*)
Bash(gh:*)
Read
Write

Вложенные файлы

checkpoints.yamlevals/evals.jsonreferences/advanced-git.mdreferences/ci-cd-integration.mdreferences/claude-code-hooks.mdreferences/code-quality-tools.mdreferences/commit-conventions.mdreferences/git-hooks-setup.mdreferences/github-releases.mdreferences/merge-dependencies.mdreferences/merge-gate-watcher.mdreferences/no-editorializing.mdreferences/pull-request-workflow.mdreferences/spec-cleanup.mdscripts/conflict-marker-gate.pyscripts/merge-gate.shscripts/pr-merge.shscripts/pr-status-evaluate.jqscripts/pr-status-gitlab.jqscripts/pr-status-investigate.jqscripts/pr-status.shscripts/pr-sweep.shscripts/repo-contribution-preflight.shscripts/signing-preflight.shscripts/spec-cleanup-guard.shscripts/verify-git-workflow.sh

FAQ

Что делает скилл git-workflow?

Use when branching strategies, implementing Conventional Commits, creating or reviewing PRs, dependent/stacked PR/MR safeguards, resolving PR review comments, merging PRs (including CI verification, auto-merge queues, and post-merge cleanup), managing PR review threads, merging PRs with signed commits, handling merge conflicts, verifying a merge didn't silently drop changes, syncing a long-diverged branch (e.g. master into integration), rebasing a long-lived branch onto a moved base or splitting one into several PRs, integrating Git with CI/CD, setting up git hooks (lefthook, captainhook, husky, pre-commit), debugging hook-install failures in git worktrees, or working in a bare-repo plus per-branch-worktree layout, including consolidating a directory that holds both a plain clone and a .bare. pr-status.sh also reads GitLab MRs; references/pull-request-workflow.md carries the other GitLab equivalents. Not for creating releases (use github-release) or diagnosing BLOCKED/won't-merge PRs (use github-project).

Как установить скилл git-workflow?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git-workflow запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

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

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