AGENT SKILL
dev分支切换
dev
切换到 dev 分支,并根据需要从 master 创建或重置该分支。
- License 许可
- MIT
- 最近更新
- 2026-05-15
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- dev
- description
- Switch to the dev branch, creating or resetting it from master as needed
- allowed-tools
- Bash(git *)
- disable-model-invocation
- true
02 资源文件 3
- 许可证LICENSE1.0 KB
- 参考文档SOURCE.md350 B
- 参考文档TRUST.auto.yaml2.1 KB
03 SKILL.md 正文
Switch to dev branch
Current state
!git branch --show-current
!git status --short
Instructions
- If there are uncommitted changes, warn the user and stop.
- If already on
devand it's up to date withmaster, say so and stop. - If a local
devbranch exists:- Check if it has unmerged commits vs
master. If yes, just switch to it. - If it's already merged (i.e. no commits ahead of master), reset it from master.
- Check if it has unmerged commits vs
- If no local
devbranch exists, create it frommaster:git checkout -b dev master git push -u origin dev - Confirm the branch switch.
04 同仓库更多 Skills
开发服务器停止
stop
停止正在运行的开发服务器。
★ 1
Git 仓库状态查看
status
显示当前分支、工作区(working tree)状态以及所有未关闭的 PR。
★ 1
开发服务器启动
run
在后台启动开发服务器;如果服务器已在运行,则将其重启。
★ 1
GitHub PR 创建
pr
推送 dev 分支并创建一个到 master 的 GitHub PR(根据提交自动生成标题和正文)。
★ 1
GitHub 草稿 PR 创建
pr-draft
推送 dev 分支并创建一个到 master 的 GitHub 草稿 PR(根据提交自动生成标题和正文)。
★ 1
PR 压缩合并与分支重置
merge
对开放的 PR 执行压缩合并(squash merge),拉取 master 分支,并重置 dev 分支。
★ 1