utsavsavani08/rain-skill-main/git-workflow
Claude Code and agent skill by utsavsavani08/rain-skill-main
- community
Checking that the SKILL.md file is still in the repository.
Git workflow patterns for feature branches, conventional commits, PR hygiene, merge strategies, and release tagging. Load whenever the user asks about branching, committing, merging, rebasing, tagging, or CI/CD integration with git. Enforces conventional commits, branch naming, and safe merge practices.
Install
npx vskill@latest install utsavsavani08/rain-skill-main/git-workflowSKILL.md
The same SKILL.md was published earlier as utsavsavani08/rain-skill-main/git-workflow.
Git Workflow — Branching, Commits, and Release Discipline
Consistent git hygiene that makes history readable, merges safe, and releases predictable. Enforces conventional commits, clean branch naming, and safe merge strategies.
Branch naming convention
| Prefix | When to use | |
|---|---|---|
feat/ | New feature | |
fix/ | Bug fix | |
refactor/ | Code restructure, no behavior change | |
docs/ | Documentation only | |
chore/ | Tooling, deps, config | |
hotfix/ | Emergency production fix | |
release/ | Release preparation branch |
Conventional commits
Format: <type>(<scope>): <short description>
| Type | When | |
|---|---|---|
feat | New feature | |
fix | Bug fix | |
refactor | No behavior change | |
docs | Docs only | |
test | Tests only | |
chore | Build/tooling/deps | |
perf | Performance improvement | |
ci | CI/CD pipeline | |
revert | Reverts a prior commit |
Breaking changes: append ! after type: feat(api)!: remove deprecated /v1 endpoints
Daily workflow
Merge strategy
| Scenario | Strategy | Why | |
|---|---|---|---|
| Feature branch → main | Squash merge (default) | Clean linear history | |
| Long-lived release branch | Merge commit | Preserve all history | |
| Hotfix → main AND release | Cherry-pick | Minimal blast radius | |
| Rebase before PR | Interactive rebase | Clean up WIP commits |
Squash merge (GitHub/GitLab)
Rebasing safely
Hard rule: Never rebase a branch that others are working on. Rebase only your own local/remote-only feature branch.
PR hygiene checklist
Before opening a PR:
- [ ] Branch is rebased onto latest
main(no stale conflicts) - [ ] Commits are clean (no "WIP", "fix fix fix", debug commits)
- [ ] PR title follows conventional commit format
- [ ] PR description has: What, Why, How to test
- [ ] All CI checks pass
- [ ] Linked to the relevant ticket/issue
- [ ] Self-reviewed the diff (no accidental debug code, no
.envfiles) - [ ] No secrets or credentials in the diff
PR description template
Stashing
Tagging and releases
When to bump which version
| Change | Version bump | |
|---|---|---|
| Breaking change | MAJOR (v1.x → v2.0) | |
| New feature, backward-compatible | MINOR (v1.1 → v1.2) | |
| Bug fix, patch | PATCH (v1.1.0 → v1.1.1) |
Undoing mistakes
| Situation | Safe fix | |
|---|---|---|
| Undo last commit, keep changes staged | git reset --soft HEAD~1 | |
| Undo last commit, keep changes unstaged | git reset HEAD~1 | |
| Discard unstaged changes to a file | git checkout -- <file> | |
| Revert a commit already pushed | git revert <sha> (creates new commit) | |
| Remove a file from last commit | git reset HEAD~1 -- <file> && git commit --amend |
Never use `git reset --hard` on shared branches. Use git revert to create a safe undo commit.
gitignore essentials
Always ensure these are ignored:
Hard rules
- Never commit secrets. If you do, rotate the credential immediately —
git historyis public. - Never force-push to main/master. Use
git revertinstead. - Never `git add -A` without reviewing `git status` first.
- Always rebase feature branches before merging — keeps history linear.
- Commit small and often — one logical change per commit, not one commit per day.
- Use `git diff --staged` before every commit — review exactly what you're committing.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.rain-skill/skills/git-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/utsavsavani08/rain-skill-main/git-workflow)