git
Skill18 starsChanged 3 months agoMITView on GitHub
Git operations and worktree management
- 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 5 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
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
GitHubSkillrefactor
Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.
Also in 5 projects that use this
0xSeroSkillsecurity
Also in 4 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
- cfircoo/claude-code-toolkit★ 17same 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 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 29 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 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
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.

