# Git Workflow Patterns

> Use this skill when working on branching, PRs, commits, or releases. Triggers on: branch naming, PR workflow, commit messages, release strategy, or mentions of "branch", "PR", "commit", "release", "versioning", "changelog", or "git workflow".

- Skill: `majiayu000/git-workflow-patterns` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add majiayu000/git-workflow-patterns`
- Raw SKILL.md: https://api.skillmd.com/api/skills/majiayu000/git-workflow-patterns/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Productivity
- Author: majiayu000 (https://skillmd.com/u/majiayu000)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/majiayu000/git-workflow-patterns

---


# Git Workflow — DoclingOptimisation

## Branching (GitHub Flow)
- `main` is always deployable
- Short-lived feature branches: `feature/`, `fix/`, `chore/`, `docs/`
- Branch from main, merge back to main
- Delete branches after merge

## Commits (Conventional)
- Format: `type(scope): description`
- Types: feat, fix, docs, style, refactor, perf, test, build, ci, chore
- Enforced by `commit-message.sh` hook
- Body explains WHY, not what

## Pull Requests
- Keep PRs small and focused
- Squash merge to main
- Include What/Why/How/Testing sections in description

## Releases
- Semantic versioning in pyproject.toml
- Docker image tags follow semver
- Git tags trigger CI/CD deployment

