Initial commit
This commit is contained in:
14
commands/prep-parallel.md
Normal file
14
commands/prep-parallel.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Initialize parallel git worktree directories for parallel Claude Code agents
|
||||
|
||||
## Variables
|
||||
FEATURE_NAME: $ARGUMENTS
|
||||
NUMBER_OF_PARALLEL_WORKTREES: $ARGUMENTS
|
||||
|
||||
## Execute these commands
|
||||
> Execute the loop in parallel with the Batch and Task tool
|
||||
|
||||
- create a new dir `trees/`
|
||||
- for i in NUMBER_OF_PARALLEL_WORKTREES
|
||||
- RUN `git worktree add -b FEATURE_NAME-i ./trees/FEATURE_NAME-i`
|
||||
- RUN `cd trees/FEATURE_NAME-i`, `git ls-files` to validate
|
||||
- RUN `git worktree list` to verify all trees were created properly
|
||||
Reference in New Issue
Block a user