Git Workflow Management

VerifiedSafe

Manages Git operations including branching, merging, commits, and conflict resolution. Helps maintain a clean commit history and keep feature branches in sync with the development branch.

Sby Skills Guide Bot
DevelopmentIntermediate
6/2/2026
Claude CodeCursorWindsurfCopilotCodex
#git#branching#merging#commit-practices#version-control

Recommended for

Automated summary

This guide provides best practices for Git usage: branch management, atomic commits, conflict resolution, and merge procedures.

Strengths

  • Clear conventions for branch naming and commit messages
  • Detailed conflict resolution process with step-by-step instructions
  • Pre-merge checklist to avoid common mistakes

Limitations

  • Assumes a specific naming scheme (feature/CR-NNN) which may not fit all projects
  • Does not cover rebasing or advanced history rewriting
  • Focuses on a linear workflow, may not suit git-flow or other strategies
When to use it

Use this guide when you need a consistent Git workflow for feature branches and merging.

When not to use it

Do not use it for projects using different branching strategies like GitHub Flow or trunk-based development.

Security analysis

Safe
Quality score90/100

The skill provides only standard git workflow guidance with no destructive commands, file exfiltration, or unsafe instructions. All mentioned commands are typical and expected.

No concerns found

How this analysis is made

Examples

Create a new feature branch
Create a new feature branch named feature/CR-042-user-auth from the development branch.
Merge development into feature branch
Merge the development branch into the current feature branch and resolve any conflicts.
Resolve a merge conflict
Resolve the merge conflict in the file src/auth.js, keeping the changes from both branches where appropriate.

name: git-workflow description: Use when the Integrator is performing git operations — committing, branching, merging feature branches, resolving conflicts, managing branch lifecycle, or maintaining commit history. Activates for any git-related work. version: 1.0.0

Git Workflow Expertise

When This Applies

Apply this guidance when:

  • Creating or managing branches
  • Committing and pushing changes
  • Merging feature branches into development
  • Resolving merge conflicts
  • Managing commit history

Branch Management

Branch Naming

  • Feature branches: feature/CR-NNN-short-description
  • Hotfix branches: hotfix/NNN-short-description
  • Keep names lowercase with hyphens
  • Always include the CR or issue number

Branch Lifecycle

1. Create:   git checkout -b feature/CR-001-user-auth development
2. Work:     Multiple commits as work progresses
3. Update:   git merge development (keep in sync)
4. Test:     Run ALL tests before final merge
5. Merge:    git checkout development && git merge --no-ff feature/CR-001-user-auth
6. Cleanup:  git branch -d feature/CR-001-user-auth

Keeping Branches Current

Regularly sync feature branches with development:

git checkout feature/CR-001-user-auth
git merge development
# Resolve any conflicts
# Run tests to verify

Commit Practices

Commit Message Format

[TASK-NNN] Brief description of what changed

Optional longer description explaining:
- Why this change was made
- What approach was taken
- Any notable decisions

Commit Guidelines

  1. Atomic commits — Each commit should be one logical change
  2. Meaningful messages — "Fix bug" is bad; "[TASK-042] Fix null reference in auth token validation" is good
  3. Never commit broken code — All tests must pass before committing
  4. Reference the task — Always include the TASK-NNN in the commit message
  5. No merge commits in feature branches — Use merge only when merging to development

What to Include in a Commit

  • Source code changes related to the task
  • Related configuration changes
  • Updated documentation if behavior changed

What NOT to Commit

  • Debug logging or temporary code
  • IDE settings or personal configuration
  • Unrelated changes (even if they're improvements)
  • Files with secrets, tokens, or credentials

Merge Conflict Resolution

Process

  1. Identify conflicting files: git status
  2. For each conflict:
    • Read BOTH sides of the conflict
    • Understand the intent of each change
    • Choose the correct resolution (may be a combination)
    • Remove all conflict markers (<<<<, ====, >>>>)
  3. Run tests after resolving all conflicts
  4. Commit the merge

Conflict Prevention

  • Sync feature branches with development frequently
  • Communicate with other roles about shared file changes
  • Keep changes focused — large diffs create more conflicts

Pre-Merge Checklist (feature → development)

  1. [ ] All tests pass on the feature branch
  2. [ ] Feature branch is up to date with development
  3. [ ] No unresolved merge conflicts
  4. [ ] Commit messages reference task IDs
  5. [ ] No debug code or temporary files
  6. [ ] Changes match the task scope (no extras)
  7. [ ] Notify Manager after successful merge

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/git-workflow-management-mm78nmr3/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/git-workflow-management-mm78nmr3' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/git-workflow-management-mm78nmr3/download' --output '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md.part' && mv '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md.part' '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && test -s '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/git-workflow' && cp -R '.skill-downloads/git-workflow-management-mm78nmr3' '.claude/skills/git-workflow'

Cursor
test -f '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && test -s '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/git-workflow' && cp -R '.skill-downloads/git-workflow-management-mm78nmr3' '.cursor/skills/git-workflow'

Codex
test -f '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && test -s '.skill-downloads/git-workflow-management-mm78nmr3/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/git-workflow' && cp -R '.skill-downloads/git-workflow-management-mm78nmr3' '.agents/skills/git-workflow'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/git-workflow-management-mm78nmr3'

openskills read 'git-workflow-management-mm78nmr3'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/git-workflow-management-mm78nmr3/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills