원클릭으로
git-worktree
Use Git worktrees for important modifications that require a plan. This skill is activated automatically when entering plan mode.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Use Git worktrees for important modifications that require a plan. This skill is activated automatically when entering plan mode.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | git-worktree |
| description | Use Git worktrees for important modifications that require a plan. This skill is activated automatically when entering plan mode. |
| autoActivate | true |
This skill applies automatically whenever you enter plan mode
(EnterPlanMode) or when the user explicitly asks to work in a worktree.
Any modification that is significant enough to require a plan must be
developed in a dedicated Git worktree, not directly on the current branch.
Before writing any code, create a feature branch and worktree.
Use -b to create the new branch (it does not need to exist beforehand):
# Branch name: feature/<short-name>
# Worktree dir name: short suffix after "alexandreroman.fr-"
git worktree add -b feature/<short-name> ../alexandreroman.fr-<short-name>
The worktree is placed next to the main repo directory (sibling folder) so it doesn't interfere with the current tree.
All file reads, edits, and writes for the planned change must target the
worktree path (../alexandreroman.fr-<short-name>/...), not the main
repo.
Do not commit yet. First verify that the changes work correctly.
Start Hugo from the worktree on a different port so it doesn't conflict with the main dev server (1313) or other worktrees.
Always start Hugo as a background Bash command so you can stop it reliably afterwards:
cd ../alexandreroman.fr-<short-name>
make dev PORT=1314
# → note the background task ID from the response
Dependencies (npm install) are handled automatically by make dev.
Use the hugo-site-check skill pointing at that port to verify.
After verification, always stop the Hugo server using TaskStop with
the background task ID. This must happen before the commit and
integration steps. Never leave Hugo processes running.
Only commit after the changes have been verified in the browser. Stage and commit all relevant files in the worktree.
Once the change is validated, rebase the feature branch onto main and fast-forward main. Never create merge commits — the history must stay linear.
# From the worktree: restore package-lock.json (modified by `make dev`)
cd ../alexandreroman.fr-<short-name>
git restore package-lock.json
# Rebase onto main
git rebase main
# From the main working tree: fast-forward main
cd ../alexandreroman.fr
git merge --ff-only feature/<short-name>
Always remove the worktree and branch at the end, whether the change was integrated or abandoned. This step is not optional.
After a successful integration:
git worktree remove ../alexandreroman.fr-<short-name>
git branch -d feature/<short-name>
After an abandoned change:
git worktree remove ../alexandreroman.fr-<short-name>
git branch -D feature/<short-name>
--ff-only).feature/precompile-css, feature/round-favicon).make dev PORT=<port> to start Hugo in a worktree (handles dependencies automatically).