GI

git-workflow

A comprehensive guide for effective git usage, including commit conventions and branching workflows.

Install

mkdir -p .claude/skills/git-workflow-ysmsimon && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11307" && unzip -o skill.zip -d .claude/skills/git-workflow-ysmsimon && rm skill.zip

Installs to .claude/skills/git-workflow-ysmsimon

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Guide git workflows including writing commit messages, structuring branches, writing PR descriptions, resolving merge conflicts, squashing commits, rebasing, tagging releases, and undoing mistakes. Use this skill whenever the user wants help with a commit message, pull request, branching strategy, git history, rebasing, undoing a commit, stashing, or anything git-related. Trigger on phrases like "write a commit message", "help me PR this", "how should I branch", "clean up my commits", "git conflict", "undo", "revert", "stash", or any git command question.
561 charsno explicit “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • Write conventional commit messages
  • Define branching strategies
  • Resolve merge conflicts
  • Perform rebasing and squashing

How it works

It provides templates and rules for git operations based on the Conventional Commits standard and common branching strategies.

Inputs & outputs

You give it
Git history or change description
You get back
Formatted commit message or git command

When to use git-workflow

  • Write conventional commit messages
  • Define branching strategies
  • Resolve merge conflicts

About this skill

Git Workflow

Help the user work effectively with git — from individual commits to full branching strategies and pull request descriptions.


Commit messages — Conventional Commits

Format

<type>(<scope>): <short summary>

<optional body — explain WHY, not what>

<optional footer>

Types

TypeWhen to use
featNew user-facing feature
fixBug fix
refactorCode restructuring, no behaviour change
perfPerformance improvement
testAdding or fixing tests
docsDocumentation only
choreBuild, deps, tooling
ciCI/CD pipeline
revertReverting a previous commit

Rules

  • Summary: max 50 chars, imperative mood ("add" not "added"), no trailing period
  • Blank line between summary and body
  • Body: explain why — the diff shows what
  • Wrap body at 72 characters
  • Reference issues in footer: Closes #42

Branching strategy

GitHub Flow (default — simple projects, CI/CD)

  • main is always deployable
  • Branch for every feature or fix
  • PR → review → merge to main

Branch naming: feature/jwt-refresh, fix/profile-update-race, chore/upgrade-dependencies

Git Flow (versioned releases, larger teams)

  • main: production, always tagged
  • develop: integration branch
  • feature/*: from develop, back to develop
  • release/*: from develop when prepping a release
  • hotfix/*: from main for urgent fixes, merge back to both main and develop

When the user provides context

If they share a diff or describe changes — write the commit message directly, don't just explain the format.

If they show a messy branch history — recommend the exact rebase commands with the real commit count.

If they describe a PR — write the full PR description using the template.

When not to use it

  • When the team has a strictly enforced, different workflow

Prerequisites

git installed

Limitations

  • Requires team adoption for full effectiveness

How it compares

It standardizes git history and communication, whereas manual git usage often leads to inconsistent logs.

Compared to similar skills

git-workflow side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
git-workflow (this skill)03moNo flagsBeginner
resolve-conflicts818moReviewIntermediate
dependency-upgrade265moReviewIntermediate
git-commits214moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry