LA

leochiu-a/git-pr-ai

Developer tools
80 stars Качество 70 Тренд 70

git-pr-ai streamlines GitHub/GitLab Pull Requests with AI-powered automation. Use it as in your terminal, or as that let Claude Code, Codex, and other agents handle the work for you — from branch...

Обзор

git-pr-ai streamlines GitHub/GitLab Pull Requests with AI-powered automation. Use it as in your terminal, or as that let Claude Code, Codex, and other agents handle the work for you — from branch...

README

Git PR AI

git-pr-ai streamlines GitHub/GitLab Pull Requests with AI-powered automation. Use it as CLI commands in your terminal, or as AI Agent Skills that let Claude Code, Codex, and other agents handle the work for you — from branch creation and smart commits to code reviews and PR descriptions.

Read the Docs

Key Features

  • AI-Powered Intelligence: Harness Claude Code, Gemini AI, Cursor Agent, or Codex to transform mundane git tasks into intelligent, context-aware workflows that understand your code and intentions.
  • Smart JIRA Integration: Seamlessly bridge your project management and development workflow with automated branch creation and context extraction from tickets.
  • Flexible Workflow: Use CLI commands for direct control, or AI Agent Skills for natural language interaction — the same powerful features, two ways to access them.
  • Zero-Friction Setup: From installation to first PR in under 5 minutes - because your time is better spent coding, not configuring tools.

Prerequisites

The following setup applies to both CLI and Skills usage.

Platform & AI Provider Support

Platform Claude Code Gemini CLI Cursor CLI Codex CLI
GitHub ✅ ✅ ✅ ✅
GitLab ✅ ✅ ✅ ✅

All combinations of platforms and AI providers are fully supported!

Installation

pnpm add -g git-pr-ai

Getting Started: CLI

After installing git-pr-ai, the CLI registers a suite of git subcommands (e.g., git pr-ai, git create-branch, git pr-review) so you can run everything directly from your terminal.

  1. Configure the tool (required for git-pr-ai to fetch JIRA data):

    # Set up your preferred AI provider (see AI Providers guide for options)
    git pr-ai config
    
  2. Create a branch from a JIRA Ticket:

    # Automatically generates semantic branch names from JIRA tickets
    git create-branch --jira PROJ-123
    

    No more inconsistent branch names or forgetting ticket details. Just paste your JIRA ID and get perfectly formatted branches every time.

  3. Create AI-powered Commits:

    # AI-generated commit messages based on your changes
    git ai-commit
    

    No more generic commit messages. AI analyzes your changes and suggests 3 meaningful commit messages following conventional commit format. Pick the one that fits best!

    # Provide extra context for the commit message
    git ai-commit "explain why the change was needed"
    
    # Include a JIRA ticket in the commit message
    git ai-commit --jira
    
  4. Create a Pull Request:

    # One-command PR creation with intelligent title formatting
    git open-pr
    

    Transform your workflow from “commit → switch to browser → fill forms → copy URLs” to just “commit → one command → done!”

  5. Update PR Description with AI:

    # AI-powered PR descriptions that explain what changed and why
    git update-pr-desc
    

    Never write another boring “fix bug” description. Get detailed, context-aware PR descriptions that help reviewers understand your changes instantly.

  6. Review PR with AI:

    # Instant AI code review with improvement suggestions
    git pr-review
    

    Think of it as having a senior developer review your code 24/7. Catch bugs early, improve code quality, and learn best practices automatically.

  7. Generate Weekly Summary:

    # AI-generated weekly summaries for standups and reviews
    git weekly-summary
    

    Stop scrambling to remember what you worked on this week. Get AI-generated summaries that highlight your impact and achievements automatically.

  8. Fix PR Review Comments with AI:

    # Resolve a specific review comment, or all open comments on the current PR/MR
    git fix-pr-comments
    git fix-pr-comments https://github.com/owner/repo/pull/1#discussion_r123
    

    Stop context-switching to address every review note by hand. The AI fetches the comment, applies the fix, commits, pushes, and replies with the commit hash.

Getting Started: AI Agent Skills

Prefer natural language over CLI commands? Install the skills and let your AI agent (Claude Code, Codex, etc.) handle the work:

npx skills add https://github.com/leochiu-a/git-pr-ai

The following skills are included:

Skill Description
git-pr-workflow Full PR lifecycle: create branch, commit, open PR, update description, and code review
update-pr-desc AI-generate and apply a PR/MR description from the diff
pr-review AI code review for a PR/MR: analyze the diff and post inline review comments
fix-pr-comments Fix PR/MR review comments, commit the changes, and reply with the commit hash

Once installed, just describe what you want in natural language:

Documentation

Want to learn more about detailed configurations and features?

Please refer to our full documentation.

View this README on GitHub

Рекомендуемые инструменты

Попробуйте другой запрос или уберите фильтр.

Установка

npx skillfish add leochiu-a/git-pr-ai