Spawn a Claude worker in an isolated git worktree for parallel development. Use when you need to work on a task in isolation without affecting current work.
Spawns an isolated Claude worker in a git worktree to handle tasks in parallel. Use when you need to work on a separate task without affecting your current branch. The worker creates a branch, completes the work, pushes changes, and opens a PR automatically.
/plugin marketplace add schmug/karkinos/plugin install karkinos@karkinosThis skill is limited to using the following tools:
Spawn a Claude worker in an isolated git worktree.
/worker <branch-name> <task description>
/worker feat/add-logging Add structured logging to the supervisor module
/worker fix/auth-bug Fix the authentication bypass in the API
/worker refactor/cleanup Refactor the instance manager for clarity
When the user invokes /worker, follow these steps:
Extract the branch name (first argument) and task description (remaining text).
# Get project name for worktree prefix
PROJECT=$(basename $(git rev-parse --show-toplevel))
WORKTREE_PATH="../${PROJECT}-$(echo $BRANCH | tr '/' '-')"
# Create the worktree with a new branch
git worktree add "$WORKTREE_PATH" -b "$BRANCH"
Run a Claude instance in the worktree with full autonomy:
cd "$WORKTREE_PATH" && claude --print --dangerously-skip-permissions "$TASK_DESCRIPTION"
After the worker completes successfully and has made commits:
# Push the branch to origin
git push -u origin "$BRANCH"
# Create PR with auto-generated summary
gh pr create --title "<commit message or task summary>" --body "$(cat <<'EOF'
## Summary
<brief description of changes>
## Changes
<list of key changes made>
---
🤖 Generated by Claude worker
EOF
)"
# Enable auto-merge (will merge automatically when CI passes)
gh pr merge --auto --squash
After the worker completes:
git log $BRANCH --oneline -5--dangerously-skip-permissions)git worktree list to see active workersgit worktree remove <path> to clean up