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

pr-writer

Skill by strands-agents

Generates pull request titles and descriptions from a branch's diff and commits. It is for developers who want an AI assistant to draft PR text that explains why a change exists.

  • Score 94
  • 9.3k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install pr-writer

Built from the published package, never by AI.

git clone --depth 1 https://github.com/strands-agents/harness-sdk /tmp/harness-sdk && mkdir -p ~/.claude/skills && cp -r /tmp/harness-sdk/.agents/skills/pr-writer ~/.claude/skills/pr-writer

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

Step-by-step: install pr-writer in Claude Code

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

About

The PR Writer skill generates pull request titles and descriptions. When asked, it first checks for staged but uncommitted changes and asks the user before continuing. It then runs a bundled script to collect the base branch, commits, changed files and full diff. It reads the repository's PR template and team/PR.md guidelines, and it can pull linked GitHub issues with the gh CLI for motivation.

Titles follow Conventional Commits. The description leads with the reason for the change, and it can include a Public API Changes section and a Risks section when they apply. The skill also saves the PR body to .local/pr-body.md. It is meant for developers who want an assistant to draft a PR from their branch changes.

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

What it can do

  • Staged change checkStops and asks the user before generating if staged changes exist.
  • Diff gatheringRuns a bundled script to get the base branch, commits, changed files and full diff.
  • Issue contextUses gh issue view to pull in linked GitHub issues for motivation.
  • Conventional Commits titlesWrites titles in the type(scope): subject format.
  • Template fillingFills every section of the repository's PR template in order.
  • Public API sectionAdds a Public API Changes section with snippets when public API changes.
  • Self-review passRereads the description to cut filler and scale its length to the diff.
  • PR body fileWrites the PR body to .local/pr-body.md.

What you need

  • git
  • GitHub CLI (gh), authenticated
  • bash, to run get-diff.sh
  • A repository with .github/PULL_REQUEST_TEMPLATE.md
  • A repository with team/PR.md

Try asking

  • Write a PR description for my current branch
  • Draft a pull request title and description for these changes
  • Generate a merge request description that explains why this change exists

Good to know

  • Stops and waits for the user to confirm when staged changes exist.
  • If gh is not authenticated or unavailable, the skill tells the user and continues with the context it has.
  • Asks the user when motivation or scope is unclear instead of guessing.
  • Leaves documentation-related checkboxes unchecked for the user to verify.

Security check

A

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

Checked automatically: .agents/skills/pr-writer/SKILL.md, .agents/skills/pr-writer/get-diff.sh. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • get-diff.sh1 KB

Alternatives to pr-writer

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

pr-writer: common questions

What does the PR Writer need from the repository?

It reads .github/PULL_REQUEST_TEMPLATE.md and team/PR.md, and it runs a bundled get-diff.sh script.

What happens if gh is not authenticated?

The skill tells the user and proceeds with the context it has. It uses gh for linked issues and existing PRs.

Does the generated PR list every changed file?

No. The rules say not to list every file because the diff view already shows them.

How do I install pr-writer?

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

Is pr-writer free?

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

Is pr-writer safe to use?

It scores 94 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 pr-writer?

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

pr-writer Install

Add to stack

Loading.