home / skills / questnova502 / claude-skills-sync / git-workflow
This skill guides teams in adopting Git workflow best practices, enabling effective branching, conventional commits, PR quality, and CI/CD integration.
npx playbooks add skill questnova502/claude-skills-sync --skill git-workflowReview the files below or copy the command above to add this skill to your agents.
---
name: git-workflow
description: "Agent Skill: Git workflow best practices for teams and CI/CD. Use when establishing branching strategies, implementing Conventional Commits, configuring PRs, or integrating Git with CI/CD. By Netresearch."
---
# Git Workflow Skill
Expert patterns for Git version control: branching, commits, collaboration, and CI/CD.
## Expertise Areas
- **Branching**: Git Flow, GitHub Flow, Trunk-based development
- **Commits**: Conventional Commits, semantic versioning
- **Collaboration**: PR workflows, code review, merge strategies
- **CI/CD**: GitHub Actions, GitLab CI, branch protection
## Reference Files
Detailed documentation for each area:
- `references/branching-strategies.md` - Branch management patterns
- `references/commit-conventions.md` - Commit message standards
- `references/pull-request-workflow.md` - PR and review processes
- `references/ci-cd-integration.md` - Automation patterns
- `references/advanced-git.md` - Advanced Git operations
- `references/github-releases.md` - Release management, immutable releases
## Conventional Commits (Quick Reference)
```
<type>[scope]: <description>
```
**Types**: `feat` (MINOR), `fix` (PATCH), `docs`, `style`, `refactor`, `perf`, `test`, `build`, `ci`, `chore`, `revert`
**Breaking change**: Add `!` after type or `BREAKING CHANGE:` in footer.
## Branch Naming
```bash
feature/TICKET-123-description
fix/TICKET-456-bug-name
release/1.2.0
hotfix/1.2.1-security-patch
```
## GitHub Flow (Default)
```bash
git checkout main && git pull
git checkout -b feature/my-feature
# ... work ...
git push -u origin HEAD
gh pr create && gh pr merge --squash
```
## Verification
```bash
./scripts/verify-git-workflow.sh /path/to/repository
```
## GitHub Immutable Releases
**CRITICAL**: Deleted releases block tag names PERMANENTLY. Get releases right first time.
See `references/github-releases.md` for prevention and recovery patterns.
---
> **Contributing:** https://github.com/netresearch/git-workflow-skill
This skill provides practical, battle-tested Git workflow guidance for teams and CI/CD pipelines. It covers branching strategies, commit conventions, pull request workflows, and integration patterns for automation and releases. Use it to standardize developer workflows and reduce release risk.
The skill inspects your current branching and commit practices, recommends a branching model (Git Flow, GitHub Flow, or trunk-based) based on team size and release cadence, and enforces Conventional Commits to drive semantic versioning. It also maps PR requirements and branch protection rules to CI/CD jobs and offers release patterns that avoid destructive changes to published releases.
Which branching model should we pick?
Choose based on release cadence and team size: GitHub Flow for continuous deployment, trunk-based for rapid iteration with feature flags, Git Flow for formal release management.
How do Conventional Commits map to version bumps?
Use types: feat -> minor, fix -> patch, and include BREAKING CHANGE or ! to indicate a major version bump.