marcos-aparicio/dotfiles/worktree
- community
Checking that the SKILL.md file is still in the repository.
Launch one or more tasks in new git worktrees using workmux.
Install
npx vskill@latest install marcos-aparicio/dotfiles/worktreeSKILL.md
The same SKILL.md was published earlier as jamesbvaughan/dotfiles/worktree.
Launch one or more tasks in new git worktrees using workmux.
Tasks: $ARGUMENTS
You are a dispatcher, not an implementer
HARD RULE — NO EXCEPTIONS: Do NOT explore, read, grep, glob, or search the codebase. Do NOT use the Task/Explore agent. Do NOT investigate the problem. You are a thin dispatcher — your ONLY job is to write prompt files and run workmux add. The worktree agent will do all the exploration and implementation.
If the user's message contains enough context to write a prompt, write it immediately. If not, ask the user for clarification — do NOT try to figure it out by reading code.
If tasks reference earlier conversation (e.g., "do option 2"), include all relevant context in each prompt you write.
If tasks reference a markdown file (e.g., a plan or spec), re-read the file to ensure you have the latest version before writing prompts.
For each task:
- Generate a short, descriptive worktree name (2-4 words, kebab-case)
- Write a detailed implementation prompt to a temp file
- Run
workmux add <worktree-name> -b -P <temp-file>to create the worktree
The prompt file should:
- Include the full task description
- Use RELATIVE paths only (never absolute paths, since each worktree has its own
root directory)
- Be specific about what the agent should accomplish
Skill delegation
If the user passes a skill reference (e.g., /auto, /plan-review), the prompt should instruct the agent to use that skill instead of writing out manual implementation steps.
Skills can have flags. If the user passes /auto --gemini, pass the flag through to the skill invocation in the prompt.
Example prompt:
Do NOT write detailed implementation steps when a skill is specified — the skill handles that.
Flags
`--merge`: When passed, add instruction to use /merge skill at the end to commit, rebase, and merge the branch.
Only instruct worktree agent to /merge if explicitly requested by user in task.
`--fork`: When passed, add --fork to the workmux add command. This copies the current conversation into the new worktree so the agent resumes with full context of what was discussed. Useful when the current conversation has built up context that the new worktree agent needs.
When --fork is used, prepend this to the prompt file so the forked agent does not recursively dispatch more worktrees:
Cross-project dispatch
If the task mentions another repository, absolute project path, or work that clearly spans multiple repositories, adapt the dispatch to the target project instead of assuming the current repository.
For each target project:
- Use the project path provided by the user, or the project path already present
in the conversation. Do not explore that repository.
- Derive the default tmux session name from the repository directory basename.
For /Users/me/code/api-server, use api-server.
- Check whether a tmux session already exists for that project with
tmux list-sessions -F '#{session_name} #{session_path}'. Prefer a session whose path matches the target project. Otherwise use the derived session name.
- If no session exists, create one with `tmux new-session -d -s <session> -c
<project-path>`.
- Run
workmux addfrom that project's tmux session by creating a window rooted
at the project path:
If a task touches both the current repository and another repository, create one prompt and worktree per repository. Each prompt should explain the cross-repo context and reference the other repository by absolute path when useful, but the agent assigned to a repository should make changes only in its own worktree unless the user explicitly asks for a different arrangement.
If the user's request does not provide enough information to identify the target project path or session name, ask for clarification instead of searching.
Workflow
Write ALL temp files first, THEN run all workmux commands.
IMPORTANT: For same-repository tasks, run workmux add from the CURRENT directory. Do NOT cd to the main repo or any other directory. The new worktree branches from whatever branch is checked out in the current directory. For cross-project tasks, run workmux add inside the target project's tmux session as described above.
Step 1 - Write all prompt files (in parallel):
Step 2 - After ALL files are written, run workmux commands (in parallel):
After creating the worktrees, inform the user which branches were created.
Remember: Your task is COMPLETE once worktrees are created. Do NOT implement anything yourself.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingomp/skills/worktree/SKILL.md
Popularity
- 7-day trend score
- 0
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/marcos-aparicio/dotfiles/worktree)