managing-branches
管理 Git 分支和 worktree
复杂的 Git 工作流会造成分支不一致和高风险合并。此技能可在 Claude、Codex 和 Claude Code 中指导分支策略、命名、验证和 worktree 操作。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "managing-branches" from https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches.md and its manifest at https://skillstore.io/api/skills/c0ntr0lledcha0s-managing-branches/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“managing-branches”。 为 issue 42 中关于身份验证的内容启动一个 feature 分支。
预期结果:
该技能会提出从 develop 创建 Gitflow feature 分支,关联该 issue,并列出提交和完成步骤。
正在使用“managing-branches”。 审查我们的 release 分支流程。
预期结果:
该技能会识别 release 分支目标、打标签时机、清理规则,以及合并到生产环境前所需的检查。
正在使用“managing-branches”。 在 feature 工作仍在进行时,为 hotfix 设置 worktree。
预期结果:
该技能会推荐隔离的 worktree,说明何时保留当前更改,并在合并后提供清理指导。
安全审计
中风险No malware, exfiltration, or prompt injection attempt was found. Most static findings are false positives from Markdown code fences, Git examples, configuration dictionaries, and transparent Git helper scripts. Residual risk is operational: some helper commands can push, tag, delete branches, or create worktrees in custom paths.
已确认安全问题 (2)
风险因素
📁 文件系统访问 (50)
⚙️ 外部命令 (50)
🔑 环境变量 (37)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches/audits/12?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/c0ntr0lledcha0s-managing-branches/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/c0ntr0lledcha0s-managing-branches.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
C0ntr0lledCha0s. (2026). managing-branches security audit report (audit version 12) [Author version 1.0.0]. Skillstore. https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches/audits/12BibTeX 引用
@techreport{c0ntr0lledcha0s-c0ntr0lledcha0s-managing-branches-2026,
author = {C0ntr0lledCha0s},
title = {managing-branches security audit report (audit version 12)},
institution = {Skillstore},
year = {2026},
number = {12},
url = {https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches/audits/12},
note = {Author version 1.0.0}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "managing-branches security audit report (audit version 12)"
version: "1.0.0"
type: report
authors:
- name: "C0ntr0lledCha0s"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/c0ntr0lledcha0s-managing-branches/audits/12"
identifiers:
- type: other
value: "skillstore:c0ntr0lledcha0s-managing-branches:audit:12"
description: "Skillstore immutable audit report identifier"
比较变体
2 个可安装变体每位作者的技能都保持为独立的可安装项。推荐变体按 Skillstore 证据排序。
为什么此变体排名第一
c0ntr0lledcha0s-managing-branches
2026-09-09
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
选择分支策略
在为仓库设定团队规则之前,比较 Gitflow、GitHub Flow、基于主干的工作流和环境分支流。
运行日常分支工作流
使用一致的命名和清晰的合并目标创建 feature、bugfix、hotfix 和 release 分支。
审查流程合规性
在 pull request 或发布之前验证分支名称、合并方向和清理步骤。
试试这些提示
为一个每周部署的小型 Web 团队推荐分支策略。解释取舍和初始设置步骤。
为我们的仓库创建分支命名约定。包括 feature、bugfix、hotfix、release、docs 和 refactor 分支。
检查我当前的分支是否符合我们的 Gitflow 规则。识别目标分支、合并路径和清理步骤。
为并行 hotfix 和 feature 工作设计 worktree 工作流。包括安全清理、分支删除规则和审查检查点。
最佳实践
- 在允许 agent 运行辅助脚本之前,审查计划执行的 Git 命令。
- 将分支策略配置保存在仓库中,并与团队一起审查。
- 在删除分支或 worktree 之前,使用 dry run 或手动检查。
避免
- 不要在分支名称不明确的情况下运行 finish 或 cleanup 命令。
- 不要将 worktree 放在敏感目录或批准项目路径之外。
- 不要在同一个仓库中混用 Gitflow、基于主干的规则和环境分支规则。
常见问题
它可以自动创建分支吗?
它支持哪些工作流?
它需要 GitHub 吗?
它可以管理 worktree 吗?
它对受保护分支安全吗?
它会替代发布工具吗?
开发者详情
许可证
MIT
作者版本
v1.0.0
Skillstore 修订
r1
引用
3e4b6c31a74a3bd1a291c98cf585d720cb9fbc88
维护新鲜度
2026/7/21
使用量
11 次下载 · 218 次浏览