Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

antfu-create-pr

Skill by antfu

Creates a reviewable GitHub pull request from the current branch, with a Conventional Commits title, an evidence-based body, and before and after screenshots for UI changes. It is for developers who ask an AI assistant to open, create, publish, or prepare a PR.

  • Score 92
  • 6.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install antfu-create-pr

Built from the published package, never by AI.

git clone --depth 1 https://github.com/antfu/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/antfu-create-pr ~/.claude/skills/antfu-create-pr

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install antfu-create-pr in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill guides an AI assistant through opening a GitHub pull request from the current branch. It inspects the repository and the merge base, reads the full diff, runs matching checks, and records the exact commands and results. It reshapes the commit history into atomic Conventional Commits, then writes a title and body to a temporary file.

The body explains the changed behavior and why, with sections such as Summary, Verification, and User prompts. Optional sections cover change maps, Mermaid diagrams, risks, and visual evidence. The skill then creates the PR with the gh CLI and watches CI, fixes failures, and handles review comments. It is for developers who want PRs that a reviewer can understand from the body alone.

Written from the project's SKILL.md and checked against it.

What it can do

  • Repository and diff inspectionChecks git status, branches, remotes, PR templates, and the exact base...head range before writing.
  • Conventional Commits historyReviews local commits and splits or squashes them into atomic Conventional Commits that each build.
  • Evidence-based PR title and bodyWrites a short title and a body with Summary, Verification, and User prompts sections.
  • Optional body sectionsAdds change maps, Mermaid diagrams, risk tables, visual changes, or rollout notes when they help.
  • Before and after screenshotsCaptures before and after evidence for user-visible UI changes and attaches them to the PR.
  • PR creation with ghPushes the branch and runs gh pr create with a body file, optionally as a draft.
  • CI follow-upFinds the run for the pushed head, watches it, reads failed logs, and pushes fix commits.
  • Review comment handlingFixes confirmed review issues with follow-up commits and replies with evidence before resolving threads.

What you need

  • Git repository with a pushed branch
  • GitHub CLI (gh)
  • Newer gh version for attaching screenshots

Try asking

  • Open a PR for the current branch with a Conventional Commits title
  • Prepare a PR with before and after screenshots for my UI change
  • Watch CI on my PR and fix any failures with a follow-up commit

Good to know

  • Attaching local images and videos needs a newer gh version
  • Stops after at most 3 fix rounds in CI and reports flaky or out-of-scope failures
  • Does not disable or weaken tests or lint rules to get green
  • Uses demo or sanitized data only for screenshots

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/antfu-create-pr/SKILL.md, skills/antfu-create-pr/scripts/upload-github-attachment.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • README.md1 KB
  • SKILL.md9 KB
  • references/pr-body.md7 KB
  • references/visual-evidence.md5 KB
  • scripts/upload-github-attachment.sh3 KB

Alternatives to antfu-create-pr

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

antfu-create-pr: common questions

Does this skill create the PR and also get it merged?

It creates the PR and then works to make it mergeable and green, including resolving conflicts, watching CI, and addressing review comments. It stops and reports when a failure needs secrets, access, or a scope change.

Does it commit screenshots to the repository?

No. The source says screenshots and other PR-only artifacts should not be committed to the repo and should be attached with gh instead.

How does it handle a branch stacked on another branch?

It targets the parent branch and describes only the PR's own changes, not inherited changes from the parent.

How do I install antfu-create-pr?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is antfu-create-pr free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is antfu-create-pr safe to use?

It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to antfu-create-pr?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

antfu-create-pr Install

Add to stack

Loading.