worktree
Installation
SKILL.md
Worktree
- Create exactly one worktree per request with
opencode.worktree_createand a short, task-basedname. It may be used as a subdomain, so keep it DNS-safe and within 63 characters including any added prefixes and suffixes. Let the project's configured strategy handle creation. - After creation succeeds, call
opencode.session_movewith the returned directory in a separate tool call. - Continue the original task from the moved session.
If creation succeeds but the move fails, report the existing worktree path and blocker. Retry only the move to that path, not creation. If the tools are unavailable, report the blocker.