git-worktree
Skill17 starsChanged 58 days agoMITView on GitHub
Create a canary-based worktree for Fleet changes, create a detached baseline for revision comparison or bisect, or remove an owned dedicated checkout. Use rebase-on-canary to refresh an existing branch; ordinary read-only investigation needs no new worktree.
- Installs packages
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
- fmind/dottheir own version, first seen Oct 5, 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
- cropsgg/skills★ 15same name
- fmind/dot★ 10same 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 repository14 other files it gives its agents.
- .changelog.d/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- ai-gateway-loop-optimizationSkill
- clean-codeSkill
- console-e2eSkill
- console-handoffSkill
- console-performanceSkill
- design-sweepSkill
- learning-harvestSkill
- product-proposalSkill
- pr-workflowSkill
- rebase-on-canarySkill
- release-version-updateSkill
- wiki-historySkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 22 edited versions we read keep these.
4
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 23
Never remove the main checkout.
- Distinctive: line 24
Never create or preserve a new-worktree symlink targeting main-checkout content.
- Very specific: line 25
Never replace colliding paths/branches automatically.
- Distinctive: line 36
Do not skip path, ownership, or branch-protection checks.
- Distinctive: line 38
After creation, every edit/command uses the absolute worktree path.
“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
Interpret the request as create or remove. Creation defaults to a branch for repository changes; use the detached baseline route only when the task needs a separate historical revision for comparison or bisect. A baseline is read-only source, not an implementation checkout. Ask only when the intended action or revision is unclear. Never adopt another session's worktree or overwrite an existing path.
Inputs
<worktree-name>: the directory under.fleet/worktrees/. Infer a task-specific name when absent; when only a branch is given, use it with/replaced by-.<new-branch>: branch creation only; defaults to<worktree-name>. May carry one Conventional Commits type prefix (fix/<name>,feat/<name>), as on the remote; a flat name is equally valid.<base-branch>: branch creation only; defaults tocanary. Rejectmain/master; ask before using any other base.<revision>: baseline creation only; the task's specific commit or ref, resolved once to a full commit SHA. No implicitcanaryfallback and no new branch.<delete-remote>: branch removal only; defaults tono. Setyesonly for explicit remote-cleanup requests.<force>: branch removal defaults toyes. With explicitno, do not force-remove the worktree or force-delete its branch; report the blocked state. Baseline removal never uses force.
Trim names and replace internal spaces with -, preserving deliberate capitalization. A segment matches [A-Za-z0-9._-]+ without .., a leading ., or a trailing .lock; reject everything else, including backslashes and shell metacharacters. The directory name is exactly one segment. A branch name is one segment or <type>/<segment> with <type> a lowercase Conventional Commits type (fix, feat, …); reject any other /. Neither a new nor deleted branch may be main/master/canary.
Safety boundaries
- Never remove the main checkout. Stop before removal commands for protected-branch worktrees too.
- Never create or preserve a new-worktree symlink targeting main-checkout content. pnpm links within the new worktree or to an external package store are allowed.
- Never replace colliding paths/branches automatically. Do not use
reset --hard, forced file restoration, or hook bypasses to clean up. - Removal requires a request targeting the owned dedicated worktree, authorized post-merge cleanup, or an explicitly disposable baseline created for the current task. Inspect and disclose dirty/unpushed/unmerged state first; branch force cleanup stays within that authority. A general task request or reading this skill as a reference does not authorize deletion.
Execution routes
| Mode | Read before execution | Completion condition |
| create branch | Create | New checkout from remote base, successful internal pnpm install --frozen-lockfile, subsequent commands fixed to its path |
| create baseline | Baseline | Detached checkout at the recorded commit, ownership evidence saved, required preparation completed |
| remove | Remove; it routes baselines separately | Verified removal, branch/remote outcome or baseline evidence reported |
Do not skip path, ownership, or branch-protection checks. Execute this lifecycle directly through Bash rather than creating temporary helper scripts. Stop immediately on installation failure in either creation route; do not call the worktree ready. On removal failure, report exactly what remains.
After creation, every edit/command uses the absolute worktree path. Set the execution root for background commands too; a green check in the main checkout is not evidence. Reading main-checkout status to detect leaked edits is an explicit read-only exception.
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.

