跳到正文
Skillpedia
通用编程14k · #11280

new-branch

它能做什么

这项技能按照命名规则,从主代码创建新的 Git 分支。适合在共享项目中工作、并希望分支井然有序的开发者。

适用场景

  • ✓当你开始一个新功能,需要单独分支的时候。
  • ✓当你希望修复或文档改动与 main 分开保存的时候。
  • ✓当你需要按照团队规则命名分支的时候。

技能链接

https://github.com/EverMind-AI/EverOS/blob/main/.claude/skills/new-branch/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EverMind-AI/EverOS/blob/main/.claude/skills/new-branch/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我为我的登录错误修复创建一个新分支。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先更新 main,然后创建一个以类型和简短小写标识命名的分支。它还会提醒你向 main 发起拉取请求。

技术内容(原始 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.

常见问题

允许哪些名称?

这项技能使用 feat、fix、docs、ci、chore 和 refactor 等类型,后面加一段简短标识。

我能直接提交到 main 吗?

不能。这项技能要求始终使用分支和拉取请求。

创建分支之前我应该做什么?

这项技能要求先用快进方式拉取,更新 main。

详情

作者的原始描述

Create a GitHub branch from main with the project naming convention

repo: EverMind-AI/EverOS

热度

GitHub 星标
14k
排名
#11280
许可证
Apache-2.0
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能