Skip to main content

git-flow-hygiene

Apply git flow rules — topic branches, conventional commits, identity, pre-commit gates. Use when preparing branches, commits, MRs/PRs, or before pushing.

来源信息

仓库
guilyx/dotfiles
最近来源活动
2026年8月12日 19:39
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

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

检查来源文件

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

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
git-flow-hygiene
description
Apply git flow rules — topic branches, conventional commits, identity, pre-commit gates. Use when preparing branches, commits, MRs/PRs, or before pushing.
# Git Flow Hygiene ## Guardrails - Never push `main`/`master`. Use topic branches + MR/PR. - Push only when the user explicitly asks (non-protected branches only). - Never skip hooks or rewrite git config / author identity. ## Checklist 1. Confirm identity: `git config --get user.name` / `user.email` (do not override). 2. On a topic branch (`feat/`, `fix/`, `chore/`, …). 3. Conventional commit prefix; small single-purpose commits. 4. If `.pre-commit-config.yaml` exists in the owning repo root: ```bash pre-commit install pre-commit run --all-files ``` 5. If hooks rewrite files: stage fixes, re-run until green. 6. On behavior change: run repo-appropriate tests. 7. Update `CHANGELOG.md` Unreleased when user-visible or CI-affecting.
在 GitHub 查看