Skip to main content

gitflow

Manages local Git-flow branch lifecycles: start or finish feature, hotfix, and release branches with automated changelog generation, version bumping, and cleanup. Use for repositories configured for local Git-flow finishing when the user explicitly mentions git-flow branch operations (e.g. 'gitflow start feature', 'gitflow finish release'). For standard GitHub PR-based reviews and merges, use create-pr.

来源信息

仓库
FradSer/skills
最近来源活动
2026年9月13日 14:15
检测到的 SKILL.md 语言
英语
星标
4
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
11 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
gitflow
description
Manages local Git-flow branch lifecycles: start or finish feature, hotfix, and release branches with automated changelog generation, version bumping, and cleanup. Use for repositories configured for local Git-flow finishing when the user explicitly mentions git-flow branch operations (e.g. 'gitflow start feature', 'gitflow finish release'). For standard GitHub PR-based reviews and merges, use create-pr.
disable-model-invocation
true
# Git-flow Branch Lifecycle Manage feature, hotfix, and release branch lifecycles using Git-flow conventions. ## Operations Overview | Operation | Action | Target Branch | Base Branch | Merge Target | |-----------|--------|---------------|-------------|--------------| | **Start Feature** | Create branch | `feature/<name>` | `develop` | `develop` | | **Finish Feature** | Merge & clean up | `feature/<name>` | — | `develop` | | **Start Hotfix** | Create branch & bump patch | `hotfix/<version>` | `main` | `main` + `develop` | | **Finish Hotfix** | Merge, tag & clean up | `hotfix/<version>` | — | `main` + `develop` | | **Start Release** | Create branch & bump version | `release/<version>` | `develop` | `main` + `develop` | | **Finish Release** | Merge, tag & clean up | `release/<version>` | — | `main` + `develop` | ## Workflow Routing ### 1. Starting a Branch (`start`) Follow the start pipeline in [`references/gitflow-start-pipeline.md`](references/gitflow-start-pipeline.md): 1. **Pre-flight invariants**: Verify working tree is clean (`git status --porcelain` is empty) per [`references/invariants.md`](references/invariants.md). 2. **Resolve Name/Version**: Infer or parse target branch name or semver version from `$ARGUMENTS`. 3. **Execute Start**: Run `scripts/start-branch.sh` with `--type <feature|hotfix|release>` and `--name <NAME_OR_TARGET>`. ### 2. Finishing a Branch (`finish`) Follow the finish pipeline in [`references/gitflow-finish-pipeline.md`](references/gitflow-finish-pipeline.md): 1. **Pre-flight invariants**: Verify working tree is clean and current branch matches `<type>/*` per [`references/invariants.md`](references/invariants.md). 2. **Run Tests**: Verify project test suite passes before proceeding. 3. **Update Changelog**: Collect commits per [`references/changelog-generation.md`](references/changelog-generation.md), format following [`references/changelog-example.md`](references/changelog-example.md), and commit with attribution per [`references/coauthor-attribution.md`](references/coauthor-attribution.md). 4. **Execute Finish**: Run `scripts/finish-branch.sh` with `--type <feature|hotfix|release>` and `--name $NAME` or `--version $VERSION`. 5. **Post-finish Cleanup**: Prune stale branches and worktrees per [`references/cleanup.md`](references/cleanup.md). ## Supporting References & Scripts - Start Pipeline: [`references/gitflow-start-pipeline.md`](references/gitflow-start-pipeline.md) - Finish Pipeline: [`references/gitflow-finish-pipeline.md`](references/gitflow-finish-pipeline.md) - Pre-flight Invariants: [`references/invariants.md`](references/invariants.md) - Changelog Generation: [`references/changelog-generation.md`](references/changelog-generation.md) - Changelog Example: [`references/changelog-example.md`](references/changelog-example.md) - Co-author Attribution: [`references/coauthor-attribution.md`](references/coauthor-attribution.md) - Branch & Worktree Cleanup: [`references/cleanup.md`](references/cleanup.md) - Start Branch Script: `scripts/start-branch.sh` - Finish Branch Script: `scripts/finish-branch.sh`
在 GitHub 查看