Git Workflows

VerifiedCaution

Provides Git version control capabilities including branching, commits, merging, rebasing, and GitHub collaboration.

Sby Skills Guide Bot
DevelopmentIntermediate
7/22/2026
Claude CodeCursorCodex
#git#version-control#branching#pull-requests#github-cli

Recommended for

Automated summary

Provides Git command references, Git Flow branching conventions, commit message standards, and GitHub CLI workflows for repository management.

Strengths

  • Covers everyday Git operations from staging through rebase and undoing commits.
  • Defines branch naming conventions and Conventional Commit-style message formats.
  • Includes GitHub CLI examples for pull requests, issues, and repository tasks.
  • Mentions safer practices such as --force-with-lease and ignoring secrets in .gitignore.

Limitations

  • Some sections are incomplete, notably the .gitignore block that ends without a closing fence.
  • The documented model assumes Git Flow and is less suited to trunk-based workflows.
  • It is mostly a command cheat sheet; complex conflict resolution and history recovery are not covered in depth.
When to use it

Use when you need quick Git command guidance, branch and commit conventions, or GitHub CLI steps for a repository task.

When not to use it

Avoid when you need advanced history recovery, complex merge-conflict resolution, or a workflow other than Git Flow.

Security analysis

Caution
Quality score85/100

The skill is a legitimate Git workflow reference and contains no exfiltration, obfuscation, or obviously malicious instructions. However, it teaches and enables powerful repository-modifying operations, including hard resets, force pushes, and PR merges, so it warrants caution rather than a fully safe rating.

Findings
  • •Includes destructive commands such as `git reset --hard HEAD~1` without strong warnings about data loss.
  • •Includes `git push --force-with-lease`, which can rewrite remote history if misused.
  • •Includes `gh pr merge`, which can merge pull requests when run with sufficient permissions.
  • •Declares Bash/Write/Edit tools, so the agent can execute repository-modifying commands.
How this analysis is made

Examples

Create feature branch and PR
Start a new feature branch from develop for adding agent API support, make commits follow our convention, and show the gh commands to open a pull request.
Sync branch with rebase
My feature branch is behind develop and has three messy commits. Show me how to rebase onto develop, resolve conflicts, and safely force-push.
Undo a commit
I accidentally committed a secret and want to undo the last commit without losing my working changes. What Git commands should I run?

name: gitworfkflows description: Git workflows including branching strategies, commits, merging, rebasing, and GitHub collaboration. Activate for git commands, version control, PRs, and repository management. allowed-tools:

  • Bash
  • Read
  • Write
  • Edit
  • Glob
  • Grep

Git Workflows Skill

Provides comprehensive Git version control capabilities for the Golden Armada AI Agent Fleet Platform.

When to Use This Skill

Activate this skill when working with:

  • Git commands and operations
  • Branching strategies
  • Commit management
  • Pull requests and merges
  • Repository configuration

Quick Reference

Basic Commands

```bash

Status and info

git status git log --oneline -10 git diff git diff --staged

Staging

git add <file> git add . git add -p # Interactive staging

Committing

git commit -m "message" git commit -am "message" # Add and commit git commit --amend

Branching

git branch git branch <name> git checkout <branch> git checkout -b <branch> git switch <branch> git switch -c <branch>

Merging

git merge <branch> git merge --no-ff <branch> git rebase <branch>

Remote

git fetch git pull git push git push -u origin <branch> ```

Branching Strategy (Git Flow)

``` main ─────●─────────────●─────────────●─────── │ │ │ release ─────┼─────●───────┼─────────────┼─────── │ │ │ │ develop ─────●─────┼───────●─────────────●─────── │ │ │ │ feature ─────●─────┘ │ │ │ │ hotfix ───────────────────●─────────────┘ ```

Branch Naming

```bash

Features

feature/add-agent-api feature/GA-123-user-auth

Bugfixes

bugfix/fix-agent-timeout bugfix/GA-456-memory-leak

Hotfixes

hotfix/critical-security-patch

Releases

release/v1.0.0 ```

Commit Message Convention

```bash

Format

<type>(<scope>): <subject>

<body> <footer>

Types

feat: New feature fix: Bug fix docs: Documentation style: Formatting (no code change) refactor: Code refactoring test: Adding tests chore: Maintenance

Examples

git commit -m "feat(agent): add Claude agent support" git commit -m "fix(api): resolve timeout in task processing" git commit -m "docs: update deployment instructions" ```

Common Workflows

Start Feature

```bash git checkout develop git pull origin develop git checkout -b feature/new-feature

... work ...

git add . git commit -m "feat: implement new feature" git push -u origin feature/new-feature

Create PR to develop

```

Sync Feature Branch

```bash git checkout develop git pull origin develop git checkout feature/my-feature git rebase develop

Resolve conflicts if any

git push --force-with-lease ```

Squash Commits

```bash git rebase -i HEAD~3 # Interactive rebase last 3 commits

Change 'pick' to 'squash' for commits to combine

```

Undo Changes

```bash

Undo last commit (keep changes)

git reset --soft HEAD~1

Undo last commit (discard changes)

git reset --hard HEAD~1

Undo staged changes

git restore --staged <file>

Discard working directory changes

git restore <file>

Revert a commit (creates new commit)

git revert <commit-hash> ```

GitHub CLI

```bash

PR Management

gh pr create --title "Feature: Add agent API" --body "Description" gh pr list gh pr checkout <number> gh pr merge <number> gh pr review <number> --approve

Issues

gh issue create --title "Bug: Agent timeout" --label bug gh issue list gh issue close <number>

Repository

gh repo clone <owner>/<repo> gh repo view --web ```

.gitignore Patterns

```gitignore

Dependencies

node_modules/ venv/ pycache/

Build outputs

dist/ build/ *.egg-info/

Environment

.env .env.local *.local

IDE

.idea/ .vscode/ *.swp

OS

.DS_Store Thumbs.db

Logs

*.log logs/

Secrets (never commit!)

*.pem *.key credentials.json ```

Git Hooks

```bash

.git/hooks/pre-commit

#!/bin/sh npm run lint npm run test

.git/hooks/commit-msg

#!/bin/sh if ! grep -qE "^(feat|fix|docs|style|refactor|test|chore)((.+))?: .{1,50}" "$1"; then echo "Invalid commit message format" exit 1 fi ```

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-workflows-mrwakbli/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-workflows-mrwakbli' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/git-workflows-mrwakbli/download' --output '.skill-downloads/git-workflows-mrwakbli/SKILL.md.part' && mv '.skill-downloads/git-workflows-mrwakbli/SKILL.md.part' '.skill-downloads/git-workflows-mrwakbli/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.

Original excerpt: Quick Reference

Basic Commands

```bash

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-workflows-mrwakbli/SKILL.md' && test -s '.skill-downloads/git-workflows-mrwakbli/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/gitworfkflows' && cp -R '.skill-downloads/git-workflows-mrwakbli' '.claude/skills/gitworfkflows'

Cursor
test -f '.skill-downloads/git-workflows-mrwakbli/SKILL.md' && test -s '.skill-downloads/git-workflows-mrwakbli/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/gitworfkflows' && cp -R '.skill-downloads/git-workflows-mrwakbli' '.cursor/skills/gitworfkflows'

Codex
test -f '.skill-downloads/git-workflows-mrwakbli/SKILL.md' && test -s '.skill-downloads/git-workflows-mrwakbli/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/gitworfkflows' && cp -R '.skill-downloads/git-workflows-mrwakbli' '.agents/skills/gitworfkflows'

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-workflows-mrwakbli'

openskills read 'git-workflows-mrwakbli'

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-workflows-mrwakbli/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