Safely remove an autonomy worktree while preserving the branch and its history
Safely removes an autonomy worktree directory while preserving the branch and all commits.
/plugin marketplace add tilmon-engineering/claude-skills/plugin install autonomy@tilmon-eng-skills[--force] <strategy-name>sonnetSafely remove an autonomy worktree directory while preserving the autonomy branch, commits, and iteration tags.
You must invoke the removing-worktree skill to perform the removal.
Use the Skill tool:
skill: "autonomy:removing-worktree"
args: "[--force] <strategy-name>"
Arguments:
--force (optional) - Skip uncommitted changes check and force removalstrategy-name (required) - Name of worktree to remove (without autonomy/ prefix)The skill will:
.worktrees/autonomy/<strategy-name>/--force)Example usage:
# Safe removal (fails if uncommitted changes)
/remove-worktree experiment-b
# Force removal (discards uncommitted changes)
/remove-worktree --force experiment-b
# Remove from within another worktree
cd .worktrees/autonomy/experiment-a
/remove-worktree experiment-b # Removes sibling worktree
What gets removed:
.worktrees/autonomy/<strategy-name>/What persists:
autonomy/<strategy-name> and all commitsautonomy/<strategy-name>/iteration-NNNN)Manual removal: If automated removal fails:
git worktree remove --force .worktrees/autonomy/<strategy-name>
git worktree prune