git-worktree
Skill17 starsChanged 5 days agoMITView on GitHub
Create a canary-based worktree for Fleet changes, a detached read-only baseline for revision comparison or bisect, or remove an owned dedicated checkout. Temporary source edits, such as a measurement string, go in a disposable branch worktree, not a baseline. Use rebase-on-canary to refresh an existing branch; ordinary read-only investigation needs no new worktree.
- Installs packages
30 other projects use a version of this.
Adopted by
Most recently taken up by
- aegntic/compound-engineeringtheir own version, first seen Nov 8, 2026
- yht-4403/jc-agent-skillstheir own version, first seen Nov 8, 2026
- yuri-xyz/skillstheir own version, first seen Nov 8, 2026
- iliaal/ai-skillstheir own version, first seen Nov 7, 2026
- eliasjnior/claude-skillstheir own version, first seen Nov 1, 2026
- tovrleaf/openkatatheir own version, first seen Nov 1, 2026
Used with
Projects with it also use agent-native-architecture, document-review 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.
CodeWithBehnamSkillagent-native-architecture
Build applications where agents are first-class citizens. Use this skill when designing autonomous agents, creating MCP tools, implementing self-modifying systems, or building apps where features are outcomes achieved by agents operating in a loop.
Also in 3 projects that use this
CodeWithBehnamSkilldocument-review
This skill should be used to refine brainstorm or plan documents before proceeding to the next workflow step. It applies when a brainstorm or plan document exists and the user wants to improve it.
Also in 3 projects that use this
MicrosoftSkillgit-commit
Stage user-selected paths, confirm the exact staged set, and create one local Conventional Commit, or generate a commit message for staged changes without committing. Use when you want a guarded commit or a ready-to-paste message.
Also in 3 projects that use this
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 3 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
BlockSkillfrontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
Also in 4 projects that use this
Other versions30 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 30
- davidondrej/skills★ 4.3ksame name
- iliaal/ai-skills★ 45same name
- BackToCimaCoppi/Praxis★ 6same name
- dzianisv/skills★ 4same name
- KroxiDev/engineering-skills★ 4same name
- MithunWijayasiri/dotclaude★ 4same name
- CodeWithBehnam/cc-docs★ 2same name
- hmj1026/dhpk★ 2same name
- tsubakimoto/skills★ 2same name
- yuri-xyz/skills★ 2same name
20 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 repository13 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
The file
We split this skill into the rules it gives an agent
6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 25 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
2
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 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.
- Very specific: line 26
Stop a daemon only through the target worktree's own path (git -C <path> fsmonitor--daemon stop).
- Distinctive: line 37
Do not skip path, ownership, or branch-protection checks.
- Distinctive: line 39
After creation, every edit/command uses the absolute worktree path.
“Common” is measured: kept by at least 6 in 10 of the 25 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. - Stop a daemon only through the target worktree's own path (
git -C <path> fsmonitor--daemon stop). Never stop other daemons or processes by name or in bulk (pkill,killall, all-daemon shutdown). - 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.

