Repository navigation
feat: add speckit/ folder prefix to Speckit branches - #328
Merged
yvonnedevlinrh merged 2 commits intoJul 15, 2026
Merged
yvonnedevlinrh merged 2 commits into
yvonnedevlinrh merged 2 commits into
Conversation
1 of 3 tasks
New Speckit branches are created as speckit/NNN-<name> instead of flat NNN-<name>, organizing them under a folder in the git branch namespace for parity with OpenSpec's opsx/ prefix. - Update create-new-feature.sh to prepend speckit/ prefix - Update common.sh to strip prefix for filesystem path mapping and SPECIFY_FEATURE env var consistency - Update 8 command files with backward-compatible detection - Update review-context skill branch-to-spec mapping table - Update AGENTS.md, docs/usage.md, docs/architecture.md - Sync scaffold assets with live command/skill files - Add OpenSpec change artifacts (proposal, design, specs, tasks) Detection is backward-compatible: both speckit/NNN-<name> and legacy NNN-<name> branches are accepted. Existing branches are not renamed. Spec directories on disk remain as specs/NNN-<name>/. Fixes: unbound-force#149 Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <[email protected]>
yvonnedevlinrh
force-pushed
the
opsx/speckit-branch-prefix
branch
from
July 6, 2026 15:48
de03b80 to
340481a
Compare
em-redhat
approved these changes
Jul 14, 2026
em-redhat
left a comment
Contributor
There was a problem hiding this comment.
PR Review: #328 — feat: add speckit/ folder prefix to Speckit branches
CI: All checks pass. Scaffold sync: All 7 scaffold assets updated in sync with live files.
Alignment: Code changes match spec FR-001–FR-004 and linked issue #149.
Security: No issues. Constitution: No issues.
Two MEDIUM findings on code clarity — see inline comments.
This review was generated by /review-pr (AI-assisted).
The function returns the spec feature name (NNN-<name>), not the git branch ref, after the speckit/ prefix stripping was added. Rename function, variable (CURRENT_BRANCH -> CURRENT_FEATURE), and all callers to match the actual behavior. Also remove unreachable (speckit/)? regex group from check_feature_branch — the input is already stripped by get_current_feature(), so the group could never match. Addresses PR unbound-force#328 review feedback from @em-redhat. Assisted-by: OpenCode (claude-opus-4-6) Signed-off-by: Yvonne Devlin <[email protected]>
Contributor
Author
|
Hey @em-redhat, I made changes to remediate the medium findings that were found. If you wouldn't mind giving it another quick review |
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a
speckit/folder prefix to new Speckit feature branches, changing the naming convention fromNNN-<name>tospeckit/NNN-<name>. This organizes Speckit branches under a folder in the git branch namespace, matching the pattern already used by OpenSpec (opsx/).All branch detection is backward-compatible — legacy
NNN-<name>branches continue to work without modification. Existing remote branches are not renamed. Spec directories on disk remainspecs/NNN-<name>/.Fixes #149
How to Test
Verify the shell script changes by dry-running branch creation:
Verify backward compatibility —
common.shshould strip thespeckit/prefix:Run the full test suite:
How to Demo
After merging, the next time
/speckit.specifycreates a new feature branch, it will be namedspeckit/NNN-<name>instead ofNNN-<name>. Rungit branchto see the organized folder structure. Existing branches like031-unleash-openspeccontinue to work normally.Key Files Changed
Core logic:
.specify/scripts/bash/create-new-feature.sh— Branch name construction now prependsspeckit/; filesystem path strips prefix.specify/scripts/bash/common.sh—get_current_branch()strips prefix; validation and path lookup accept both patternsCommands (8 files):
unleash.md,review-council.md,finale.md,address-feedback.md,agent-brief.md,cobalt-crush.md,workflow-status.md,workflow-advance.md— Branch detection patterns, error messages, and examples updatedSkills (1 file):
review-context/SKILL.md— Branch-to-spec mapping tableDocumentation (3 files):
AGENTS.md,docs/usage.md,docs/architecture.mdScaffold assets (7 files):
OpenSpec artifacts (4 new files):
openspec/changes/speckit-branch-prefix/— proposal, design, specs, tasksThis PR was generated by /finale (AI-assisted).