Git pr workflows git workflow

From agent-skills-hub/agent-skills-hub · View interactive version

Git pr workflows git workflow is an AI agent skill from the GitHub repository agent-skills-hub/agent-skills-hub. Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern g

How to use this skill

Skill file

Complete Git Workflow with Multi-Agent Orchestration

Orchestrate a comprehensive git workflow from code review through PR creation, leveraging specialized agents for quality assurance, testing, and deployment readiness. This workflow implements modern git best practices including Conventional Commits, automated testing, and structured PR creation.

[Extended thinking: This workflow coordinates multiple specialized agents to ensure code quality before commits are made. The code-reviewer agent performs initial quality checks, test-automator ensures all tests pass, and deployment-engineer verifies production readiness. By orchestrating these agents sequentially with context passing, we prevent broken code from entering the repository while maintaining high velocity. The workflow supports both trunk-based and feature-branch strategies with configurable options for different team needs.]

Use this skill when

Do not use this skill when

Instructions

Configuration

Target branch: $ARGUMENTS (defaults to 'main' if not specified)

Supported flags:

Phase 1: Pre-Commit Review and Analysis

1. Code Quality Assessment

2. Dependency and Breaking Change Analysis

Phase 2: Testing and Validation

1. Test Execution and Coverage

2. Test Recommendations and Gap Analysis

Phase 3: Commit Message Generation

1. Change Analysis and Categorization

2. Conventional Commit Message Creation

Phase 4: Branch Strategy and Push Preparation

1. Branch Management

2. Pre-Push Validation

Phase 5: Pull Request Creation

1. PR Description Generation

2. PR Metadata and Automation Setup

Success Criteria

Rollback Procedures

In case of issues after merge:

  1. Immediate Revert: Create revert PR with git revert <commit-hash>
  2. Feature Flag Disable: If using feature flags, disable immediately
  3. Hotfix Branch: For critical issues, create hotfix branch from main
  4. Communication: Notify team via designated channels
  5. Root Cause Analysis: Document issue in postmortem template

Best Practices Reference

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.