| name | add-repo-to-feature |
| description | Add a repository worktree to an existing feature directory |
| user_invocable | true |
Add Repo to Feature
Usage: /add-repo-to-feature <repo> <feature-number> (e.g., /add-repo-to-feature hibernate-orm 3223)
Adds a worktree of the specified repository to an existing feature directory.
Supported repos
hibernate-orm
hibernate-reactive
hibernate-tools
hibernate-models
quarkus-website
quarkus-updates
Prerequisites
- Feature directory
<number>/ must exist (run /create-feature first).
- The repo must be cloned in
main/ (run /init-workspace first).
Steps
-
Validate: Check that ~/git/hibernate/<number>/ exists and main/<repo> exists. Fail with a clear message if not.
-
Create worktree from main/<repo>:
cd ~/git/hibernate/main/<repo>
git worktree add ~/git/hibernate/<number>/<repo> <number>
If branch <number> doesn't exist, create it from upstream/main:
git worktree add -b <number> ~/git/hibernate/<number>/<repo> upstream/main
-
Set up build config in the worktree:
-
Confirm: Print the updated feature directory contents.