Agent skill
worktree
Planが複雑/完了した直後に自動的に呼び出す必要があるスキルです
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/worktree-kanayaacta-ai-driven-dev-templa
SKILL.md
git worktree を作成して並列作業を可能にします。
作成手順
- 現在位置を記録:
PROJECT_ROOT=$(pwd)として保存 git worktree add ../<branch-name> -b <branch-name>- branch名にslashは使わないこと(例: feature-auth ✓, feature/auth ✗)
- 必要なら
pnpm installを実行(判断基準: package.jsonに変更がある場合)
作業中の迷子防止(重要)
各コマンド実行前に pwd で現在位置を確認し、意図したディレクトリにいることを確認する。
完了時の手順(必須)
作業完了後は必ず以下を実行:
- ルートに戻る:
cd $PROJECT_ROOT(絶対パスで戻る) - 現在位置確認:
pwdで正しいディレクトリにいることを確認 - クリーンアップ:
git worktree remove ../<branch-name> - 残存確認:
git worktree listでworktreeが残っていないことを確認
注意
- worktree ごとに node_modules が必要になる場合がある
- 長期間放置するとディスクを圧迫する
- 作業完了時のクリーンアップを忘れないこと
- 迷子になったら:
git worktree listで全worktreeの場所を確認
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?