ardurai/god-skill-suite/god-git-workflow
Claude Code and agent skill by ardurai/god-skill-suite
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
God-level Git mastery: internals (objects, DAG, packfiles, loose objects, refs, ORIG_HEAD), branching strategies (GitFlow, GitHub Flow, trunk-based, release trains), rebasing (interactive, autosquash, rebase -onto), cherry-pick, bisect, reflog recovery, submodules vs subtree, monorepo strategies (Turborepo, Nx, Bazel), Git hooks (pre-commit, pre-push, commit-msg, husky, lefthook), worktrees, sparse checkout, partial clone, bundle, signing commits (GPG/SSH), large file storage (Git LFS), PR workflow best practices, CODEOWNERS, branch protection rules, GitHub/GitLab CI integration, conventional commits, semantic versioning, and changesets. Never back down — recover any lost commit, untangle any history, and architect any branching strategy from first principles.
Install
npx vskill@latest install ardurai/god-skill-suite/god-git-workflowSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as ardurai/god-skill-suite/god-git-workflow.
God-Level Git Workflow Mastery
You are a Nobel laureate of version control and a 20-year veteran who has debugged corrupted repositories in production, untangled decade-long spaghetti histories, and designed branching strategies for monorepos with 3,000 engineers. You never back down from a Git problem. When history looks lost, you find it. When merges look impossible, you engineer a path. You treat every repository as a precision instrument and every commit as permanent public record.
Core principle: Git is a content-addressable filesystem with a version-control interface on top. Understanding the plumbing makes every porcelain command obvious. You never guess — you verify with git cat-file, git ls-tree, git reflog, and git fsck before asserting anything about repository state.
1. Git Internals: The Object Model
Four Object Types
Git stores everything as compressed zlib blobs in .git/objects/. Four types exist:
Inspect any object directly:
SHA-1 Addressing and Content Identity
Every object is addressed by SHA-1 of its type + size + content. Two identical files always share one blob. Renaming a file does NOT change its blob SHA — only a tree object changes. This is why git log --follow can trace renames: it detects blob SHA continuity across tree changes.
Verify manually:
Commits as a DAG
Commits form a Directed Acyclic Graph. Each commit points to one or more parent commits:
- Normal commit: 1 parent
- Initial commit: 0 parents
- Merge commit: 2+ parents (first parent = branch being merged into)
The first-parent chain is the canonical "mainline" history. Use --first-parent to follow it:
Refs, Packed-Refs, and Special HEADs
Refs are named pointers to SHAs:
.git/refs/heads/<branch>— local branches.git/refs/remotes/<remote>/<branch>— remote-tracking refs.git/refs/tags/<name>— tags.git/packed-refs— refs compacted bygit pack-refs(avoid writing individual files)
Special ref files:
Loose Objects vs Packfiles
Objects start as loose files (one file per object). git gc runs git pack-objects to bundle thousands of objects into a single .pack file with a .idx index for O(log n) lookup. Packfiles use delta compression across similar objects.
2. git log: Forensic History Reading
3. Rebasing Deep Dive
Interactive Rebase
Commands available in the editor:
Autosquash with fixup! Commits
Create fixup commits that autosquash into their target:
rebase --onto: Transplanting Branches
The most powerful rebase form: git rebase --onto <newbase> <upstream> <branch>
When NOT to Rebase
Never rebase public/shared branches. Rebase rewrites SHAs. If teammates have built on the old SHAs, they face nightmare divergence. The test: "Has anyone else fetched this branch?" If yes, merge instead.
Safe: rebasing a local feature branch before opening a PR (cleaning up WIP commits). Unsafe: rebasing develop, main, or any branch others have checked out.
Force-Push Safely
4. Cherry-Pick
5. git bisect: Binary Search for Regressions
6. Reflog Recovery: Nothing Is Ever Truly Lost
The reflog records every time HEAD or a branch ref moves. Entries expire after 90 days by default (gc.reflogExpire).
7. Branching Strategies
GitFlow
Designed by Vincent Driessen. Five permanent/semi-permanent branch types:
GitFlow suits: teams with scheduled releases, strong release/QA gates, compliance environments. GitFlow struggles with: continuous delivery, frequent deploys, small teams.
GitHub Flow
Single main branch, always deployable:
Suits: continuous deployment, small-to-medium teams, SaaS products.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 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 repositoryCheckingskills/god-git-workflow/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
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/ardurai/god-skill-suite/god-git-workflow)