Problem
Target-branch derivation has no uniqueness check. If `ghcp/fix-auth-bug` already exists, `ghcp-worktree.ts add` fails. User then has to pick a different name manually.
Approach
In `cmdAdd`: if the target branch exists AND the user didn't explicitly ask to reuse it, auto-suffix `-2`, `-3`, etc. until we find a free name. Print the final chosen name in the JSON result so the skill can use it.
Escape hatch: an `--exact` flag to fail instead of auto-suffix.
Review reference
Adversarial review T2
Problem
Target-branch derivation has no uniqueness check. If `ghcp/fix-auth-bug` already exists, `ghcp-worktree.ts add` fails. User then has to pick a different name manually.
Approach
In `cmdAdd`: if the target branch exists AND the user didn't explicitly ask to reuse it, auto-suffix `-2`, `-3`, etc. until we find a free name. Print the final chosen name in the JSON result so the skill can use it.
Escape hatch: an `--exact` flag to fail instead of auto-suffix.
Review reference
Adversarial review T2