git-workflow

Guide git branching, commits, PR creation, and recovery with safety guardrails.

18|9|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/arozumenko/sdlc-skills --skill git-workflow-arozumenko
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-workflow
Source: https://github.com/arozumenko/sdlc-skills/tree/main/skills/git-workflow
Command: npx skills add https://github.com/arozumenko/sdlc-skills --skill git-workflow-arozumenko

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill reduces the risk of broken history, unsafe git commands, and messy PRs by guiding disciplined git operations with clear pre-checks and guardrails.

Core Features & Use Cases

  • Disciplined git operations: Covers branching, commits, PR creation, and release-style workflows with consistent habits (status/log/diff checks).
  • Safety-first guidance: Flags dangerous operations (force push, hard reset, branch deletion, risky rebase) and instructs confirmation before running them.
  • Recovery playbooks: Provides targeted recovery procedures for common failure modes like undoing commits, reflog-based recovery, conflict resolution, and aborting in-progress operations.

Quick Start

Ask your AI to help you create a feature branch, commit the staged changes with a justification-focused message, push to the remote, and draft a structured PR description on GitHub using gh.

Frequently Asked Questions about git-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a pull request with a structured description using gh?

To create a pull request, the workflow guides you to push your feature branch to the remote and then use the GitHub `gh` CLI tool to draft a structured PR description, applying pre-checks to ensure clean commits before submission.

What is the best way to recover a lost git commit after a hard reset?

Recovering a lost git commit involves using targeted recovery playbooks like reflog-based recovery to safely restore your history, providing procedural steps to undo commits and abort risky operations without breaking your repository.

Do I need any specific host tooling besides git CLI to manage branches and PRs?

Yes, besides the git CLI, you need host tooling such as `gh`, `glab`, `az`, `bb`, or `tea` to manage remote branches, create pull requests, and execute release workflows across typical development environments.

How do I prevent unsafe git commands like force push and risky rebase from breaking history?

Preventing unsafe git commands requires a safety-first guidance approach that flags dangerous operations like force push, hard reset, and branch deletion, instructing explicit confirmation before executing them to protect your history.

When should I use a cherry-pick workflow in my branching strategy?

You should use a cherry-pick workflow when you need to apply specific commits across branches, and this Skill provides procedural steps and guardrails to safely manage cherry-picking, tagging, and merging within typical development workflows.