跳到正文
FunCoding

new-branch

Create a GitHub branch from main with the project naming convention

Star
13,408
许可证
Apache-2.0
最近提交
2026年10月13日

.claude/skills/new-branch/SKILL.md

在 GitHub 上查看

/new-branch

Cut a new branch for the GitHub repository.

Branch model

main       = default and protected branch
feat/*     = feature work
fix/*      = bug fixes
docs/*     = documentation-only changes
ci/*       = CI, build, and developer-experience changes
chore/*    = repository maintenance
refactor/* = behavior-preserving code structure changes

Steps

  1. Ask (or infer) the change type: feat, fix, docs, ci, chore, or refactor.
  2. Update main first:
    git checkout main
    git pull --ff-only
    
  3. Create the branch with a kebab-case slug:
    git checkout -b <type>/<short-slug>
    
  4. Keep the branch scoped to one purpose and open a pull request back to main.

Naming

  • feat/add-agentic-rerank, fix/empty-profile-crash, docs/quickstart-config, ci/check-github-docs.
  • Lowercase, hyphen-separated, no spaces, concise.

Never commit directly to main — always use a branch and pull request.

相似的 Skill

using-git-worktrees

OBobra/superpowers298k近 7 天新增 2,631 个 star

verification-before-completion

OBobra/superpowers298k近 7 天新增 2,631 个 star

finishing-a-development-branch

OBobra/superpowers298k近 7 天新增 2,631 个 star

wizard

MAmattpocock/skills288k近 7 天新增 10,178 个 star

git-guardrails-claude-code

MAmattpocock/skills288k近 7 天新增 10,178 个 star

triage

MAmattpocock/skills288k近 7 天新增 10,178 个 star