通用编程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 文件,并在我的任务中按照它的说明来做。
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
npx skills add EverMind-AI/EverOS --skill new-branch
下载 SKILL.md,放进智能体的技能文件夹。
curl -L https://raw.githubusercontent.com/EverMind-AI/EverOS/main/.claude/skills/new-branch/SKILL.md -o SKILL.md
可以这样问 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
- Ask (or infer) the change type:
feat,fix,docs,ci,chore, orrefactor. - Update
mainfirst:git checkout main git pull --ff-only - Create the branch with a kebab-case slug:
git checkout -b <type>/<short-slug> - 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。
详情
热度
- GitHub 星标
- 14k
- 排名
- #11280
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …