| description | Verify branch and worktree before making edits |
|---|---|
| user-invocable | false |
Before editing files, verify:
-
Current branch: Run
git rev-parse --abbrev-ref HEADand confirm it matches the expected branch for the current task. -
Worktree isolation: Run
git rev-parse --show-topleveland confirm edits target the correct worktree directory. -
Clean state: Run
git status --porcelainand warn if there are uncommitted changes that might conflict.
If any check fails, stop and alert the user before proceeding.