work-branch-name-gen
Work branch name generator
Turn the issue numbers passed with the invocation into one proposed branch or worktree name.
-
Parse the arguments as one or more decimal issue numbers. Accept spaces or commas between numbers and preserve their input order. If any argument is not a decimal issue number, ask for corrected input. Done when the ordered issue-number list is unambiguous.
-
Fetch every issue with the
df-tiscript (on PATH from the dotfilesbin):df-ti <issue-number>Run the command once per issue, replacing
<issue-number>with the validated decimal number. If a command fails or does not return issue details, report which issue could not be read and stop. Done when details are available for every issue. -
Derive a short kebab-case description of the work from the issue titles and details. Describe the outcome, not the full issue title. For multiple issues, describe their shared outcome rather than concatenating their titles. Aim for 3 to 6 words and 20 to 50 characters. Done when the description is specific and contains only lowercase ASCII letters, digits, and hyphens.
-
Draft exactly one name in this format: