git-workflow
Master Git Workflows with Confidence
Also available from: 0xDarkMatter,0xDarkMatter,Joseph OBrien,Cain96,Joseph OBrien,Barnhardt-Enterprises-Inc,AI-Vibe-Prompts,Doyajin174
Struggling with Git branches, merges, and conflicts? This skill provides clear, step-by-step guidance for all Git operations with best practices for team collaboration.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "git-workflow". Write a commit message for adding login functionality
Expected outcome:
feat(auth): implement user login system
- Add login form component with validation
- Create authentication API endpoint
- Integrate session management middleware
- Add unit tests for login flow
Closes #156
Using "git-workflow". How do I undo my last commit but keep my changes?
Expected outcome:
Use: git reset --soft HEAD~1
This removes the commit but keeps all changes staged. If you want to unstage them too, use: git reset HEAD~1
Security Audit
SafeThis skill is a documentation-only guide for Git workflows. Static analysis flagged 77 shell command patterns, 6 URLs, and 14 crypto patterns, but all are false positives. The detected patterns are Markdown code blocks (```bash) and inline code markers (`command`) used for documentation formatting, not executable code. URLs are reference links to official Git documentation. No actual security risks exist.
Quality Score
What You Can Build
New Developer Onboarding
Help junior developers learn proper Git workflows with guided examples for branching, committing, and merging code safely.
Team Workflow Standardization
Establish consistent commit message formats and branch naming conventions across your development team.
Conflict Resolution Assistance
Get clear step-by-step guidance when facing complex merge conflicts during feature integration.
Try These Prompts
Help me write a commit message for changes that add user authentication with JWT tokens to my application.
I need to start working on a new feature for the shopping cart. What branch should I create and how?
I'm getting conflicts when rebasing my feature branch onto main. Walk me through resolving them step by step.
I have 5 messy commits on my feature branch. Help me squash and reorganize them before merging to main.
Best Practices
- Write small, focused commits that change one thing at a time
- Use conventional commit format: type(scope): subject
- Always pull latest changes before starting new work
- Never commit directly to the main branch
- Delete feature branches after merging to keep history clean
Avoid
- Committing with messages like 'fix' or 'update' - be specific about what changed
- Using git push --force without --force-with-lease - can overwrite teammate work
- Committing large batches of unrelated changes - makes review and rollback difficult
- Ignoring merge conflicts and forcing pushes - leads to lost code