Summary
- 创建 git 分支。按照 <type>/<short-english-description> 规范从当前分支创建新分支。
- 支持从用户描述推断分支名,或分析未提交改动自动生成。
- 当用户说"创建分支"、"新建 branch"、"切个分支"、"开分支"、"建个分支"、
- "create branch"、"new…
philo-veritas/pstack · Archived
创建 git 分支。按? 支持从用户描述推断分支名,或分析未提交改动自动生成。 当用户说"创建分支"、"新建 branch"、"切个分支"、"开分支"、"建个分支"、 "create branch"、"new branch"时使用此 skill。
npx skills add philo-veritas/pstack --skill branch
This repository is archived — consider an actively maintained alternative.
让 Claude Code 与 OpenAI Codex CLI 协作完成编码任务。通过? 支持多轮会话、需求分析、代码原型获取…
5 installs使用 Codex 原生 `codex review` 对指定 Git 项目执行 review → evaluate → fix 循环。用户提出“revie…
3 installs分析改动,生成合适的中文 git commit message 并标记代码作者(AI 或 Human)。当用户要求提交代码、…
2 installs深度思考重构工? 最终输出一个? 会议记录归纳等场景。当用户说"帮我理? "/think-clarify"时使用此 ski…
2 installsRelated neighbors and high-traction skills in the same topics — useful to compare before installing.
Intelligent Git Flow branch creator that analyzes git status/diff and creates appropriate branc…
9.6K installs>- Choose and create the right Neon branch type for testing and development. Use when users ask…
5.9K installsCreate a git branch following Sentry naming conventions. Use when asked to "create a branch", "…
3.7K installsUse when implementation is complete, all tests pass, and you need to decide how to integrate th…
181.3K installsApifox 分支协作:普通分支、迭代分支、AI 分支、pick-to、merge、merge-request、保护分支、AI 写?
4.6K installsCreate a fresh branch, complete work, and open a pull request
1.8K installsOther skills from philo-veritas/pstack.
npx skills add philo-veritas/pstack
Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.
main
Files included with this skill beyond the listing page.
SKILL.md
3,826 B
SUMMARY.md
352 B
默认按照 <type>/<short-english-description> 规范推断新分支名;用户明确指定的名称优先。
| type | 适用场景 |
|---|---|
feature |
新功能、新模块 |
fix |
修复已知 bug |
hotfix |
线上紧急修复 |
refactor |
重构,不改变外部行为 |
chore |
构建、CI、依赖更新等杂务 |
docs |
文档新增或修改 |
以下格式用于 agent 推断名称。用户明确给定名称时,以该名称为准,但必须通过 git check-ref-format --branch <name> 校验且不能覆盖已有分支;不要仅为符合默认格式再次要求用户改名。
<type>/<kebab-case-description>运行 git status 和 git branch --show-current,确认:
基线优先采用用户指定的分支或 commit,否则默认当前 HEAD 并告知;不要仅因当前分支不是 main 就询问是否切回 main。先验证基线可解析、目标分支名合法且不存在。基线无法确定、名称冲突或 Git 操作进行中时,只询问具体缺口,不覆盖或重置现有分支。
根据输入来源选择模式:
模式 A — 用户给出描述:从用户的需求描述中推断 type 和 description。
模式 B — 分析未提交改动:如果用户没有给出描述且有未提交改动,运行 git diff 和 git diff --cached 分析改动内容,推断 type 和 description。
如果信息不足以推断,主动询问用户要做什么。
用户已给出合法分支名并要求创建时,直接使用,不重复确认。由 agent 推断名称时,展示基线和建议名称,请求一次确认;已有明确确认则直接继续。没有答复不视为批准。
将从
<base>创建feature/user-export-module,请确认名称或给出调整。
git switch -c <branch-name>;指定其他基线时使用 git switch -c <branch-name> <base>。stash / stash pop。创建完成后输出确认信息。
用户:创建一个分支,我要给用户模块加个导出功能
推断:
feature/user-export
用户:切个 hotfix 分支,线上支付回调报错了
推断:
hotfix/payment-callback-error
用户:帮我建个分支(有 uncommitted changes:修改了 README.md 和 docs/ 下的文件)
推断:
docs/update-readme
用户:开个分支重构一下认证中间件
推断:
refactor/auth-middleware