agentsclimarketplace

Git workflow skills barnhardt enterprises inc git workflow

Skill bg-szy/TOP-SKILLS/skills/marketplace/git-workflow__skills-barnhardt-enterprises-inc-git-workflow

全球最大的 Claude Code 技能聚合库 · 收录 3900+ 来自 12+ 来源的技能,提供在线搜索与趋势分析看板 / The world's largest Claude Code skill aggregation hub — 3900+ skills from 12+ sources with online search and trend dashboard

Install
npx -y skills add bg-szy/TOP-SKILLS --skill git-workflow__skills-barnhardt-enterprises-inc-git-workflow

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Git workflow with worktrees and conventional commits.

SKILL.md

2.7 KB, 723 tokens by cl100k_base, as published. Nobody here has run it

Git Workflow

Branch Naming

feature/{issue}-{slug}   # New features
fix/{issue}-{slug}       # Bug fixes
refactor/{issue}-{slug}  # Code refactoring
docs/{issue}-{slug}      # Documentation
test/{issue}-{slug}      # Test additions

Examples:

  • feature/42-user-authentication
  • fix/57-login-redirect-loop
  • refactor/63-extract-api-client

Conventional Commits

feat: add user authentication
fix: resolve login redirect loop
refactor: extract API client
docs: update README with setup instructions
test: add unit tests for auth service
chore: update dependencies

With scope:

feat(auth): add OAuth2 support
fix(api): handle rate limit errors
refactor(ui): extract button component

Breaking changes:

feat!: change authentication API
feat(auth)!: remove password login

Worktrees

# Create worktree for feature
git worktree add ../worktrees/feature-42-auth -b feature/42-auth

# List worktrees
git worktree list

# Remove worktree when done
git worktree remove ../worktrees/feature-42-auth

# Prune stale worktrees
git worktree prune

Workflow Steps

1. Create Issue

gh issue create --title "Add user authentication" --body "..."
# Note the issue number (e.g., #42)

2. Create Branch in Worktree

git worktree add ../worktrees/feature-42-auth -b feature/42-auth
cd ../worktrees/feature-42-auth

3. Develop

# Make changes...
git add .
git commit -m "feat(auth): add login form component"
git commit -m "feat(auth): add authentication API"
git commit -m "test(auth): add unit tests for auth"

4. Push and Create PR

git push -u origin feature/42-auth
gh pr create --title "feat: add user authentication" --body "Closes #42"

5. Cleanup After Merge

cd ..  # Back to main repo
git worktree remove ../worktrees/feature-42-auth
git branch -d feature/42-auth

Rebase Workflow

# Keep branch up to date with main
git fetch origin
git rebase origin/main

# Interactive rebase to clean up commits
git rebase -i origin/main

Stashing

# Stash changes
git stash push -m "WIP: auth feature"

# List stashes
git stash list

# Apply and drop
git stash pop

# Apply specific stash
git stash apply stash@{1}

Useful Aliases

# .gitconfig
[alias]
  co = checkout
  br = branch
  ci = commit
  st = status
  wt = worktree
  lg = log --oneline --graph --decorate
  last = log -1 HEAD
  unstage = reset HEAD --

Protected Branch Rules

Main branch should have:

  • Require pull request reviews
  • Require status checks to pass
  • Require linear history
  • Do not allow force pushes

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.