New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Git and pull request automation that adds reviews, PR descriptions, git workflow phases, and team onboarding.

version
1.2.1
GitHub stars
126

What it does

  • Adds git-workflow, pr-enhance, and onboard commands plus a code-reviewer agent for review checks
  • Covers five git phases: code quality checks, test runs, Conventional Commit messages, branch validation, and PR creation
  • Generates PR descriptions with risk scores, before-and-after coverage, Mermaid architecture diagrams, and split suggestions
  • Designed for teams that want consistent git practices and structured onboarding for new engineers

Add marketplace

/plugin marketplace add HermeticOrmus/LibreUIUX-Claude-Code

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install git-pr-workflows@libreuiux

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source

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.]

Configuration

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

Supported flags:

  • --skip-tests: Skip automated test execution (use with caution)
  • --draft-pr: Create PR as draft for work-in-progress
  • --no-push: Perform all checks but don't push to remote
  • --squash: Squash commits before pushing
  • --conventional: Enforce Conventional Commits format strictly
  • --trunk-based: Use trunk-based development workflow
  • --feature-branch: Use feature branch workflow (default)

Phase 1: Pre-Commit Review and Analysis

1. Code Quality Assessment

  • Use Task tool with subagent_type="code-reviewer"
  • Prompt: "Review all uncommitted changes for code quality issues. Check for: 1) Code style violations, 2) Security vulnerabilities, 3) Performance concerns, 4) Missing error handling, 5) Incomplete implementations. Generate a detailed report with severity levels (critical/high/medium/low) and provide specific line-by-line feedback. Output format: JSON with {issues: [], summary: {critical: 0, high: 0, medium: 0, low: 0}, recommendations: []}"
  • Expected output: Structured code review report for next phase

2. Dependency and Breaking Change Analysis

  • Use Task tool with subagent_type="code-reviewer"
  • Prompt: "Analyze the changes for: 1) New dependencies or version changes, 2) Breaking API changes, 3) Database schema modifications, 4) Configuration changes, 5) Backward compatibility issues. Context from previous review: [insert issues summary]. Identify any changes that require migration scripts or documentation updates."
  • Context from previous: Code quality issues that might indicate breaking changes
  • Expected output: Breaking change assessment and migration requirements

Phase 2: Testing and Validation

1. Test Execution and Coverage

  • Use Task tool with subagent_type="unit-testing::test-automator"
  • Prompt: "Execute all test suites for the modified code. Run: 1) Unit tests, 2) Integration tests, 3) End-to-end tests if applicable. Generate coverage report and identify any untested code paths. Based on review issues: [insert critical/high issues], ensure tests cover the problem areas. Provide test results in format: {passed: [], failed: [], skipped: [], coverage: {statements: %, branches: %, functions: %, lines: %}, untested_critical_paths: []}"
  • Context from previous: Critical code review issues that need test coverage
  • Expected output: Complete test results and coverage metrics

2. Test Recommendations and Gap Analysis

  • Use Task tool with subagent_type="unit-testing::test-automator"
  • Prompt: "Based on test results [insert summary] and code changes, identify: 1) Missing test scenarios, 2) Edge cases not covered, 3) Integration points needing verification, 4) Performance benchmarks needed. Generate test implementation recommendations prioritized by risk. Consider the breaking changes identified: [insert breaking changes]."
  • Context from previous: Test results, breaking changes, untested paths
  • Expected output: Prioritized list of additional tests needed

Phase 3: Commit Message Generation

1. Change Analysis and Categorization

  • Use Task tool with subagent_type="code-reviewer"
  • Prompt: "Analyze all changes and categorize them according to Conventional Commits specification. Identify the primary change type (feat/fix/docs/style/refactor/perf/test/build/ci/chore/revert) and scope. For changes: [insert file list and summary], determine if this should be a single commit or multiple atomic commits. Consider test results: [insert test summary]."
  • Context from previous: Test results, code review summary
  • Expected output: Commit structure recommendation

2. Conventional Commit Message Creation

  • Use Task tool with subagent_type="llm-application-dev::prompt-engineer"
  • Prompt: "Create Conventional Commits format message(s) based on categorization: [insert categorization]. Format: (): with blank line then explaining what and why (not how), then with BREAKING CHANGE: if applicable. Include: 1) Clear subject line (50 chars max), 2) Detailed body explaining rationale, 3) References to issues/tickets, 4) Co-authors if applicable. Consider the impact: [insert breaking changes if any]."
  • Context from previous: Change categorization, breaking changes
  • Expected output: Properly formatted commit message(s)

Phase 4: Branch Strategy and Push Preparation

1. Branch Management

  • Use Task tool with subagent_type="cicd-automation::deployment-engineer"
  • Prompt: "Based on workflow type [--trunk-based or --feature-branch], prepare branch strategy. For feature branch: ensure branch name follows pattern (feature|bugfix|hotfix)/-. For trunk-based: prepare for direct main push with feature flag strategy if needed. Current branch: [insert branch], target: [insert target branch]. Verify no conflicts with target branch."
  • Expected output: Branch preparation commands and conflict status

2. Pre-Push Validation

  • Use Task tool with subagent_type="cicd-automation::deployment-engineer"
  • Prompt: "Perform final pre-push checks: 1) Verify all CI checks will pass, 2) Confirm no sensitive data in commits, 3) Validate commit signatures if required, 4) Check branch protection rules, 5) Ensure all review comments addressed. Test summary: [insert test results]. Review status: [insert review summary]."
  • Context from previous: All previous validation results
  • Expected output: Push readiness confirmation or blocking issues

Phase 5: Pull Request Creation

1. PR Description Generation

  • Use Task tool with subagent_type="documentation-generation::docs-architect"
  • Prompt: "Create comprehensive PR description including: 1) Summary of changes (what and why), 2) Type of change checklist, 3) Testing performed summary from [insert test results], 4) Screenshots/recordings if UI changes, 5) Deployment notes from [insert deployment considerations], 6) Related issues/tickets, 7) Breaking changes section if applicable: [insert breaking changes], 8) Reviewer checklist. Format as GitHub-flavored Markdown."
  • Context from previous: All validation results, test outcomes, breaking changes
  • Expected output: Complete PR description in Markdown

2. PR Metadata and Automation Setup

  • Use Task tool with subagent_type="cicd-automation::deployment-engineer"
  • Prompt: "Configure PR metadata: 1) Assign appropriate reviewers based on CODEOWNERS, 2) Add labels (type, priority, component), 3) Link related issues, 4) Set milestone if applicable, 5) Configure merge strategy (squash/merge/rebase), 6) Set up auto-merge if all checks pass. Consider draft status: [--draft-pr flag]. Include test status: [insert test summary]."
  • Context from previous: PR description, test results, review status
  • Expected output: PR configuration commands and automation rules

Success Criteria

  • ✅ All critical and high-severity code issues resolved
  • ✅ Test coverage maintained or improved (target: >80%)
  • ✅ All tests passing (unit, integration, e2e)
  • ✅ Commit messages follow Conventional Commits format
  • ✅ No merge conflicts with target branch
  • ✅ PR description complete with all required sections
  • ✅ Branch protection rules satisfied
  • ✅ Security scanning completed with no critical vulnerabilities
  • ✅ Performance benchmarks within acceptable thresholds
  • ✅ Documentation updated for any API changes

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

  • Commit Frequency: Commit early and often, but ensure each commit is atomic
  • Branch Naming: (feature|bugfix|hotfix|docs|chore)/<ticket-id>-<brief-description>
  • PR Size: Keep PRs under 400 lines for effective review
  • Review Response: Address review comments within 24 hours
  • Merge Strategy: Squash for feature branches, merge for release branches
  • Sign-Off: Require at least 2 approvals for main branch changes

Readme

Git & PR Workflows

Agents and commands for code review, PR enhancement, team onboarding, and end-to-end git workflow orchestration with quality gates.

Overview

This plugin streamlines the entire git workflow from code review through pull request creation and team onboarding. It combines AI-powered code analysis with structured PR descriptions, automated review checklists, and multi-agent orchestration for Conventional Commits, testing, and deployment readiness. Use it when reviewing code, creating pull requests, onboarding new team members, or establishing consistent git practices across a team.

Contents

Agents

  • code-reviewer -- Elite code review specialist combining AI-powered analysis (Trag, Bito, CodeQL, Semgrep) with manual expertise. Covers OWASP Top 10 vulnerability detection, performance and N+1 query analysis, configuration and infrastructure review, test coverage assessment, and language-specific patterns for JavaScript/TypeScript, Python, Java, Go, Rust, and C#. Provides constructive, educational feedback with specific code examples.

Commands

  • onboard -- Comprehensive team onboarding orchestrator covering the full new-hire lifecycle: pre-boarding preparation (accounts, hardware, documentation), Day 1 orientation, Week 1 codebase immersion, development environment setup, buddy system implementation, learning resource curation, and 30/60/90-day milestone tracking. Includes templates for software engineers, remote employees, and senior/lead engineers.

  • pr-enhance -- Generates comprehensive PR descriptions with automated analysis: change summaries with file categorization, risk assessment scoring, test coverage comparison (before/after), architecture diff diagrams (Mermaid), context-aware review checklists, PR size optimization with split suggestions, and automated review bot checks for console logs, large functions, and security issues. Supports feature, bugfix, and refactor PR templates.

  • git-workflow -- Multi-agent git workflow orchestrating 5 phases: (1) Pre-commit code quality and breaking change analysis, (2) Test execution with coverage and gap analysis, (3) Conventional Commit message generation, (4) Branch strategy and pre-push validation, (5) PR creation with description generation and metadata automation. Supports trunk-based and feature-branch strategies with flags for draft PRs, squashing, and test skipping.

Skills

None

Usage

Use the code-reviewer agent for on-demand code quality checks. Run the workflow commands to automate specific parts of the git lifecycle.

/git-workflow main --conventional --feature-branch
/pr-enhance Analyze current branch changes and generate PR description
/onboard Software Engineer, remote, React/Node.js stack, 15-person team

Related Plugins

  • full-stack-orchestration -- Deployment engineer and test automator agents referenced by the git-workflow
  • incident-response -- Smart-fix command for resolving issues that surface during code review
  • javascript-typescript -- Language-specific review patterns for JS/TS codebases

Details

Marketplace
HermeticOrmus/LibreUIUX-Claude-Code
Source
plugins/git-pr-workflows
Author
Seth Hobson
Category
Workflows
License
MIT
Keywords
git, pull-request, workflow, onboarding, essential
Listed since
Apr 7, 2026

More from HermeticOrmus/LibreUIUX-Claude-Code

All 71

Similar to git-pr-workflows

More Git & Releases