npx skills add ...
npx skills add jezweb/claude-skills --skill 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.
npx skills add jezweb/claude-skills --skill git-workflow
Guided workflows for common git operations that benefit from structured steps.
When preparing a pull request:
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 workDraft PR content
Push and create
Verify — gh pr view --web to open in browser
Clean up merged branches safely:
Switch to main and pull latest
List merged branches (excludes main/master/develop)
Delete local merged branches
Prune remote tracking refs
List remote branches with no local tracking (optional)
When a PR has conflicts:
Assess the conflict scope
For each conflicted file, read the file and resolve:
If rebase is cleaner (few commits, no shared history):
If rebase is messy (many conflicts, architectural divergence):
git rebase --abort or git merge --abortgit show origin/branch:path/to/file > /tmp/extracted.txtVerify — run tests, check the diff looks right
In monorepos, scope tags to the package:
Pattern: {package-name}-v{semver}
When creating a new repo, always create .gitignore BEFORE the first git add:
If node_modules is already tracked:
Before publishing or sharing a private repo:
If PRIVATE, ensure:
LICENSE contains proprietary notice (not MIT/Apache)package.json has "license": "UNLICENSED" and "private": trueCONTRIBUTING.md or "contributions welcome" in README