File contents Git Workflow
Commits — Conventional Format
<type>(<scope>): <description>
[optional body]
[optional footer]
Type
Purpose
feat
New feature
fix
Bug fix
docs
Documentation
style
Formatting
refactor
No feature/fix change
test
Adding/updating tests
chore
Maintenance, deps
perf
Performance
ci
CI/CD config
Rules: imperative mood ("add" not "added"), scope = feature area, <72 chars, body explains WHY.
Branch Naming
Format: <type>/<ticket-or-desc> (kebab-case)
feat/task-crud-api
fix/auth-token-expiry
refactor/storage-layer
chore/update-deps
Commit Hygiene
One logical change per commit
Never commit broken tests
No debug code (console.log, TODO hacks)
No secrets (use .gitignore + env vars)
PR Size
Ideal: <400 lines. Acceptable: 400-800. Too large: >800 (split).
Merge Strategy
Feature → main: squash merge
Release: merge commit
Hotfix: cherry-pick
Monorepo Strategies
When working in monorepos with multiple packages/services:
Scope commits to package : feat(api): add task endpoint — scope = package name
Changelogs per package : each package has its own CHANGELOG.md
Selective CI : trigger builds only for affected packages (path filters)
Shared deps : pin at workspace root, override per-package only when needed
Atomic changes : cross-package changes in single commit when they must deploy together
Semantic Release Automation
For automated versioning and changelog generation:
Conventional commits → version bumps : feat → minor, fix → patch, BREAKING CHANGE → major
Tooling : semantic-release (Node.js), release-please (GitHub), go-semantic-release (Go)
CI integration : run after merge to main, generates tag + changelog + release
Pre-release channels : alpha, beta, rc for pre-release testing
Worktree Best Practices
When orchestrator uses git worktrees for parallel agent execution:
Single-Instance Dispatch
Directory : .wt/<agent-name> — consistent prefix for cleanup
Branch : wt/<agent-name>-<timestamp> — unique per dispatch
Multi-Instance (Scoped) Dispatch
Directory : .wt/<agent-name>-<scope> — scope qualifier from scope card
Branch : wt/<agent-name>-<scope>-<timestamp> — unique per scoped dispatch
Examples : .wt/backend-engineer-auth, .wt/backend-engineer-tasks, .wt/scout-infra
Merge Ordering
Dependency order first : merge nodes that downstream nodes depend on before their dependents
Smallest diff first : for independent nodes, merge smaller changes first (less conflict surface)
Integration sub-tasks last : @<agent>[integration] branches always merge after all feature branches
General Rules
Cleanup : always remove worktree + branch after merge
Conflict resolution : merge sequentially, resolve conflicts before next merge
Never commit directly to main from worktree — always squash merge
Quality gate between merges : run Code Completion Mandate checks after each merge
Full merge protocol: see parallel-dispatch-merge skill
Checklist
Related
Code Completion Mandate GEMINI.md § Code Completion Mandate
Testing Strategy GEMINI.md § Testing Strategy
Security Mandate GEMINI.md § Security Mandate
Dependency Management Principles @.gemini/skills/dependency-management-principles/SKILL.md
Source: irahardianto/rugged-gemini — distributed by TomeVault .
1 --- 2 name: irahardianto-rugged-gemini-git-workflow 3 description: Git Workflow 4 --- 5 6 ## Git Workflow 7 8 ### Commits — Conventional Format 9 10 ``` 11 <type>(<scope>): <description> 12 13 [optional body] 14 [optional footer] 15 ``` 16 17 | Type | Purpose | 18 |---|---| 19 | feat | New feature | 20 | fix | Bug fix | 21 | docs | Documentation | 22 | style | Formatting | 23 | refactor | No feature/fix change | 24 | test | Adding/updating tests | 25 | chore | Maintenance, deps | 26 | perf | Performance | 27 | ci | CI/CD config | 28 29 Rules: imperative mood ("add" not "added"), scope = feature area, <72 chars, body explains WHY. 30 31 ### Branch Naming 32 33 Format: `<type>/<ticket-or-desc>` (kebab-case) 34 ``` 35 feat/task-crud-api 36 fix/auth-token-expiry 37 refactor/storage-layer 38 chore/update-deps 39 ``` 40 41 ### Commit Hygiene 42 - One logical change per commit 43 - Never commit broken tests 44 - No debug code (console.log, TODO hacks) 45 - No secrets (use .gitignore + env vars) 46 47 ### PR Size 48 - Ideal: <400 lines. Acceptable: 400-800. Too large: >800 (split). 49 50 ### Merge Strategy 51 - Feature → main: squash merge 52 - Release: merge commit 53 - Hotfix: cherry-pick 54 55 ### Monorepo Strategies 56 When working in monorepos with multiple packages/services: 57 - **Scope commits to package**: `feat(api): add task endpoint` — scope = package name 58 - **Changelogs per package**: each package has its own CHANGELOG.md 59 - **Selective CI**: trigger builds only for affected packages (path filters) 60 - **Shared deps**: pin at workspace root, override per-package only when needed 61 - **Atomic changes**: cross-package changes in single commit when they must deploy together 62 63 ### Semantic Release Automation 64 For automated versioning and changelog generation: 65 1. **Conventional commits → version bumps**: `feat` → minor, `fix` → patch, `BREAKING CHANGE` → major 66 2. **Tooling**: `semantic-release` (Node.js), `release-please` (GitHub), `go-semantic-release` (Go) 67 3. **CI integration**: run after merge to main, generates tag + changelog + release 68 4. **Pre-release channels**: `alpha`, `beta`, `rc` for pre-release testing 69 70 ### Worktree Best Practices 71 When orchestrator uses git worktrees for parallel agent execution: 72 73 #### Single-Instance Dispatch 74 - **Directory**: `.wt/<agent-name>` — consistent prefix for cleanup 75 - **Branch**: `wt/<agent-name>-<timestamp>` — unique per dispatch 76 77 #### Multi-Instance (Scoped) Dispatch 78 - **Directory**: `.wt/<agent-name>-<scope>` — scope qualifier from scope card 79 - **Branch**: `wt/<agent-name>-<scope>-<timestamp>` — unique per scoped dispatch 80 - **Examples**: `.wt/backend-engineer-auth`, `.wt/backend-engineer-tasks`, `.wt/scout-infra` 81 82 #### Merge Ordering 83 - **Dependency order first**: merge nodes that downstream nodes depend on before their dependents 84 - **Smallest diff first**: for independent nodes, merge smaller changes first (less conflict surface) 85 - **Integration sub-tasks last**: `@<agent>[integration]` branches always merge after all feature branches 86 87 #### General Rules 88 - **Cleanup**: always remove worktree + branch after merge 89 - **Conflict resolution**: merge sequentially, resolve conflicts before next merge 90 - **Never commit directly to main from worktree** — always squash merge 91 - **Quality gate between merges**: run Code Completion Mandate checks after each merge 92 - Full merge protocol: see `parallel-dispatch-merge` skill 93 94 ### Checklist 95 - [ ] Branch named with type prefix 96 - [ ] Conventional commit format 97 - [ ] No debug code or secrets 98 - [ ] Tests pass before commit 99 - [ ] PR <400 lines (or justified) 100 - [ ] Messages explain WHY 101 - [ ] Lock files committed with dependency changes 102 - [ ] CHANGELOG updated for user-facing changes 103 104 ### Related 105 - Code Completion Mandate GEMINI.md § Code Completion Mandate 106 - Testing Strategy GEMINI.md § Testing Strategy 107 - Security Mandate GEMINI.md § Security Mandate 108 - Dependency Management Principles @.gemini/skills/dependency-management-principles/SKILL.md 109 110 --- 111 > Source: [irahardianto/rugged-gemini](https://github.com/irahardianto/rugged-gemini) — distributed by [TomeVault](https://tomevault.io). 112 <!-- tomevault:4.0:skill_md:2026-06-16 -->
tomevault-io/skills-registry/tree/main/irahardianto--rugged-gemini--git-workflow commit bad57472f1
Frequently asked questions How do I install the Irahardianto Rugged Gemini Git Workflow skill? Run npx skillmds@latest add tomevault-io/irahardianto-rugged-gemini-git-workflow in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
What does the Irahardianto Rugged Gemini Git Workflow skill do? Git Workflow It is listed under Productivity on SkillMD.
Is Irahardianto Rugged Gemini Git Workflow safe to use? This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
Which AI agents work with Irahardianto Rugged Gemini Git Workflow? This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Is Irahardianto Rugged Gemini Git Workflow free to use? Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
Who published Irahardianto Rugged Gemini Git Workflow? tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.