Imported from AsPulse/dotfiles (
codex/skills/branch-create/SKILL.md). Install upstream withnpx skills add AsPulse/dotfiles --skill branch-create. Copyright stays with the author.
Branch Create
Create a working branch from the current branch.
Workflow
- Inspect recent local branches. If that is not enough to infer naming conventions, inspect recently merged PR branch names as well.
- Identify the current branch. Treat it as the base branch unless the user says otherwise.
- If the user supplied a branch name and it already matches the repository's conventions, use it as-is. If the user supplied a description, derive a branch name from it. If the user gave no usable input, ask what the branch is for using
request_user_input. - Show the base branch and proposed branch name to the user using
request_user_input. Offer options to approve or request changes. If the user wants changes, revise and confirm again withrequest_user_input. - After approval, create the branch and verify that the checked-out branch is the expected one.
Notes
- Default to a conservative convention such as
type/kebab-case-descriptiononly when the repository does not provide a clearer pattern. - Do not create the branch until the user has approved the final name.