git
Skill17 starsChanged 8 months agoMITArchived repositoryView on GitHub
Unified git workflow for branch-first development: status/diff review, security-first commits, worktrees, and PR creation/review via gh. Auto-activates on: "commit", "push", "branch", "worktree", "pr", "pull request", "merge", "rebase", "git".
- Commits and pushes
38 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 versions38 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 38
- 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
- cfircoo/claude-code-toolkit★ 17same name
28 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 repository9 other files it gives its agents.
- llms-full.txtllms.txt
- llms.txtllms.txt
- analyzeSkill
- convexSkill
- githubSkill
- oss-readinessSkill
- skill-builderSkill
- tmuxSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 7 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 30 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
3
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 19
Use the smallest workflow that matches the user intent.
- Very specific: line 46
If you want a different location (e.g.
- Very specific: line 50
If multiple worktree root folders are detected (example: both ./.worktrees/ and ../repo-feature-x/ exist), do not delete anything by …
- Very specific: line 51
Prefer consolidating into WORKTREES_DIR using git worktree move (when possible) or a remove+re-add plan.
- Distinctive: line 52
If stale metadata exists, propose a cleanup plan: git worktree prune + remove/quarantine orphan directories (with confirmation).
- Distinctive: line 56
Never force push to main/master.
- Distinctive: line 57
Never commit secrets (env files, keys, credentials).
- Distinctive: line 58
Never rewrite history that is already pushed unless explicitly requested.
- Distinctive: line 59
Always show what will change before an irreversible action.
- Distinctive: line 63
Read-only commands are always OK.
“Common” is measured: kept by at least 6 in 10 of the 30 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
Clear, repeatable git workflow with a bias toward safety.
Router
Use the smallest workflow that matches the user intent.
| User says | Load reference | Do |
| status / what changed (no "worktree" prefix) | references/read-only.md | read-only inspection |
| help / usage / man | references/cli-help.md | show CLI help safely |
| commit / stage | references/commit-workflow.md | stage + commit safely |
| branch / switch | references/branch-workflow.md | branch operations |
| worktree create/remove/list | references/worktree-workflow.md | worktree operations |
| worktree cleanup / normalize / consolidate | references/worktree-maintenance.md | auto-clean + consolidate worktrees |
| worktree summary / worktree status / show worktrees | references/worktree-summary.md | proactive analysis: PR status, change classification, safe-to-delete verdicts |
| tag / version | references/tag-workflow.md | create/list/inspect tags |
| pr / pull request | references/pr-workflow.md | create/update PR via gh |
| pr review / fix pr comments / threads | references/pr-review-workflow.md | review + respond + fix |
| merge / rebase / reset / revert | references/advanced-workflows.md | advanced/recovery (confirm first) |
Config (Edit Here)
Worktree working directories (the folders you cd into) live outside .git/.
Set this once and use it everywhere:
WORKTREES_DIR=./.worktrees
WORKTREE_PATH=$WORKTREES_DIR/<topic>If you want a different location (e.g. ../.worktrees or ~/worktrees/<repo>), update WORKTREES_DIR above and follow the same shape in references/worktree-workflow.md.
Resilience Rules (Worktrees)
- If multiple worktree root folders are detected (example: both
./.worktrees/and../repo-feature-x/exist), do not delete anything by default. - Prefer consolidating into
WORKTREES_DIRusinggit worktree move(when possible) or a remove+re-add plan. - If stale metadata exists, propose a cleanup plan:
git worktree prune+ remove/quarantine orphan directories (with confirmation).
Global Safety Rules (Never Violate)
- Never force push to main/master.
- Never commit secrets (env files, keys, credentials).
- Never rewrite history that is already pushed unless explicitly requested.
- Always show what will change before an irreversible action.
Confirmation Policy
Read-only commands are always OK.
Everything that changes state/history/remote requires explicit user confirmation:
git add,git commit,git pushgit merge,git rebase,git reset,git revertgit worktree add,git worktree removegit tag(create/delete)git branch -d/-D
Quick Start
# Read-only
git status
git diff
# Commit
git diff --cached
git commit -m "feat(scope): why"
# Worktrees
git worktree listDoes 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.

