git
Skill19 starsChanged 3 months agoMITView on GitHub
Git operations and worktree management
- Deletes or force-pushes
- Commits and pushes
57 other projects use a version of this.
Adopted by
Most recently taken up by
- bmcszk/agent-skillstheir own version, first seen Nov 8, 2026
- BridgLabs/opencodereviewtheir own version, first seen Nov 8, 2026
- Conceptual-Machines/magda-coretheir own version, first seen Nov 7, 2026
- tsukhani/jclawtheir own version, first seen Nov 5, 2026
- cekrauseee/harnesstheir own version, first seen Nov 1, 2026
- jmlrt/skillstheir own version, first seen Nov 1, 2026
Used with
Projects with it also use sql, databases and 7 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 4 projects that use this
mrgoonieSkilldatabases
Work with MongoDB (document database, BSON documents, aggregation pipelines, Atlas cloud) and PostgreSQL (relational database, SQL queries, psql CLI, pgAdmin). Use when designing database schemas, writing queries and aggregations, optimizing indexes for performance, performing database migrations, configuring replication and sharding, implementing backup and restore strategies, managing database users and permissions, analyzing query performance, or administering production databases.
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 4 projects that use this
MicrosoftSkilltypescript
TypeScript best practices for this monorepo. Use this skill when: (1) writing new TypeScript code, (2) reviewing TypeScript code, (3) working with API responses, fetch calls, or JSON parsing, (4) adding or modifying types and interfaces.
Also in 4 projects that use this
VercelSkillreact
React renderer for json-render that turns JSON specs into React components. Use when working with @json-render/react, building React UIs from JSON, creating component catalogs, or rendering AI-generated specs.
Also in 3 projects that use this
NVIDIASkillgithub
Interact with GitHub using the gh CLI restricted to REST API only (no GraphQL). Use when the user wants to work with GitHub issues, pull requests, repos, releases, or Actions — especially in sandboxed environments where the GraphQL endpoint may be blocked. Trigger keywords - github, gh, pull request, PR, github issue, github actions, workflow, release, gh api.
Also in 6 projects that use this
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 57
- macro-inc/macro★ 6ksame name
- epicenter-md/epicenter★ 4.8ksame name
- EpicenterHQ/epicenter★ 4.8ksame name
- carapace-sh/carapace-bin★ 2ksame name
- LuisaGroup/LuisaCompute★ 1.1ksame name
- kagenti/kagenti★ 303same name
- Conceptual-Machines/magda-core★ 258same name
- typv/nest-turbo-starter★ 224same name
- BridgLabs/opencodereview★ 79same name
- matteing/opal★ 59same name
47 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 repository25 other files it gives its agents.
- assess-findingsSkill
- autopilotSkill
- build-fixSkill
- code-searchSkill
- context-usageSkill
- debugSkill
- decideSkill
- designSkill
- docsSkill
- forgetSkill
- implementSkill
- memoriseSkill
- patternsSkill
- perfSkill
- plan-swarmSkill
- recallSkill
- reflectSkill
- reviewSkill
- semgrepSkill
- surveySkill
- swarmSkill
- swarm-statusSkill
- testSkill
- verifySkill
- worktree-resolveSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 51 edited versions we read keep these.
5
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
- Distinctive: line 33
Never skip hooks unless explicitly asked
- Distinctive: line 107
Pre-commit hook failure: - Read the error, fix the issue, create NEW commit (never amend after hook failure)
- Distinctive: line 113
Branch already exists: - Use different name or checkout existing
- Distinctive: line 115
Locked worktree: - Check git worktree list for stale entries, use git worktree prune
- Distinctive: line 161
When reviewing diffs or preparing commits, use findings tools to understand the quality context of changed code:
“Common” is measured: kept by at least 6 in 10 of the 51 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 Mode
Recommended model tier: balanced (sonnet) - this skill performs straightforward operations
Expert git operations including worktree management for parallel work.
Commit Guidelines
Message Format
<type>: <short description>
[optional body]Types: feat, fix, refactor, docs, test, chore
Commit Process
- Check status:
git status - Review diff:
git diff - Stage specific files (not
git add .) - Write descriptive message
- Never skip hooks unless explicitly asked
Worktree Management
Create Worktree
# For feature work
git worktree add ../feature-branch -b feature/name
# For parallel tasks
git worktree add ../aide-worktrees/task-1 -b aide/task-1List Worktrees
git worktree listRemove Worktree
git worktree remove ../feature-branch
git branch -d feature/name # if mergedCommon Operations
Feature Branch Workflow
git checkout -b feature/name
# ... work ...
git add <specific-files>
git commit -m "feat: add feature"
git push -u origin feature/nameRebase onto Main
git fetch origin
git rebase origin/main
# resolve conflicts if any
git push --force-with-leaseCherry-Pick
git cherry-pick <commit-hash>Stash
git stash push -m "description"
git stash list
git stash popSafety Rules
Never run without explicit user request:
git push --force(use--force-with-leaseif needed)git reset --hardgit clean -fgit checkout .orgit restore .
Safe operations:
git status,git diff,git loggit add <specific-files>git commitgit push(without force)git worktreeoperations
Failure Handling
Commit failures:
- Pre-commit hook failure - Read the error, fix the issue, create NEW commit (never amend after hook failure)
- Merge conflict - Report conflicts, do not auto-resolve without explicit request
- Push rejected - Fetch and rebase, report if conflicts arise
Worktree failures:
- Branch already exists - Use different name or checkout existing
- Dirty working tree - Stash or commit before worktree operations
- Locked worktree - Check
git worktree listfor stale entries, usegit worktree prune
Recovery commands:
# Recover from bad merge (before commit)
git merge --abort
# Recover from bad rebase (before complete)
git rebase --abort
# Prune stale worktrees
git worktree pruneVerification Criteria
After commit:
# Verify commit was created
git log -1 --oneline
# Verify expected files changed
git show --stat HEADAfter push:
# Verify remote updated
git log origin/<branch> -1 --onelineAfter worktree creation:
# Verify worktree exists
git worktree list | grep <worktree-path>
# Verify branch created
git branch -a | grep <branch-name>Change Context with Findings
When reviewing diffs or preparing commits, use findings tools to understand the quality context of changed code:
mcp__plugin_aide_aide__findings_search— Search for known issues (complexity, secrets, clones) in changed filesmcp__plugin_aide_aide__findings_list— List all findings for a specific file to understand its healthmcp__plugin_aide_aide__findings_stats— Quick overview of finding counts across the project
This helps surface pre-existing issues in files you're touching, and can inform whether a commit should also address nearby problems.
Parallel Work Pattern
For swarm mode or parallel features:
# Setup
git worktree add ../work-1 -b feature/part-1
git worktree add ../work-2 -b feature/part-2
# Work in parallel (different terminals/agents)
cd ../work-1 && # ... implement part 1
cd ../work-2 && # ... implement part 2
# Merge
git checkout main
git merge feature/part-1
git merge feature/part-2
# Cleanup
git worktree remove ../work-1
git worktree remove ../work-2
git branch -d feature/part-1 feature/part-2Does 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.

