ワンクリックで
git-workflow-branching
When creating, updating, and merging code in a collaborative version control environment.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
When creating, updating, and merging code in a collaborative version control environment.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
| name | git-workflow-branching |
| description | When creating, updating, and merging code in a collaborative version control environment. |
| version | 2.0.0 |
| category | dev-tools |
| tags | ["dev-tools","git","collaboration","version-control"] |
| skill_type | workflow |
| author | skiLLM |
| license | MIT |
| compatible_agents | ["claude-code","cursor","copilot","codex"] |
| estimated_context_tokens | 1500 |
| dangerous | false |
| requires_review | false |
| security_level | safe |
| dependencies | [] |
| triggers | ["git","branch","merge","commit","pull request"] |
| permissions | {"filesystem":{"read":true,"write":true},"network":{"outbound":true},"shell":{"execute":true}} |
| input_requirements | ["git repository","remote configured"] |
| output_contract | ["linear git history","conventional commits","no WIP commits on main"] |
| failure_conditions | ["direct push to main","merge conflicts unresolved","broken CI on main"] |
| last_updated | "2026-05-15T00:00:00.000Z" |
Clean git history is essential for debugging (git bisect), code review, and team collaboration. This skill standardizes branch naming, commit formatting, and merging to maintain a readable, revertible, and bisect-able history.
main branchmain before creating branchtype/ticket-id-short-description (e.g., feat/PROJ-123-add-login)main frequently to avoid merge conflictsmain (always use PRs)feat:, fix:, docs:, chore:, refactor:, test:git push -f on branches other developers are usingmain detectedtype/ticket-id-description formattype/ticket-id-short-desc (e.g., feat/AUTH-42-oauth-integration)type(scope): description\n\nbody\n\nfooter.gitignore, environment variables)❌ Anti-pattern (WIP commits, vague messages, no rebasing):
git checkout main
# Forgot to pull - out of sync
git checkout -b feature-branch
git commit -m "wip"
git commit -m "fixed typo"
git commit -m "let me try again"
git commit -m "update stuff"
git push origin feature-branch
# Merge directly to main without PR
✅ Correct pattern (Atomic commits, conventional, rebased, squashed):
git fetch origin
git checkout -b feat/PROJ-123-add-oauth
# Make atomic commits with conventional format
git commit -m "feat(auth): add oauth service initialization"
git commit -m "feat(auth): implement oauth callback handler"
git commit -m "test(auth): add oauth flow tests"
git push origin feat/PROJ-123-add-oauth
# Before PR: rebase and squash if needed
git fetch origin
git rebase origin/main
# Squash merge via PR (git will handle this)
# After merge:
git checkout main
git pull origin main
git branch -d feat/PROJ-123-add-oauth
git push origin --delete feat/PROJ-123-add-oauth
When improving read performance and reducing database load.
When designing loosely coupled systems that react to state changes asynchronously.
When setting up telemetry, debugging distributed systems, or standardizing application output.
When creating or extending an HTTP API for client consumption.
When addressing slow application endpoints, high database CPU usage, or standardizing data access patterns.
When designing how a system recovers from and reports failures.