git-workflow
What it does
Helps organize how teams use Git, a system for managing code. It teaches different ways to structure teamwork, how to create and merge code parts (called 'branches' and 'pull requests'), and how to manage project versions.
When to use it
- βWhen starting a new project with multiple people.
- βWhen the team struggles to manage code changes.
- βTo define clear rules for code review and approval.
Skill link
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/git-workflow/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHow can we organize our Git workflow so everyone on the team collaborates better?β
5 new skills a week. 1 minute to read.
How it works
This guide explains different methods for organizing code work, like 'Trunk-Based Development', 'GitHub Flow', and 'GitFlow'. It also shows how to write 'commit' messages (code saves) that explain what changed and why, and how to set up 'pull requests' for code review.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Git Workflow
Implement effective branching strategies and pull request workflows for team collaboration.
When to Use This Skill
Use this skill when:
- Establishing team Git workflows
- Implementing branching strategies
- Configuring pull request processes
- Setting up release management
- Improving code review practices
Prerequisites
- Git installed
- Repository hosting (GitHub, GitLab, Bitbucket)
- Basic Git knowledge
Branching Strategies
Trunk-Based Development
Best for: Continuous deployment, small teams, mature CI/CD
main ββββββββββββββββββββββββββββββββββββββββββ
β β β β β β
βββ βββ βββ βββ βββ βββ
feature branches (short-lived)
# Create short-lived feature branch
git checkout main
git pull origin main
git checkout -b feature/add-login
# Work and commit frequently
git add .
git commit -m "feat: add login form"
# Keep branch updated
git fetch origin
git rebase origin/main
# Merge quickly (same day ideally)
git checkout main
git pull origin main
git merge feature/add-login
git push origin main
git branch -d feature/add-login
GitHub Flow
Best for: Continuous delivery, web applications
main ββββββββββββββββββββββββββββββββββββββββββββ
β β β β
βββββββββββββ β β
feature/login β β
β β
βββββββββββββββββββββββββ β
feature/dashboard β
β
βββββββββββββββββββββββββββββββ
hotfix/security-patch
# Create feature branch from main
git checkout main
git pull origin main
git checkout -b feature/user-dashboard
# Push and create PR
git push -u origin feature/user-dashboard
# After review, merge via PR (squash recommended)
# Delete branch after merge
GitFlow
Best for: Scheduled releases, versioned products
main βββββββββββββββββββββββββββββββββββββββββ
β β β
release βββββββββΌββββββββββββββββΌβββββββββββββββΌ
β β β β β
develop ββββββββββββββΌββββββββββββββββββββββββββΌ
β β β β β β
feature ββββ΄ββββββββββ β β β β
β β β β
hotfix βββββββββββββββββββββ΄ββββββββΌββββΌβββββββ
β β
feature βββββββββββββββββββββββββββββ΄ββββ
# Initialize GitFlow
git flow init
# Start feature
git flow feature start user-auth
# Finish feature (merges to develop)
git flow feature finish user-auth
# Start release
git flow release start 1.0.0
# Finish release (merges to main and develop)
git flow release finish 1.0.0
# Hotfix
git flow hotfix start security-fix
git flow hotfix finish security-fix
Commit Conventions
Conventional Commits
<type>(<scope>): <description>
[optional body]
[optional footer(s)]
Types:
feat: New featurefix: Bug fixdocs: Documentationstyle: Formattingrefactor: Code restructuringtest: Adding testschore: Maintenance
Examples:
git commit -m "feat(auth): add OAuth2 login support"
git commit -m "fix(api): handle null response from payment service"
git commit -m "docs: update API documentation for v2 endpoints"
git commit -m "refactor(db): optimize user query performance"
# Breaking change
git commit -m "feat(api)!: change response format for user endpoint
BREAKING CHANGE: The user endpoint now returns an object instead of array"
Commit Message Template
# Create template file ~/.gitmessage
# Subject line (50 chars max)
# Body (72 chars per line max)
# - What changed
# - Why it changed
# - Any side effects
# Footer
# Fixes #123
# Co-authored-by: Name <email>
# Configure Git to use template
git config --global commit.template ~/.gitmessage
Pull Request Workflow
PR Template
<!-- .github/pull_request_template.md -->
## Description
Brief description of changes
## Type of Change
- [ ] Bug fix (non-breaking change)
- [ ] New feature (non-breaking change)
- [ ] Breaking change
- [ ] Documentation update
## Testing
- [ ] Unit tests added/updated
- [ ] Integration tests added/updated
- [ ] Manual testing performed
## Checklist
- [ ] Code follows project style guidelines
- [ ] Self-review performed
- [ ] Documentation updated
β¦
FAQ
What is a 'commit'?
It's like saving a version of your work. Each 'commit' has a message explaining what was changed.
What is a 'branch'?
It's like creating a separate copy of your code to work on a new feature or fix a problem without affecting the main version.
What is a 'pull request'?
It's a request for your changes, made on a 'branch', to be reviewed and merged into the main codebase by the team.
Details
Original description by the author
Implement Git branching strategies, PR workflows, and release management patterns.
Popularity
- GitHub stars
- 48k
- Ranking position
- #4742
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
00-andruia-consultant
48kHelps your agent start or improve AI projects. It analyzes code, suggests tools, and creates action plans in Spanish.
007
48kLets your agent perform security audits and threat modeling. It's useful for protecting projects against attacks and vulnerabilities.
10-andruia-skill-smith
48kHelps your agent create or improve AI tools. It defines how tools work, writes documentation, and validates the structure.
20-andruia-niche-intelligence
48kLets your agent create a summary about a specific industry. It's useful for understanding the context, rules, usage patterns, and risks of a project, using reliable sources.
Similar skills
openclaw-update
394kHelps your agent update an existing OpenClaw Gateway, choosing the update method that fits how it was installed and keeping your session working.
diagnose-gateway
394kHelps your agent find out why your OpenClaw Gateway is failing by checking settings, channels, and ports without changing anything.
crabbox-apps
394kHelps your agent open and run an app on a temporary cloud machine, then show its view in your chat side panel.