
Git Workflow
- 1.1k installs
- 946 repo stars
- Updated July 2, 2026
- jezweb/claude-skills
git-workflow is a Claude Code skill that guides developers through structured git steps for preparing pull requests, cleaning branches, resolving merge conflicts, and tagging releases.
About
git-workflow is a Claude Code-only skill from jezweb/claude-skills that turns ad-hoc git work into repeatable checklists for PR prep, branch cleanup, merge conflict resolution, monorepo tags, and squash-and-merge patterns. It prescribes concrete commands such as git log main..HEAD --oneline, git diff main...HEAD --stat, and git status before drafting PR titles under 70 characters and structured descriptions. Developers reach for git-workflow when an agent is asked to prepare a PR, clean stale branches, resolve conflicts, or cut a release tag and needs step-by-step git discipline instead of improvised commands.
- 4 guided workflows: PR preparation, branch cleanup, conflict resolution, monorepo tagging
- Uses real git commands to gather accurate context instead of relying on memory
- Generates PR titles under 70 characters with why-focused body and test plan
- Safe merged-branch cleanup that excludes main/master/develop
- Hard-gate verification step before pushing or creating PRs
Git Workflow by the numbers
- 1,056 all-time installs (skills.sh)
- +23 installs in the week ending Jul 29, 2026 (Skillselion tracking)
- Ranked #60 of 735 Git & Pull Requests skills by installs in the Skillselion catalog
- Security screen: MEDIUM risk (skills.sh audit)
- Data as of Jul 31, 2026 (Skillselion catalog sync)
npx skills add https://github.com/jezweb/claude-skills --skill git-workflowAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1.1k |
|---|---|
| repo stars | ★ 946 |
| Security audit | 3 / 3 scanners passed |
| Last updated | July 2, 2026 |
| Repository | jezweb/claude-skills ↗ |
How do you prepare a clean pull request from a feature branch?
Get structured, repeatable guidance for preparing pull requests, cleaning branches, resolving merge conflicts, and handling release tags.
Who is it for?
Developers using Claude Code who want consistent, command-level guidance before opening or merging pull requests across monorepos and feature branches.
Skip if: Teams that only need generic git cheat sheets without PR-specific drafting steps or Claude Code agent integration.
When should I use this skill?
The user asks to prepare a PR, clean branches, resolve merge conflicts, tag a release, or follow squash-and-merge patterns.
What you get
Structured PR title and description, cleaned branch history, resolved merge conflicts, and release tags ready for merge.
- PR title and description draft
- Resolved merge conflicts
- Release tags
By the numbers
- PR titles are drafted under 70 characters per git-workflow guidance
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 branchgit diff main...HEAD --stat— see all changed filesgit 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 pull2. List merged branches (excludes main/master/develop)
git branch --merged main | grep -vE '^\*|main|master|develop'3. Delete local merged branches
git branch --merged main | grep -vE '^\*|main|master|develop' | xargs -r git branch -d4. Prune remote tracking refs
git fetch --prune5. List remote branches with no local tracking (optional)
git branch -r --merged origin/main | grep -vE 'main|master|develop|HEAD'Merge Conflict Resolution
When a PR has conflicts:
1. Assess the conflict scope
git fetch origin
git merge origin/main --no-commit --no-ff
git diff --name-only --diff-filter=U # List conflicted files2. For each conflicted file, read the file and resolve:
- Keep both changes if they're in different areas
- If architecturally incompatible, prefer the main branch's approach and re-apply the PR's intent on top
3. If rebase is cleaner (few commits, no shared history):
git rebase origin/main
# Resolve conflicts per commit, then:
git rebase --continue4. If rebase is messy (many conflicts, architectural divergence):
- Abort:
git rebase --abortorgit merge --abort - Extract useful code:
git show origin/branch:path/to/file > /tmp/extracted.txt - Apply changes manually to main
- Close original PR with explanation
5. Verify — run tests, check the diff looks right
Monorepo Release Tags
In monorepos, scope tags to the package:
# ❌ Ambiguous in monorepos
git tag v2.1.0
# ✅ Scoped to package
git tag contextbricks-v2.1.0
git push origin contextbricks-v2.1.0Pattern: {package-name}-v{semver}
.gitignore-First Init
When creating a new repo, always create .gitignore BEFORE the first git add:
cat > .gitignore << 'EOF'
node_modules/
.wrangler/
dist/
.dev.vars
*.log
.DS_Store
.env
.env.local
EOF
git init && git add . && git commit -m "Initial commit"If node_modules is already tracked:
git rm -r --cached node_modules/
git commit -m "Remove node_modules from tracking"Private Repo License Audit
Before publishing or sharing a private repo:
gh repo view --json visibility -q '.visibility'If PRIVATE, ensure:
LICENSEcontains proprietary notice (not MIT/Apache)package.jsonhas"license": "UNLICENSED"and"private": true- No
CONTRIBUTING.mdor "contributions welcome" in README
Related skills
How it compares
Choose git-workflow over generic git skills when the task is PR-specific preparation and release tagging rather than everyday commit workflows.
FAQ
What git commands does git-workflow use for PR prep?
git-workflow starts PR preparation with git log main..HEAD --oneline, git diff main...HEAD --stat, and git status to list commits, changed files, and uncommitted work before drafting the pull request.
When should I invoke git-workflow in Claude Code?
Invoke git-workflow when asked to prepare a PR, clean branches, resolve merge conflicts, handle monorepo tags, or apply squash-and-merge patterns during pre-merge git hygiene.
Is Git Workflow safe to install?
skills.sh reports 3 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.