spec-kit icon indicating copy to clipboard operation
spec-kit copied to clipboard

Bug & Feature: Bad branch naming with `/specify` & requested `/rename` feature

Open rogadev opened this issue 1 year ago • 4 comments

BUG

The /specify command is doing an absolutely terrible job of naming branches. The naming below was done following the README.md on the spec-kit repo page for the /specify command. However, it's not extracting an intelligent branch name for the spec being provided.

Image

FEATURE

The bug should definitely be fixed, however, it would also be ideal if we could /rename some-preferred-branch-name to run a script and rename the branch. What I'm noticing is if I rename it myself, sometimes it re-creates the "missing" origionally named spec folder when I use /specify the next time.

Image

In the photo above, I tried /specify to generate 002 but I was unhappy with the results. I then deleted everything in the generated 002 folder and tried to get a better first-shot result by starting over. When I ran /specify again, it was convinced that 002 needed to be there, and it recreated it, even though I had tried to revert back to the original state when i started generating 002. This is because everything inside /.cursor/* is NOT managed the same way as everything in /spec/* with regards to reverting to previous states. So we need a way to fix and modify what we have in our spec-kit memory so that we can name the spec folders and branches to names we WANT if the generated name is botched, and possibly even a way to DELETE an item from memory if, say, a feature is ultimately abandoned or removed.

I hope this helps, and please feel free to ask questions if you have any. I'll keep an eye on this.

rogadev avatar Sep 23 '25 17:09 rogadev

#518 was created while I was writing this and also describes the bug in question.

rogadev avatar Sep 23 '25 17:09 rogadev

@rogadev I think this should remain a bug report even with #518, since it’s not specific to worktrees. The solution isn’t to introduce a /rename command—/spec should pick up the intelligent branch name generated in the spec document. A /rename command could still be useful to adjust both the branch name and the spec document/folder names if triggered.

abdull1986 avatar Sep 24 '25 08:09 abdull1986

This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.

github-actions[bot] avatar Apr 03 '26 14:04 github-actions[bot]

This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.

github-actions[bot] avatar May 05 '26 00:05 github-actions[bot]