Agent skill

git-worktree

Git worktreeを使用して、複数のブランチで作業を同時並行で実行します。

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/git-worktree-yota-k-dotfiles

SKILL.md

前提

  • このコマンドを実行したプロジェクトの構造を正確に理解し、env・依存パッケージのインストールを実行する。
  • 作業完了の定義は以下とする。
    • 新しいブランチを作成して並行して作業を行う場合: commit-and-prコマンドを使用して、変更内容をコミットしてリモートにプッシュされ、ドラフトのプルリクエストが作成された。
    • 既存のブランチで並行して作業を行う場合: commit-and-pushコマンドを使用して、変更内容をコミットしてリモートにプッシュされた。

指示事項

  • 引数で指定されたブランチ名を使用して、新しいGit worktreeを作成する。
  • すでに同名のブランチが存在する場合は、エラーメッセージを出力して処理を中止する。
  • 作業が完了したら、作業に使用したworktreeごと削除する。

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results