agentsmesh/agentsmesh/worktree
- community
Checking that the SKILL.md file is still in the repository.
Creates or reuses an isolated AgentsMesh Git worktree from a verified base branch, preserves existing changes, and optionally starts the worktree-scoped development environment. Use when the user asks for a new worktree or isolated work for a feature, fix, investigation, or review.
Install
npx vskill@latest install agentsmesh/agentsmesh/worktreeSKILL.md
AgentsMesh Worktree
Create worktrees next to the main checkout under AgentsMesh-Worktrees.
Workflow
- Determine the requested branch name, base branch (default
main), and
whether the task actually needs a running development stack.
- Inspect repository state and identify the base remote from the user's request,
the base branch upstream, or its URL:
``bash git status --short --branch git remote -v git worktree list ``
Preserve all existing changes. Do not stash, reset, commit, or clean the main checkout as a side effect of worktree creation.
- Fetch the selected base:
``bash git fetch <base-remote> <base-branch> ``
- Derive a filesystem-safe directory name by replacing
/in the branch with
-. Use $(dirname "$repo_root")/AgentsMesh-Worktrees; do not embed a user-specific absolute path.
- Check whether the branch or path already exists. If the branch is new:
``bash git worktree add -b <branch-name> \ <worktree-root>/<directory-name> \ <base-remote>/<base-branch> ``
If the branch already exists and is not checked out elsewhere, attach it without -b. Never delete or reset an existing branch to make the command succeed.
- In the new worktree, verify:
``bash git status --short --branch git log --oneline -3 git merge-base --is-ancestor <base-remote>/<base-branch> HEAD ``
- Start the environment only when runtime verification is needed. Read
references/dev-environment.md, run the appropriate Bazel lifecycle target, then load and report the generated deploy/dev/.env values.
Result
Report the absolute worktree path, branch, base ref and commit, whether the development stack was started, and the generated ports when applicable. Do not remove the worktree automatically; cleanup must preserve uncommitted or unpushed work.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingagents/skills/worktree/SKILL.md
Popularity
- Repository stars
- 2,305
- Repository forks
- 237
- 7-day trend score
- 39
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/agentsmesh/agentsmesh/worktree)