Rechercher

PythonReactSEOPDF
GitHub Skill

worktree

Planが複雑/完了した直後に自動的に呼び出す必要があるスキルです

KanayaActa☆ 0 Étoiles du dépôt0 Forks du dépôt

Installation

Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.

Voir la source ↗Guides

Instructions

git worktree を作成して並列作業を可能にします。

作成手順

  1. 現在位置を記録: PROJECT_ROOT=$(pwd) として保存
  2. git worktree add ../<branch-name> -b <branch-name>
  3. branch名にslashは使わないこと(例: feature-auth ✓, feature/auth ✗)
  4. 必要なら pnpm install を実行(判断基準: package.jsonに変更がある場合)

作業中の迷子防止(重要)

各コマンド実行前に pwd で現在位置を確認し、意図したディレクトリにいることを確認する。

完了時の手順(必須)

作業完了後は必ず以下を実行:

  1. ルートに戻る: cd $PROJECT_ROOT (絶対パスで戻る)
  2. 現在位置確認: pwd で正しいディレクトリにいることを確認
  3. クリーンアップ: git worktree remove ../<branch-name>
  4. 残存確認: git worktree list でworktreeが残っていないことを確認

注意

  • worktree ごとに node_modules が必要になる場合がある
  • 長期間放置するとディスクを圧迫する
  • 作業完了時のクリーンアップを忘れないこと
  • 迷子になったら: git worktree list で全worktreeの場所を確認

Exemples

Consultez les exemples du dépôt source.

Voir la source ↗

Historique source

Date d’indexation
2026-01-20
Mise à jour de l’index
2026-01-26
Branch
main

Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!