PR Writer for Openclaw

An AI-powered CLI tool that analyzes git diffs to automatically generate comprehensive pull request titles and descriptions.

lxgicstudios
v1.0.0
Jan 28, 2026
0
0
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install pr-writer

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install pr-writer using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is PR Writer?

PR Writer is a specialized utility designed to eliminate the friction of manual documentation during the software development lifecycle. By leveraging Openclaw Skills, this tool interprets code changes directly from your local repository to produce meaningful, context-aware summaries. It serves as a bridge between code completion and the review process, ensuring that every pull request is accompanied by high-quality, professional documentation without the manual busywork.

This tool is part of a broader ecosystem of developer productivity aids, focusing on speed and consistency. Whether you are working solo or as part of a large engineering team, using Openclaw Skills like PR Writer ensures that your PRs are informative and easy for reviewers to understand.

PR Writer Use Cases

  • Rapidly opening pull requests after finishing a feature or bug fix.
  • Maintaining consistent documentation standards across multiple repositories and contributors.
  • Automating the PR creation process within CI/CD pipelines by piping output to git APIs.
  • Managing multiple concurrent branches where manual context switching makes writing descriptions difficult.

How PR Writer Works

  1. The tool identifies the difference between your current branch and a specified base branch using simple-git.
  2. The raw diff data is processed through an AI model that analyzes file additions, deletions, and logical modifications.
  3. The skill generates a concise PR title that summarizes the intent of the changes.
  4. A detailed Markdown description is produced, explaining the 'what' and 'why' of the code updates.
  5. The final output is printed directly to your terminal for immediate use in your git hosting provider.

PR Writer Setup

To use this tool as part of your Openclaw Skills workflow, ensure you have Node.js 18+ installed. No permanent installation is required as it can be run via npx:

npx ai-pr-desc

For help with specific flags and options, run:

npx ai-pr-desc --help

PR Writer Data Schema & Taxonomy

The tool processes git metadata and branch diffs to generate structured documentation. It does not store your code but reads the local state of your repository.

Input Component Description
Base Branch The reference branch for the diff (defaults to main).
Diff Content The actual code changes detected in the git buffer.
Output Title A single-line summary generated for the PR header.
Output Body A multi-line Markdown description of the changes.

PR Writer Advanced Features

  • Custom base branch targeting using the --base flag for complex release flows.
  • Compatibility with any git-based repository without requiring specific config files.
  • Pipe-friendly output that integrates seamlessly with the GitHub CLI (gh) or other automation scripts.
  • Support for diverse Openclaw Skills environments where Node.js is available.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*