developersglobal/ai-agent-skills/git-workflow
Claude Code and agent skill by developersglobal/ai-agent-skills
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Trunk-based development with atomic commits, clean history, and meaningful commit messages. Every commit should be deployable.
Install
npx vskill@latest install developersglobal/ai-agent-skills/git-workflowSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as developersglobal/ai-agent-skills/git-workflow.
Overview
Git is not just a backup system — it's a communication tool. Clean git history enables fast debugging (git bisect), clear attribution, and safe reverts. This skill enforces atomic commits, meaningful messages, and trunk-based development.
When to Use
- Before making any commit
- When reviewing a PR's git history
- When setting up a new project
Process
Step 1: Atomic Commits
- Each commit should represent ONE logical change — not a day's worth of work.
- A commit should be: independently deployable, independently revertable.
- Never commit "WIP" or partial implementations.
Verify: You could revert this commit without affecting adjacent functionality.
Step 2: Commit Message Format
- Follow Conventional Commits:
``` type(scope): short summary (max 72 chars)
Body: what changed and WHY (not how — the diff shows how).
Closes: #issue-number ```
- Types:
feat,fix,docs,style,refactor,test,chore - The summary is imperative mood: "Add feature" not "Added feature"
Verify: Message passes: feat|fix|docs|...(<scope>): <summary> format.
Step 3: Trunk-Based Development
- Work directly on
mainfor small changes (<1 day of work). - For larger features: short-lived feature branches (max 2 days), frequent merges to main.
- Never let a branch live more than 3 days without merging or rebasing.
- Use feature flags for incomplete features, not long-lived branches.
Verify: No branch is more than 2 days old without a merge/rebase plan.
Step 4: Pre-Commit Gates
- Before every commit: tests pass, linter passes, no secrets in diff.
- Use pre-commit hooks to enforce automatically.
Common Rationalizations (and Rebuttals)
| Excuse | Rebuttal | |
|---|---|---|
| "I'll clean up the commits later" | You won't. Clean as you go. | |
| "The commit message doesn't matter" | It matters in 6 months when you're bisecting a production bug. | |
| "Feature branches protect main" | Long-lived branches cause merge nightmares. Trunk-based is safer. |
Verification
- [ ] Commits are atomic and independently deployable
- [ ] Commit messages follow Conventional Commits format
- [ ] No long-lived branches (> 3 days)
- [ ] Pre-commit hooks in place
References
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/git-workflow/SKILL.md
Popularity
- Repository stars
- 64
- Repository forks
- 10
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. 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/developersglobal/ai-agent-skills/git-workflow)