dev-loop-git-workflow
Use when the user asks about git branching strategy, trunk-based development vs git flow, rebase vs merge, a messy rebase or merge conflict, commit…
от j4flmao★ 47 звёзд на GitHub
Установить dev-loop-git-workflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Git Workflow
Purpose
Establish and maintain effective Git workflows — branching strategy, commit conventions, merge patterns, and history management — that enable team collaboration, continuous integration, and reliable releases.
Agent Protocol
Trigger
Exact user phrases: "git workflow", "branching strategy", "git flow", "trunk-based", "commit convention", "merge strategy", "git hooks", "git history", "rebase vs merge", "git best practices", "commit message format".
Input Context
- Team size (solo, small team <10, medium 10-50, large 50+)
- Release cadence (continuous, weekly, monthly, scheduled)
- Deployment model (feature flags, release branches, environment-based)
- CI/CD setup (GitHub Actions, GitLab CI, Jenkins, CircleCI)
- Current pain points (merge conflicts, messy history, broken main, long-lived branches)
- Platform (GitHub, GitLab, Bitbucket, Azure DevOps)
Output Artifact
Git workflow specification with branching model, commit convention, merge strategy, and hook configuration.
Response Format
Branching: {trunk-based|GitHub Flow|GitFlow} — why
Branch names: {pattern}
Commits: {Conventional Commits + commitlint}
Merge: {squash|rebase|merge commit}
Protection: {required checks, reviews}
Releases/hotfixes: {tagging, release branches}
Completion Criteria
- Branching strategy selected (trunk-based, git-flow, GitHub Flow)
- Branch naming convention defined
- Commit message convention specified (Conventional Commits)
- Merge strategy chosen (squash, rebase, merge commit)
- Branch protection rules configured
- Git hooks implemented (commitlint, pre-commit linting, post-merge)
- Release branching and tagging strategy defined
- Hotfix workflow documented
- Conflict resolution strategy documented
Max Response Length
200 lines.
Framework/Methodology
Branching Strategy Decision Tree
What is the team's release model?
├── Continuous deployment (multiple deploys per day)
│ → Trunk-based development: short-lived feature branches → main
│ → Feature flags for incomplete features
│ → No release branches (main is always deployable)
├── Scheduled releases (weekly/monthly)
│ → GitHub Flow: feature → main → release branch → tag
│ → Release branches for patch backports
│ → Version tags on release commits
├── Multiple versions in support (LTS, enterprise)
│ → Git Flow: develop + main + release branches + hotfix
│ → Long-lived release branches, cherry-pick fixes
└── Open source / community
→ Forking workflow: fork → PR → maintainer review → merge
→ Maintainer has squash + rebase options
Branching Strategy Comparison
Strategy Complexity Best For Release Model
──────────────────────────────────────────────────────────────────────────
Trunk-based Low Small teams, high CI Continuous
GitHub Flow Low-Med Most teams, standard On-demand
Git Flow High Multi-version, enterprise Scheduled
Forking High Open source, external PR-driven
Workflow
Step 1: Choose Branch Naming Convention
convention: "scoped names with forward slashes"
patterns:
features: "feat/<issue-number>-<short-description>"
# e.g. feat/142-add-user-avatar
fixes: "fix/<issue-number>-<short-description>"
# e.g. fix/87-null-pointer-on-login
chores: "chore/<description>"
# e.g. chore/update-dependencies
releases: "release/<version>"
# e.g. release/v2.1.0
hotfixes: "hotfix/<version>-<description>"
# e.g. hotfix/v2.0.1-security-patch
team_rules:
- "All branches must reference an issue number (if applicable)"
- "Use kebab-case, no uppercase"
- "Delete remote branch after merge"
- "Maximum branch lifetime: 3 days (trunk-based) or 1 week"
Step 2: Commit Message Convention
format: |
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
types:
feat: "New feature (bumps minor)"
fix: "Bug fix (bumps patch)"
docs: "Documentation"
style: "Formatting, no logic change"
refactor: "Code restructuring"
perf: "Performance improvement"
test: "Adding/fixing tests"
chore: "Maintenance, deps, build"
ci: "CI/CD changes"
rules:
- "Subject line: max 72 characters, imperative mood, lowercase"
- "Body: wrap at 72 characters, describe WHY not WHAT"
- "Footer: BREAKING CHANGE: or references (closes #142)"
- "Breaking change: append ! after type/scope"
# Good commit messages
feat(api): add user avatar upload endpoint
feat(api)!: remove deprecated v1 endpoints
BREAKING CHANGE: The `/api/v1/users` endpoint is removed.
Use `/api/v2/users` instead.
fix(auth): handle null token on session refresh
Closes #142
docs(readme): update installation instructions
# Bad commit messages
"fix stuff"
"update"
"WIP"
"asdf"
"final_final_v2_REAL"
Step 3: Configure Branch Protection
# GitHub branch protection rules (fo
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/branch-strategies.md
- references/conventional-commits.md
- references/git-advanced-workflows.md
- references/git-workflow-advanced.md
- references/git-workflow-fundamentals.md
- references/merge-conflict-resolution.md
FAQ
Что делает скилл dev-loop-git-workflow?
Use when the user asks about git branching strategy, trunk-based development vs git flow, rebase vs merge, a messy rebase or merge conflict, commit conventions, squash or history cleanup. Produces team git conventions and commands. Not for multi-team release trains (use enterprise-release-engineering) or changelogs (use dev-loop-changelog-generator).
Как установить скилл dev-loop-git-workflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-loop-git-workflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…