用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Dev-Toolbelt/dev-team-agents --skill git-workflow命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | git-workflow |
| description | Git — branching, commits, PR workflow, merge, release tagging. |
Before applying any convention, run:
git log --oneline -10
Look for the existing pattern in the project history:
feat:, fix:, chore:, docs: prefixesfeature/, release/, hotfix/ branch names in merge commitsAlways follow the project's established pattern. Only fall back to Conventional Commits if no pattern is detectable.
| Prefix | Purpose | Lifetime | Merge target |
|---|---|---|---|
feature/* | New functionality | Days to 1 sprint | main / develop |
fix/* | Non-urgent bug fix | Hours to days | main / develop |
hotfix/* | Urgent production fix | Hours | Release tag + main |
release/* | Release stabilization | Days | main + tag |
chore/* | Tooling, deps, config | Hours to days | main / develop |
feature/user-auth-refresh).fix/PROJ-123-null-pointer).Follow skills/shared/conventional-commits/SKILL.md for format details. Key rules:
Co-Authored-By: Claude, Generated with …).<type>: <what changed> (<why, if not obvious>) — mirrors the squash commit that will land on main.| Scenario | Strategy | Reason |
|---|---|---|
| Feature / fix branch → main | Squash merge | Clean, linear history; one commit per feature |
| Release branch → main | Merge commit | Preserves full release history |
| Hotfix → main | Merge commit | Traceability for post-incident review |
| Sync main → long-lived branch | Rebase | Avoids noisy merge commits mid-branch |
main or master.vMAJOR.MINOR.PATCH (semantic versioning).main after CI passes.git tag -a v1.2.0 -m "Release v1.2.0".git push origin v1.2.0.| Change type | Bump |
|---|---|
| Breaking change | MAJOR |
| New feature, backward-compatible | MINOR |
| Bug fix, patch, docs | PATCH |
git checkout -b hotfix/v1.2.1 v1.2.0 — branch from the affected release tag, not from main.v1.2.1.main with a merge commit.main and master must enforce: