git
Skill17 starsChanged 9 months agoMITView on GitHub
Git operations for committing, pushing, and opening PRs using gh CLI. Use when performing version control tasks. This skill should be used when the user asks to "commit", "push", "create a PR", "ship code", "git status", or mentions git workflow, version control, or pull requests.
- Deletes or force-pushes
- Commits and pushes
37 other projects use a version of this.
Adopted by
Most recently taken up by
- tsukhani/jclawtheir own version, first seen Oct 5, 2026
- ROCm/rocprofiler-systems-skillstheir own version, first seen Sep 30, 2026
- Conceptual-Machines/magda-coretheir own version, first seen Sep 28, 2026
- therealtinhtute/mono-harnesstheir own version, first seen Sep 27, 2026
- iuliandita/skillstheir own version, first seen Sep 24, 2026
- kaiohenricunha/dotbabeltheir own version, first seen Sep 24, 2026
Used with
Projects with it also use sql, api 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.
thechandanbhagatSkillsql
Write SQL queries, optimize database performance, design schemas, and debug SQL issues. Use for database operations, query optimization, and schema design.
Also in 3 projects that use this
xiaobei930Skillapi
RESTful API design patterns and best practices. Use when creating endpoints, designing APIs, or implementing routes.
Also in 3 projects that use this
MicrosoftSkillscaffold
Also in 4 projects that use this
MicrosoftSkillperf
Speed and memory performance rules for Rust crates, the Node addon, webui-framework, and webui-router.
Also in 3 projects that use this
mrgoonieSkilldevops
Deploy to Cloudflare (Workers, R2, D1), Docker, GCP (Cloud Run, GKE), Kubernetes (kubectl, Helm). Use for serverless, containers, CI/CD, GitOps, security audit.
Also in 3 projects that use this
AnthropicSkilldebug
Structured debugging session — reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
Also in 7 projects that use this
Other versions37 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 37
- Conceptual-Machines/magda-core★ 229same name
- Rune-kit/rune★ 88same name
- matteing/opal★ 61same name
- maragudk/skills★ 49same name
- xiaobei930/cc-best★ 48same name
- BULDEE/ai-craftsman-superpowers★ 35same name
- hyperb1iss/hyperskills★ 35same name
- tsukhani/jclaw★ 19same name
- jmylchreest/aide★ 18same name
- kecoma1/MQL5-SKILLS★ 17same name
27 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 repository19 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- manage-skillsSkill
- manage-hooksSkill
- create-meta-promptsSkill
- create-plansSkill
- create-subagentsSkill
- damage-controlSkill
- debug-like-expertSkill
- docs-masterSkill
- file-searchSkill
- generate-imagesSkill
- generate-prdSkill
- manage-slash-commandsSkill
- pytest-best-practicesSkill
- ralph-convert-prdSkill
- ralph-orchestratorSkill
- spec-interviewSkill
- sqlalchemy-postgresSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 29 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 20
If current branch is main or master, create a new branch before committing/pushing
- Very specific: line 21
Use a descriptive branch name based on the changes (e.g., fix/login-bug, feat/add-filter)
- Distinctive: line 22
Only push to feature/fix branches, never directly to the default branch
- Distinctive: line 25
Check git status before staging
- Distinctive: line 26
Check git log for commit style
- Distinctive: line 27
Check remote tracking before push </git_safety>
- Distinctive: line 39
Use HEREDOC for multi-line messages:
“Common” is measured: kept by at least 6 in 10 of the 29 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
<essential_principles>
<git_safety> Never run destructive commands without explicit user request:
- No
git push --forceto main/master - No
git reset --hard - No
--no-verifyflag (skip hooks) - No
git commit --amendon pushed commits
Never push directly to main/master:
- If current branch is
mainormaster, create a new branch before committing/pushing - Use a descriptive branch name based on the changes (e.g.,
fix/login-bug,feat/add-filter) - Only push to feature/fix branches, never directly to the default branch
Always verify before acting:
- Check
git statusbefore staging - Check
git logfor commit style - Check remote tracking before push </git_safety>
<commit_format> End all commit messages with:
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>Use HEREDOC for multi-line messages:
git commit -m "$(cat <<'EOF'
Message here
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"</commit_format>
<pr_format> PR body structure:
## Summary
<1-3 bullet points>
## Test plan
- [ ] Test item 1
- [ ] Test item 2
🤖 Generated with [Claude Code](https://claude.com/claude-code)</pr_format>
</essential_principles>
<intake>
What would you like to do?- Commit - Stage and commit changes
- Push - Push commits to remote
- PR - Open a pull request
- Ship - Full workflow: commit + push + PR
Wait for response before proceeding.
</intake>
<routing>
| Response | Workflow |
|----------|----------|
| 1, "commit", "stage" | `workflows/commit.md` |
| 2, "push", "upload" | `workflows/push.md` |
| 3, "pr", "pull request", "open pr" | `workflows/pr.md` |
| 4, "ship", "full", "all" | Run commit → push → pr sequentially |After reading the workflow, follow it exactly.
</routing>
<workflows_index>
| Workflow | Purpose |
| commit.md | Stage changes and create commit with proper message |
| push.md | Push commits to remote, create branch if needed |
| pr.md | Create pull request with gh CLI |
| </workflows_index> |
Does 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.

