git-pr-ai CLI

Git commands and agent skills: a JIRA branch, an AI commit, a pull request, a description, review and comment fixes.

  • 80 ★ on the repository
  • Last commit
CLI

Extended access

Why this level

  • The commands commit, push and comment on merge requests on your behalf, and the diff goes to the AI provider.
All reasons and checks

leochiu-a/git-pr-ai

Install

Manual install

pnpm add -g git-pr-ai

Global CLI install. Agent skills install separately with `npx skills add`.

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The commands commit, push and comment on merge requests on your behalf, and the diff goes to the AI provider.

This is third-party code. Review the repository files before installing.

What it does

The package adds `git` subcommands that automate the path from a ticket to a merged request on GitHub and GitLab. `git create-branch --jira PROJ-123` builds a branch name from a ticket, `git ai-commit` offers three commit messages in conventional commits format, `git open-pr` opens a request, `git update-pr-desc` writes a description from the diff and `git pr-review` runs a review with comments. `git fix-pr-comments` fixes reviewer comments, commits, pushes and replies with the commit hash. Besides the CLI there are four agent skills: `git-pr-workflow`, `update-pr-desc`, `pr-review` and `fix-pr-comments`. They install with `npx skills add`, after which an agent runs the same steps from a plain-language request such as "start workflow for PROJ-123". The AI provider can be Claude Code, Gemini CLI, Cursor Agent or Codex.

Who it is for. Developers who handle merge requests every day and lose time on branch names, commit messages and descriptions.

Good fit when

  • A branch is created from a JIRA ticket and the name comes out consistent.
  • After edits you choose one of three suggested commit messages.
  • The request description is written automatically from the real diff.
  • A reviewer left a dozen comments and an agent closes them one by one with commits and replies.

Not a fit when

  • You work without `gh` or `glab`, one of which is needed for requests.
  • The repository lives on a platform other than GitHub or GitLab.
  • Commit messages and descriptions must be written by a person only.

Example request

Create a branch for ticket PROJ-123, commit the changes with a clear message, open a merge request and describe it from the diff.

Limitations

Node.js 20 or newer, an authenticated `gh` for GitHub or `glab` for GitLab and one AI provider are required: Claude Code, Gemini CLI, Cursor Agent CLI or Codex CLI. `git pr-ai config` sets the provider and JIRA access, and ticket binding does not work without it. `git fix-pr-comments` commits and pushes by itself, so run it deliberately on protected branches. Diff and ticket content goes to the chosen AI provider. Detailed settings are in the project docs.

How to disable. Run `pnpm remove -g git-pr-ai` and delete the skills from the agent skills directory. Remove the configuration created by `git pr-ai config` by hand.

FAQ

How do I install the skills for Claude Code?

Run `npx skills add https://github.com/leochiu-a/git-pr-ai`. After installing, describe the task in plain words, for example "review pr".

Does it work with GitLab?

Yes. All combinations of platforms (GitHub, GitLab) and providers (Claude Code, Gemini CLI, Cursor, Codex) are supported. GitLab needs an authenticated `glab`.

What does git fix-pr-comments do?

It takes a review comment or all open comments on the current request, applies the fix, commits, pushes and replies with the commit hash.

Is JIRA required?

No, JIRA is needed only for `git create-branch --jira` and commit messages with a ticket number. The other commands work without it.

How do I get a weekly summary?

Run `git weekly-summary`: the AI assembles a report of the work done over the week for a standup or review.

Discussion

No questions or reviews yet.

CLI tools

A CLI that splits changes into atomic commits and writes conventional commit messages through an LLM, plus a skill for agents.

CLIExtended access80Repository stars

A skill with four gh scripts that gives an agent pull request state, review threads and CI failures in one call and short output.

SkillExtended access52Repository stars

A skill that analyzes a repository and generates files for AI agents: AGENTS.md, pointers, reviewers, CI and templates

SkillExtended access238Repository stars

Brooklyn skills: 25 portable agent skills for pull requests, triage, cleanup, UI checks and research

SkillExtended access215Repository stars
Official

The GitHub CLI extension gh stack and an agent skill: a chain of dependent branches and PRs with rebase, submit and merge of the whole stack

CLIBroad access1.8KRepository stars

Agentic OS adds a five-step workflow and checks in git hooks and CI so that a step without evidence does not count as done

WorkflowExtended access233Repository stars

README in short

The README covers features, prerequisites, installation, a step-by-step CLI scenario from branch to weekly summary and the agent skills option. Detailed docs are moved to the project site.

README badge

Report a problem