Agent skill · Workflow & Productivity

git-workflow

Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts, handle monorepo tags, squash-and-merge patterns. Use when asked to prepare a PR, clean branches, resolve conflicts, or tag a release.

jezweb954★ · 1 repos on radarProfile →
claude-codeMIT
Install
npx skills add jezweb/claude-skills --skill git-workflow --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 4 KB
Bundled scripts: none
Requires: claude-code-only
Path: plugins/dev-tools/skills/git-workflow/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 954
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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** ```bash 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** ```bash git checkout main && git pull ``` 2. **List merged branches** (excludes main/master/develop) ```bash git branch --merged main | grep -vE '^\*|main|master|develop' ``` 3. **Delete local merged branches** ```bash git branch --merged main | grep -vE '^\*|main|master|develop' | xa

What's inside
Steps it walks through
  1. PR Preparation
  2. Branch Cleanup
  3. Merge Conflict Resolution
  4. Monorepo Release Tags
  5. .gitignore-First Init
  6. Private Repo License Audit
Commands it runs
git push -u origin HEAD
gh pr create --title "..." --body "$(cat <<'EOF'
git checkout main && git pull
git branch --merged main | grep -vE '^\*|main|master|develop'
git branch --merged main | grep -vE '^\*|main|master|develop' | xargs -r git branch -d
git fetch --prune
git branch -r --merged origin/main | grep -vE 'main|master|develop|HEAD'
git fetch origin
git merge origin/main --no-commit --no-ff
git diff --name-only --diff-filter=U  # List conflicted files
More from claude-skills
All skills →
About this skill
What does the git-workflow skill do?

Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts, handle monorepo tags, squash-and-merge patterns. Use when asked to prepare a PR, clean branches, resolve conflicts, or tag a release.

How do I install it?

Run `npx skills add jezweb/claude-skills --skill git-workflow --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From jezweb/claude-skills, a repository with 954 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going