git-workflow
Skill22 starsChanged 7 months agoMITView on GitHub
Use when committing code, pushing changes, or managing Git operations that require safety checks
- Deletes or force-pushes
- Commits and pushes
188 other projects use a version of this.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codetheir own version, first seen Nov 8, 2026
- kinhluan/skillstheir own version, first seen Nov 8, 2026
- juninmd/skillstheir own version, first seen Nov 8, 2026
- jDxve/avengers-kittheir own version, first seen Nov 8, 2026
- lhbsaa/apex-unifiedtheir own version, first seen Nov 8, 2026
- haythamasalama/skillstheir own version, first seen Nov 8, 2026
Used with
Projects with it also use squad-commands, ci-cd-pipelines and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Microsoft AzureSkillsquad-commands
Categorized catalog of common Squad operations. Coordinator reads this file and presents it as an interactive menu when the user asks for available commands or help.
Also in 5 projects that use this
harrissohail6Skillci-cd-pipelines
CI/CD pipeline design and implementation. Auto-activates when discussing deployment, automation, or pipelines.
Also in 6 projects that use this
Microsoft AzureSkillarchitectural-proposals
How to write comprehensive architectural proposals that drive alignment before code is written
Also in 4 projects that use this
GitHubSkille2e-template-testing
End-to-end validation of coordinator and agent template changes
Also in 3 projects that use this
GitHubSkillnotification-routing
Route agent notifications to specific channels by type — prevent alert fatigue from single-channel flooding
Also in 3 projects that use this
frostneySkillnative-nostalgia-stack
Applies the user's FreePascal toolchain and its build, formatting, hook, and test contracts while leaving project-specific mechanics local. Use when scaffolding or working in a FreePascal project that follows this toolchain.
Also in 3 projects that use this
- +5 more from Azure
- +1 more from github
Other versions188 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 188
- langfuse/langfuse★ 37ksame name
- modelcontextprotocol/typescript-sdk★ 14ksame name
- JetBrains/ideavim★ 10ksame name
- jokob-sk/NetAlertX★ 7.4ksame name
- netalertx/NetAlertX★ 7.4ksame name
- Galaxy-Dawn/claude-scholar★ 5.9ksame name
- github/gh-aw★ 5.6ksame name
- modelcontextprotocol/csharp-sdk★ 4.6ksame name
- antonbabenko/pre-commit-terraform★ 3.8ksame name
- github/squad★ 3.4ksame name
178 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository17 other files it gives its agents.
- code-analysisSkill
- code-generatorSkill
- contributingSkill
- daily-logSkill
- devflowSkill
- hexo-blog-updateSkill
- kimicode-vision-bridgeSkill
- knowledge-base-cacheSkill
- layered-first-principles-teachingSkill
- msvc-buildSkill
- mvp-designSkill
- paper-first-principlesSkill
- requirement-clarificationSkill
- research-to-practiceSkill
- taskmaster-skillSkill
- ue5-umgSkill
- unity-mcpSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 165 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 26
Only commits after confirmation
- Distinctive: line 36
When you need automated/unattended commits without user interaction
- Distinctive: line 37
When performing complex Git operations beyond standard commit/push workflows
- Distinctive: line 38
When a different skill or tool is explicitly designated for Git operations
- Distinctive: line 51
Commit and push if approved
- Distinctive: line 215
Check before committing: Always review changes
- Distinctive: line 218
Don't commit secrets: Check for API keys, passwords
“Common” is measured: kept by at least 6 in 10 of the 165 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Git Workflow Skill
Overview
Automate Git operations with safety checks and user confirmation. This skill ensures changes are reviewed and explicitly approved before committing or pushing.
When to Use
- Checks Workspace Status
- Shows modified files
- Lists untracked files
- Detects conflicts or merge states
- Smart Confirmation Prompt
- Lists all changes clearly
- Asks for explicit approval
- Provides multiple options (commit all, specific files, ignore, skip)
- Safe Commit & Push
- Only commits after confirmation
- Handles GitHub authentication
- Reports success or failure
- Conflict Detection
- Detects merge conflicts
- Suggests resolution steps
- Prevents force pushes
When NOT to use:
- When you need automated/unattended commits without user interaction
- When performing complex Git operations beyond standard commit/push workflows
- When a different skill or tool is explicitly designated for Git operations
Quick Start
Simple Commit
python scripts/git_commit.pyThe script will:
- Show
git status - Ask for confirmation
- Commit and push if approved
Interactive Mode
python scripts/git_commit.py --interactiveStep-by-step confirmation for each file.
Confirmation Format
📋 **Git Status Summary:**
Modified:
- SOUL.md (41 insertions)
- README.md (5 deletions)
Untracked:
- new-feature.md
- temp.log (should be ignored?)
✅ **Confirm:**
Reply:
- "yes" → commit all modified
- "commit with untracked" → commit all including untracked
- "only SOUL.md" → commit specific file
- "ignore temp.log" → add to .gitignore
- "skip" → do nothingSafety Rules
Never
- ❌ Commit without checking status first
- ❌ Commit without user confirmation
- ❌ Force push (
git push -f) - ❌ Commit binary/temporary files without asking
Always
- ✅ Check
git statusbefore any operation - ✅ Show list of changes for approval
- ✅ Respect
.gitignore - ✅ Handle errors gracefully
- ✅ Report what was done
Usage Examples
Example 1: Simple Workflow
$ python scripts/git_commit.py
📊 Git Status:
M SOUL.md
?? new-file.md
📋 Changes Summary:
Modified: SOUL.md
Untracked: new-file.md
✅ Confirm: Reply "yes" to commit modified, "commit with untracked" for all, or specify files
> yes
📝 Commit message: Update SOUL.md
✅ Committed: a1b2c3d Update SOUL.md
🚀 Pushed to origin/mainExample 2: With Untracked Files
$ python scripts/git_commit.py
📊 Git Status:
M README.md
?? temp.log
?? important.md
📋 Changes Summary:
Modified: README.md
Untracked: temp.log, important.md
✅ Confirm: What to commit?
> commit with untracked
⚠️ temp.log looks like a temporary file. Add to .gitignore instead?
> yes
📝 Commit message: Update README and add important docs
✅ Committed: b2c3d4e Update README and add important docs
🚀 Pushed to origin/mainExample 3: Skip Everything
$ python scripts/git_commit.py
📊 Git Status:
M SOUL.md
📋 Changes Summary:
Modified: SOUL.md
✅ Confirm: Reply "yes" to commit
> skip
⏹️ Skipped. No changes committed.Handling Edge Cases
Merge Conflicts
⚠️ **Merge Conflict Detected!**
Conflicted files:
- README.md
- config.yaml
Cannot commit until conflicts are resolved.
Suggested steps:
1. Edit files to resolve conflicts
2. Run: git add <resolved-files>
3. Run this script againDiverged Branches
⚠️ **Local branch is behind remote**
Run: git pull origin main first?
> yes
Pulling latest changes...
[...]
✅ Now you can commit your changes.Authentication Issues
❌ **Push Failed: Authentication Error**
Possible causes:
- SSH key not configured
- Token expired
- Wrong remote URL
Suggested fixes:
1. Check: git remote -v
2. Test: ssh -T git@github.com
3. Or use HTTPS with tokenBest Practices
- Check before committing: Always review changes
- Write clear messages: Describe what and why
- Commit related changes: One logical change per commit
- Don't commit secrets: Check for API keys, passwords
- Keep commits small: Easier to review and revert
Troubleshooting
"nothing to commit"
# Check if files are actually modified
git status
# Check if in git repository
git rev-parse --git-dir"Permission denied"
# Check SSH key
ssh -T git@github.com
# Or use HTTPS
git remote set-url origin https://github.com/username/repo.git"failed to push"
# Pull first
git pull origin main
# Resolve any conflicts
# Then commit againDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

