worktrunk

Manage git worktrees through a command-line interface with automated lifecycle hooks.

Updated Jul 15, 2024
One-click install
npx skills add https://github.com/christian-deleon/dotfiles --skill worktrunk-christian-deleon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: worktrunk
Source: https://github.com/christian-deleon/dotfiles/tree/main/ai/skills/worktrunk
Command: npx skills add https://github.com/christian-deleon/dotfiles --skill worktrunk-christian-deleon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, wt, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the management of git worktrees, providing an efficient and intuitive interface for branching, merging, and switching worktrees.

Core Features & Use Cases

  • Worktree Management: Automate the creation, switching, and removal of git worktrees.
  • Parallel Agent Workflows: Designed for parallel workflows where each agent operates on its own worktree.
  • Lifecycle Automation: Automates the entire lifecycle of worktrees, including hooks at every stage.
  • Use Case: When working on a feature branch, you can use this Skill to quickly switch to a new worktree, make changes, and merge back without manual intervention.

Quick Start

Use the worktrunk skill to switch to a new worktree for your feature branch 'feat'.

Frequently Asked Questions about worktrunk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage git worktrees for parallel workflows?

You can manage git worktrees for parallel workflows by using a command-line interface that automates worktree creation, switching, merging, and removal. This allows multiple agents to operate on separate branches simultaneously without manual intervention.

What are git worktrees and when do I need them for branching?

Git worktrees are linked working directories allowing multiple branches to be checked out simultaneously from a single repository. You need them when running parallel workflows where each agent operates on its own branch without stashing or committing current changes.

Can I automate the git worktree lifecycle with hooks?

Yes, the git worktree lifecycle can be fully automated with hooks at every stage. This includes automated hooks during worktree creation, switching, merging, and removal to streamline parallel development without manual intervention.

Do I need the wt tool to use this git worktree automation?

Yes, you need both git and the associated wt worktree management tool installed. These dependencies are required to execute the command-line operations for creating, switching, merging, and removing worktrees.

What's the best way to switch to a new git worktree for a feature branch?

The best way to switch to a new git worktree for a feature branch is using the command-line interface to quickly create a new worktree, make changes, and merge back automatically without manual branch switching or stashing.