Skip to content

How can I use my own branch patterns instead of 001-*? #1518

Closed

Description

@Tarasovych

I have this inside constitution:

**Branching**:
- Three branch formats only: `feature/`, `bugfix/`, `chore/`
- All branches must have one of these three prefixes
- Format: `feature/module-description`, `bugfix/issue-number-title`, `chore/task-description`
- Main branch always deployable

Looks like spec-kit does not respect this

Activity

  1. ernestjumbe commented on Jan 24, 2026

    @ernestjumbe

    You might need to edit the check-prerequisites.sh or the corresponding file depending on your operating system. This is where the branching is validated. Don't look at this project as a one size fits all solution. Fork and tinker according to your needs.

  2. Tarasovych commented on Jan 27, 2026

    @Tarasovych
    Author

    Thanks, found it in create-new-feature.sh. Do you know if spec-kit will auto pick new arguments, say, if I add custom argument like [feature/chore/bugfix] here

    Image
  3. ernestjumbe commented on Jan 27, 2026

    @ernestjumbe

    Every time this script is referenced, it will apply the strategy. you might need to also look into each of the shell script files to make sure the rules you have set are consistent during the branch checks.

  4. samhoooo commented on Feb 23, 2026

    @samhoooo

    You can use your own branch naming pattern by updating the following files:

    • create-new-feature.sh: Mainly the generate_branch_name function
    • common.sh: get_current_branch function
    • You many also have to update the agent file of specify to include details of your naming pattern
  5. locked and limited conversation to collaborators on Feb 23, 2026
  6. converted this issue into a discussion #1670 on Feb 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions