Git Workflow Strategy

Git Workflow Strategy

Teaches an AI agent to set up team Git workflows such as GitFlow, GitHub Flow and trunk-based development, with branching, merge strategy and code review practices.

Skill files6 files

references/

scripts/

templates/

SKILL.md95 lines
1
---
2
name: git-workflow-strategy
3
description: >
4
Master Git workflows including GitFlow, GitHub Flow, Trunk-Based Development.
5
Configure branches, merge strategies, and collaboration patterns for team
6
environments.
7
---
8
9
# Git Workflow Strategy
10
11
## Table of Contents
12
13
- [Overview](#overview)
14
- [When to Use](#when-to-use)
15
- [Quick Start](#quick-start)
16
- [Reference Guides](#reference-guides)
17
- [Best Practices](#best-practices)
18
19
## Overview
20
21
Establish efficient Git workflows that support team collaboration, code quality, and deployment readiness through structured branching strategies and merge patterns.
22
23
## When to Use
24
25
- Team collaboration setup
26
- Release management
27
- Feature development coordination
28
- Hotfix procedures
29
- Code review processes
30
- CI/CD integration planning
31
32
## Quick Start
33
34
Minimal working example:
35
36
```bash
37
# Initialize GitFlow
38
git flow init -d
39
40
# Start a feature
41
git flow feature start new-feature
42
# Work on feature
43
git add .
44
git commit -m "feat: implement new feature"
45
git flow feature finish new-feature
46
47
# Start a release
48
git flow release start 1.0.0
49
# Update version numbers, changelog
50
git add .
51
git commit -m "chore: bump version to 1.0.0"
52
git flow release finish 1.0.0
53
54
# Create hotfix
55
git flow hotfix start 1.0.1
56
# Fix critical bug
57
git add .
58
git commit -m "fix: critical bug in production"
59
git flow hotfix finish 1.0.1
60
```
61
62
## Reference Guides
63
64
Detailed implementations in the `references/` directory:
65
66
| Guide | Contents |
67
|---|---|
68
| [GitFlow Workflow Setup](references/gitflow-workflow-setup.md) | GitFlow Workflow Setup, GitHub Flow Workflow, Trunk-Based Development, Git Configuration for Workflows (+1 more) |
69
| [Merge Strategy Script](references/merge-strategy-script.md) | Merge Strategy Script |
70
| [Collaborative Workflow with Code Review](references/collaborative-workflow-with-code-review.md) | Collaborative Workflow with Code Review |
71
72
## Best Practices
73
74
### ✅ DO
75
76
- Choose workflow matching team size and release cycle
77
- Keep feature branches short-lived (< 3 days)
78
- Use descriptive branch names with type prefix
79
- Require code review before merging to main
80
- Enforce protection rules on main/release branches
81
- Rebase frequently to minimize conflicts
82
- Write atomic, logical commits
83
- Keep commit messages clear and consistent
84
85
### ❌ DON'T
86
87
- Commit directly to main branch
88
- Create long-lived feature branches
89
- Use vague branch names (dev, test, temp)
90
- Merge without code review
91
- Mix multiple features in one branch
92
- Force push to shared branches
93
- Ignore failing CI checks
94
- Merge with merge commits in TBD
95

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…