npx skills add https://github.com/getsentry/skills --skill create-branch按照 Sentry 的命名规范创建一个 git 分支。保持此工作流为非交互式,除非用户明确要求手动选择名称。
解析前缀:
gh api user --jq .logingit config github.usergit config user.email 的本地部分whoamilocal解析工作描述:
如果存在 $ARGUMENTS,则使用它
否则检查:
git diff
git diff --cached
git status --short
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
如果有本地更改,则从差异中派生一个简短的描述
如果没有本地更改,则使用通用描述,如 repo-maintenance、tooling-update 或 work-in-progress
对分支类型进行分类:
| 类型 | 使用场景 |
|---|---|
feat | 新功能 |
fix | 修复了之前无法正常工作的行为 |
ref | 行为保持不变,结构发生变化 |
chore | 现有工具/配置的维护 |
perf | 行为相同,但速度更快 |
style | 仅涉及视觉或格式的更改 |
docs | 仅涉及文档的更改 |
test | 仅涉及测试的更改 |
ci | CI/CD 配置 |
build | 构建系统 |
meta | 仓库元数据 |
license | 许可证更改 |
不确定时:对于新事物使用 feat,对于重构使用 ref,对于维护使用 chore。
生成 <前缀>/<类型>/<简短描述>。保持 <简短描述> 为 kebab-case 格式,仅使用 ASCII 字符,理想情况下为 3 到 6 个单词。
在不提示的情况下选择基准分支:
git branch --show-current
git remote | grep -qx origin && echo origin || git remote | head -1
git symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null | sed 's|refs/remotes/<remote>/||' | tr -d '[:space:]'
main,然后是 master,最后是当前分支通过追加 -2、-3 等来避免命名冲突,直到该名称在本地和远程都未被使用。
创建分支:
git checkout -b <分支名称>
报告最终的分支名称,但不要停下来等待确认。
每周安装量
148
仓库
GitHub 星标数
454
首次出现
2026年3月4日
安全审计
安装于
gemini-cli136
cursor136
codex136
kimi-cli135
opencode135
amp135
Create a git branch following Sentry naming conventions. Keep this workflow non-interactive unless the user explicitly asks to choose the name manually.
Resolve the prefix:
gh api user --jq .logingit config github.usergit config user.emailwhoamilocalResolve the work description:
If $ARGUMENTS is present, use it
Otherwise inspect:
git diff
git diff --cached
git status --short
If there are local changes, derive a short description from the diff
If there are no local changes, use a generic description like repo-maintenance, tooling-update, or work-in-progress
Classify the branch type:
| Type | Use when |
|---|---|
feat | New functionality |
fix | Broken behavior now works |
ref | Behavior stays the same, structure changes |
chore | Maintenance of existing tooling/config |
perf | Same behavior, faster |
style | Visual or formatting only |
When unsure: use feat for new things, ref for restructuring, chore for maintenance.
Generate <prefix>/<type>/<short-description>. Keep <short-description> kebab-case, ASCII-only, and ideally 3 to 6 words.
Choose the base without prompting:
git branch --show-current
git remote | grep -qx origin && echo origin || git remote | head -1
git symbolic-ref refs/remotes/<remote>/HEAD 2>/dev/null | sed 's|refs/remotes/<remote>/||' | tr -d '[:space:]'
main, then master, then the current branchAvoid collisions by appending -2, -3, and so on until the name is unused locally and remotely.
Report the final branch name, but do not stop for confirmation.
Weekly Installs
148
Repository
GitHub Stars
454
First Seen
Mar 4, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
gemini-cli136
cursor136
codex136
kimi-cli135
opencode135
amp135
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
152,900 周安装
docs| Documentation only |
test | Tests only |
ci | CI/CD config |
build | Build system |
meta | Repo metadata |
license | License changes |
Create the branch:
git checkout -b <branch-name>