baphuongna/pi-crew/git-master
Claude Code and agent skill by baphuongna/pi-crew
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Commit and release hygiene for safe version-control work. When NOT to use: experimental branches (use worktree-isolation); force-push or history rewrites (use scrutinize first).
Install
npx vskill@latest install baphuongna/pi-crew/git-masterSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
git-master
Use this skill for commit/release hygiene. This skill covers git workflow from local changes to published releases.
Pre-commit Checklist
Before every commit:
- Run
git status --short— understand what changed - Stage only files related to the current task
- Review staged diff with
git diff --staged - Check for unintended changes (generated files, temp files, secrets)
- Ensure tests pass locally before committing
Commit Rules
- Independent commits: Each commit should be self-contained and revertible. Don't mix unrelated changes.
- Concise messages: Use imperative mood, 50 chars or less for subject. Add body for context.
- Format:
type(scope): subjectwhere type isfix,feat,chore,docs,test,refactor - Do not include: secrets, OTPs, local temp files,
node_modules,dist/,*.log,*.tmp - Do not push/publish unless explicitly requested
- Verify before staging large generated files (tarballs, build outputs)
Commit Message Format
Examples:
Branch Naming
| Pattern | Use case | Example | |
|---|---|---|---|
fix/<description> | Bug fixes | fix/ghost-run-display | |
feat/<description> | New features | feat/skill-templates | |
docs/<description> | Documentation | docs/skills-deep-research | |
chore/<description> | Tooling, CI | chore/update-ci-node22 | |
hotfix/<description> | Urgent production fixes | hotfix/secret-leak |
Rollback Procedures
Revert last commit (safe, keeps history)
Reset to known-good state (rewrites history)
Checkout single file from a past commit
Recover from a bad reset
Regression Hunting with git bisect
When a regression is found and the culprit commit is unknown:
Amend and Force-Push
Amend last commit (before push)
Force-push (DESTRUCTIVE — only when necessary)
When safe to force-push:
- Your feature branch that only you use
- After
git rebase(rebase rewrites commit history) - After amending commits not yet pushed
When to NEVER force-push:
- Shared branches (main, master, develop)
- Branch with active PR
- Branch others may have based work on
Tag and Release
Create a version tag
Tag after version bump
List and verify tags
Version Bump Sequence
- Verify:
npx tsc --noEmitpasses - Verify:
npm testpasses - Update
CHANGELOG.mdwith changes for this version - Update
package.jsonversion field - Commit:
chore: bump version to X.Y.Z - Tag:
git tag -a X.Y.Z -m "Release X.Y.Z" - Publish:
npm publish --access public - Verify:
npm view pi-crewshows new version
Stash Patterns
Stash work-in-progress
Apply and manage stashes
Enforcement — Git Master Gate
Before committing or publishing, verify:
- [ ]
git statusreviewed — only related files staged - [ ]
git diff --stagedreviewed — no unintended changes - [ ] Tests pass locally (
npm testor appropriate test command) - [ ] No secrets in staged changes (API keys, tokens, passwords)
- [ ] Commit message follows format:
type(scope): subject(50 chars or less) - [ ] No generated files staged unless intentional
If ANY answer is NO → Stop. Fix issues before committing.
Anti-patterns
- Committing generated files: Don't commit
dist/,build/,*.min.jsunless intentional - Large commits: If >500 lines changed, consider splitting
- Committing with unverified tests: Run tests before commit
- Force-pushing main/master: Never
- Committing secrets: Check for
API_KEY,TOKEN,PASSWORD,SECRETbefore staging - Unclear messages: "fix stuff" is not a valid commit message
Source patterns
src/state/atomic-write.ts— atomic git-safe file writessrc/worktree/worktree-manager.ts— worktree git operationssrc/utils/conflict-detect.ts— git conflict detectionpackage.json— version field, publish scripts
Verification
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 repositoryCheckingskills/git-master/SKILL.md
Popularity
- Repository stars
- 58
- Repository forks
- 22
- 7-day trend score
- 0
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/baphuongna/pi-crew/git-master)