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.
- 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.
The following setup applies to both CLI and Skills usage.
- Platform CLI: Install and authenticate either GitHub CLI (
gh) or GitLab CLI (glab).- GitHub: Install GitHub CLI and run
gh auth login - GitLab: Install GitLab CLI and run
glab auth login
- GitHub: Install GitHub CLI and run
- AI Provider: Depending on your preference, set up access for one of the following AI providers:
- Claude Code - Anthropic's AI assistant
- Gemini CLI - Google's AI assistant
- Cursor Agent CLI - Cursor's AI assistant
- Codex CLI - Codex's AI assistant
- Need help choosing? Read the AI Providers guide.
| Platform | Claude Code | Gemini CLI | Cursor CLI | Codex CLI |
|---|---|---|---|---|
| GitHub | ✅ | ✅ | ✅ | ✅ |
| GitLab | ✅ | ✅ | ✅ | ✅ |
All combinations of platforms and AI providers are fully supported!
pnpm add -g git-pr-aiAfter 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.
-
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 -
Create a branch from a JIRA Ticket:
# Automatically generates semantic branch names from JIRA tickets git create-branch --jira PROJ-123No more inconsistent branch names or forgetting ticket details. Just paste your JIRA ID and get perfectly formatted branches every time.
-
Create AI-powered Commits:
# AI-generated commit messages based on your changes git ai-commitNo 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 -
Create a Pull Request:
# One-command PR creation with intelligent title formatting git open-prTransform your workflow from "commit → switch to browser → fill forms → copy URLs" to just "commit → one command → done!"
-
Update PR Description with AI:
# AI-powered PR descriptions that explain what changed and why git update-pr-descNever write another boring "fix bug" description. Get detailed, context-aware PR descriptions that help reviewers understand your changes instantly.
-
Review PR with AI:
# Instant AI code review with improvement suggestions git pr-reviewThink of it as having a senior developer review your code 24/7. Catch bugs early, improve code quality, and learn best practices automatically.
-
Generate Weekly Summary:
# AI-generated weekly summaries for standups and reviews git weekly-summaryStop scrambling to remember what you worked on this week. Get AI-generated summaries that highlight your impact and achievements automatically.
-
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_r123Stop 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.
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-aiThe 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 |
code-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:
- "start workflow for PROJ-123"
- "update pr desc"
- "review pr" or "review this PR"
- "fix this comment https://github.com/owner/repo/pull/1#discussion_r123"
Want to learn more about detailed configurations and features?
Please refer to our full documentation.