git-workflow

Automate Git branch and worktree management for AI experiments.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/jeff-hamm/ai-tools --skill git-workflow-jeff-hamm
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/jeff-hamm/ai-tools/tree/main/src/skills/git-workflow
Command: npx skills add https://github.com/jeff-hamm/ai-tools --skill git-workflow-jeff-hamm

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, pwsh, python3, and includes scripts (resource) components.

What problem does it solve?

Automates the creation and management of isolated AI-focused branches and their dedicated worktrees, ensuring changes are organized, reviewable, and easy to clean up.

Core Features & Use Cases

  • Create or reuse a dedicated AI branch (e.g., current_branch_ai) and a corresponding worktree for experimentation with Copilot-powered changes.
  • Manage merges back to the main workflow with optional squash merges and automatic cleanup of temporary branches and worktrees.
  • Benefit from consistent commit messages and safe, reversible operations during exploratory work.

Quick Start

Start a new AI workflow by creating a dedicated AI branch and worktree for your current branch.

Frequently Asked Questions about git-workflow

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

FAQPage Schema
How do I isolate AI experiments in a separate Git branch and worktree?

Git worktree isolation separates AI experiments into a dedicated branch and directory, keeping your main workflow clean. This Skill automates creating, merging, and cleaning up those worktrees for reversible exploratory work.

How do I create a dedicated Git worktree for Copilot changes?

You can create a dedicated worktree by running the create action, which sets up a corresponding AI branch and directory for your current branch. This allows you to safely experiment with Copilot changes.

Do I need PowerShell and Python to automate Git branch management?

Yes, you need PowerShell (pwsh) and Python 3 installed alongside Git. The Skill uses bash and pwsh scripts to automate branch and worktree management tasks across different scenarios.

Can I squash merge AI branches back to the main workflow with automatic cleanup?

Yes, you can merge changes back to the main workflow with optional squash merges using the merge action. The process includes automatic cleanup of temporary branches and worktrees while preserving consistent commit messages.

What is the best way to manage temporary Git branches for AI experiments?

The best way is automating the lifecycle of temporary branches and worktrees with dedicated scripts. This approach preserves history across multiple scenarios and ensures safe, reversible operations during exploratory work.