git-worktree
Skill10 starsChanged 56 days agoMITView on GitHub
Create Git branches, worktrees, or isolated snapshots of uncommitted work.
27 other projects use a version of this.
Adopted by
Most recently taken up by
- KroxiDev/engineering-skillstheir own version, first seen Oct 5, 2026
- sbluemin/fleet-harnesstheir own version, first seen Oct 4, 2026
- iliaal/ai-skillstheir own version, first seen Oct 3, 2026
- davidondrej/skillstheir own version, first seen Oct 3, 2026
- aprameyak/coding-skillstheir own version, first seen Oct 2, 2026
- lldwb/lldwb-claude-skillstheir own version, first seen Sep 28, 2026
Used with
Projects with it also use grill-with-docs, caveman and 6 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.
MicrosoftSkillgrill-with-docs
Grilling session that challenges your plan against the existing domain model, sharpens terminology, and updates documentation (CONTEXT.md, ADRs) inline as decisions crystallise. Use when user wants to stress-test a plan against their project's language and documented decisions.
Also in 4 projects that use this
MicrosoftSkillcaveman
Ultra-compressed response style that reduces output token count while preserving technical accuracy, with intensity levels and auto-clarity safety rules
Also in 3 projects that use this
Google CloudSkilltriage
Gather context on a change or bug and plan the implementation.
Also in 3 projects that use this
AWSSkillgrill-me
A relentless interview to sharpen a plan or design.
Also in 4 projects that use this
OpenAISkillbrainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
Also in 3 projects that use this
VercelSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, artifacts, posters, or applications (examples include websites, landing pages, dashboards, React components, HTML/CSS layouts, or when styling/beautifying any web UI). Generates creative, polished code and UI design that avoids generic AI aesthetics.
Also in 4 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- davidondrej/skills★ 4.1ksame name
- nwiizo/ccswarm★ 153same name
- ratacat/claude-skills★ 56same name
- iliaal/ai-skills★ 43same name
- sbluemin/fleet-harness★ 17same name
- cropsgg/skills★ 15same name
- caidanw/skills★ 9same name
- BackToCimaCoppi/Praxis★ 6same name
- dzianisv/skills★ 4same name
- KroxiDev/engineering-skills★ 4same name
17 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 repository101 other files it gives its agents.
- AGENTS.mdAGENTS.md
- dot_agents/AGENTS.mdAGENTS.md
- skills/agent-project/templates/AGENTS.mdAGENTS.md
- skills/repository-docs/references/agents.mdAGENTS.md
- chezmoiSkill
- dot-developmentSkill
- dot-releaseSkill
- dot-skillsSkill
- dot-verifySkill
- acliSkill
- agent-evaluationSkill
- agent-frameworksSkill
- agent-harnessesSkill
- agent-loopsSkill
- agent-projectSkill
- agent-protocolsSkill
- agent-usageSkill
- agySkill
- airflowSkill
- ai-security-assessmentSkill
- api-clientSkill
- ast-grepSkill
- auth-statusSkill
- awsSkill
- benchmarkSkill
- bfSkill
- chrome-devtoolsSkill
- cli-developmentSkill
- clipboardSkill
- cloud-runSkill
- code-securitySkill
- colabSkill
- containerizeSkill
- course-developmentSkill
- databricksSkill
- data-migrationSkill
- delegate-tasksSkill
- diagrams-as-codeSkill
- dockerSkill
- documentation-siteSkill
- dot-cliSkill
- dprintSkill
- draft-mailSkill
- duckdbSkill
- fact-checkSkill
- fmind-visualsSkill
- full-reviewSkill
- gcloudSkill
- ghSkill
- git-deliverySkill
- github-actionsSkill
- github-issuesSkill
- github-pull-requestSkill
- github-repositorySkill
- google-developerSkill
- gwsSkill
- handoffSkill
- hfSkill
- implementation-planSkill
- incident-responseSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
3
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 20
Choose isolation: use a linked worktree for a committed revision or new branch.
- Distinctive: line 22
Inspect execution inputs: read the destination's tasks and hooks before running them.
- Distinctive: line 40
No forced reuse: do not use force, stash, reset, or broad clean commands to make a busy branch or dirty destination available.
“Common” is measured: kept by at least 6 in 10 of the 22 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 Worktree
Choose a branch in the current checkout or an isolated workspace according to the task. A branch-only request needs no extra checkout and follows the branches guide; isolation, candidate identity, and cleanup follow the workflow below.
Workflow
- Record the source: inspect
git status --short,git diff,git diff --cached,git rev-parse HEAD, andgit worktree list --porcelain. Identify whether the candidate is a commit, the index, or selected working-tree changes. - Choose isolation: use a linked worktree for a committed revision or new branch. Use the dirty candidate procedure when validation must include uncommitted files, or when checks must not share Git refs or hooks with the source.
- Create a fresh destination: choose a new sibling or temporary path outside the source. For a read-only review of committed code, use
git worktree add --detach <destination> <revision>; for implementation, usegit worktree add -b <new-branch> <destination> <base>. - Inspect execution inputs: read the destination's tasks and hooks before running them; isolate virtual environments, build output, coverage, ports, databases, and caches that tests mutate. Do not copy credentials or reuse a live database to make a fixture pass.
- Run the owning gate: invoke the project's commands from the destination. Formatter output changes the tested candidate; compare it with the intended source before transferring proof or applying any resulting edits.
- Return only intended changes: review the destination diff, transfer task-owned changes when authorized, and preserve the source index. Commits, pushes, and merges follow the user's requested delivery flow.
- Clean up deliberately: inspect destination status and recover useful artifacts first. Use
git worktree remove <destination>for an owned clean linked worktree; retain a dirty one until its changes are accounted for. Remove only the recorded disposable clone for a copied candidate. - Report identity: revision, included dirty changes, executed gate, source-versus-tested differences, and any retained workspace.
Task guides
<!-- guides:start -->- branches: Create and switch to a conventional
<type>/<slug>branch in the current checkout.
<!-- guides:end -->Gotchas
- A clean HEAD is a different candidate: a passing worktree does not validate uncommitted edits in the source.
- Worktrees share Git state: linked worktrees have separate indexes but share objects, refs, and usually repository configuration and hooks. They are not a security sandbox; do not run untrusted code merely because it is in a worktree.
- No forced reuse: do not use force, stash, reset, or broad clean commands to make a busy branch or dirty destination available.
- Neutralize external symlinks: inspect and replace writable links into the source with safe fixture data or stop that test; a copied symlink can defeat isolation.
Documentation
- Git worktree · Git clone
- Companion skills: mise (gates), resolve-conflicts (integration conflicts).
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.

