New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Guided git workflows for PR prep, branch cleanup, conflict resolution, and monorepo release tags.

skills.sh installs
1.3K
GitHub stars
1.1K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers PR preparation, branch cleanup, merge conflict resolution, monorepo release tagging, gitignore-first repo init, and a private repo license audit
  • Includes exact git and gh commands for gathering commit context, drafting and creating pull requests, and pruning merged local and remote branches
  • Enforces a PR title under 70 characters and a {package-name}-v{semver} tag pattern to keep monorepo releases unambiguous
  • Designed for developers working in Claude Code who need structured steps for routine git operations

Install

$ npx -y skills add jezweb/claude-skills --skill git-workflow -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Git Workflow

Guided workflows for common git operations that benefit from structured steps.

PR Preparation

When preparing a pull request:

  1. Gather context

    • git log main..HEAD --oneline — list all commits on the branch
    • git diff main...HEAD --stat — see all changed files
    • git status — check for uncommitted work
  2. Draft PR content

    • Title: under 70 chars, describes the change (not the branch name)
    • Body: summarise the "why", list key changes, add test plan
    • Use the commit history to write the summary — don't rely on memory
  3. Push and create

    git push -u origin HEAD
    gh pr create --title "..." --body "$(cat <<'EOF'
    ## Summary
    - ...
    
    ## Test plan
    - [ ] ...
    
    🤖 Generated with [Claude Code](https://claude.com/claude-code)
    EOF
    )"
    
  4. Verify — gh pr view --web to open in browser

Branch Cleanup

Clean up merged branches safely:

  1. Switch to main and pull latest

    git checkout main && git pull
    
  2. List merged branches (excludes main/master/develop)

    git branch --merged main | grep -vE '^\*|main|master|develop'
    

Details

Repository
github.com/jezweb/claude-skills
Category
Git & Releases
First seen
May 16, 2026

More from jezweb/claude-skills

All 64

Similar to Git Workflow

More Git & Releases