git-workflow-standards
Use when choosing a branching model, setting up releases/versioning, deciding monorepo vs polyrepo, or configuring branch protection/merge queues in a touchstone repo — covers trunk-based development, SemVer + release-please, repo topology, and Git LFS. Commit/PR hygiene and review mechanics live in the collaboration and code-review skills.
- License 许可
- MIT
- 最近更新
- 2026-08-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- git-workflow-standards
- license
- MIT
- metadata
- { "author": "touchstone", "version": "0.2.0" }
- description
- Use when choosing a branching model, setting up releases/versioning, deciding monorepo vs polyrepo, or configuring branch protection/merge queues in a touchstone repo — covers trunk-based development, SemVer + release-please, repo topology, and Git LFS. Commit/PR hygiene and review mechanics live in the collaboration and code-review skills.
03 SKILL.md 正文
Git Workflow & Release Management Standards
Full standard: standards/practices/git-workflow.md in the touchstone repo (defers commit
conventions to standards/practices/collaboration.md, CI/branch-protection wiring to standards/platform/ci-cd.md). This skill
inlines the load-bearing rules so it stays useful when installed standalone in ~/.claude/skills/:
Always
- Trunk-based development by default — integrate into
mainvia branches that live < ~2 days; keepmainreleasable at every commit. - Feature flags, not long-lived branches — merge incomplete work behind a flag; the flag is the unit of in-progress isolation, not the branch.
- Squash-merge + linear history — one PR = one Conventional-Commit on
main; rebase the branch ontomain, never mergemaininto it;--force-with-leaseonly. - SemVer from Conventional Commits — releases are annotated signed
vX.Y.Ztags;CHANGELOG.mdis generated via release-please/changesets, never hand-edited.
Choosing the model & topology
- GitFlow is discouraged for continuous delivery (standing
develop/releasebranches = long-lived divergence). The only sanctioned long-lived branch isrelease/X.Y, and only for versioned/on-prem products that must patch old majors. - Hotfixes go forward on
main; for supported older majors, land onmainthengit cherry-pick -xontorelease/X.Yand tag — never fix only on the release branch. - Monorepo by default for one product/team (atomic refactors, one dependency graph); polyrepo when components need independent release cadence, ownership, or security boundaries. CODEOWNERS keyed to teams, validated in CI.
- At scale (scale-up): merge queue (CI on the
merge_groupevent); sparse +--filter=blob:nonepartial checkout for large trees; vendor+pin shared internal code over submodules. - Git LFS for large non-diffable binaries (tracked in
.gitattributes) — a committed binary bloats every clone forever. Never commit secrets/artifacts.
Done
Trunk-based with short-lived branches behind flags · squash + linear history · SemVer tags + generated CHANGELOG · merge queue + sparse checkout where scale warrants · LFS for binaries. See standards/practices/git-workflow.md.
04 同仓库更多 Skills
ok-standards
Use when writing shell, per standards/languages/shell.md.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.
demo-standards
Use when editing demo code in a touchstone fixture repo, a deliberately ordinary description that is long enough to clear the forty character minimum.