GitHub PR Writer for Openclaw

An AI-powered utility that generates professional, structured GitHub pull request descriptions by analyzing your branch diffs and commit history.

djc00p
v1.0.2
Apr 6, 2026
0
949
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install github-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 github-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 GitHub PR Writer?

The GitHub PR Writer is a specialized tool within the Openclaw Skills ecosystem designed to eliminate the friction of documenting code changes. It automatically synthesizes information from your git logs and file diffs to populate a standardized template, ensuring that every pull request provides the necessary context for reviewers without manual drafting.

By leveraging this skill, development teams can maintain a high bar for documentation quality. It ensures that summaries, change types, impact assessments, and testing notes are consistently present, which significantly speeds up the code review process and improves the long-term maintainability of the repository history.

GitHub PR Writer Use Cases

  • Creating a new pull request and needing a comprehensive description quickly.
  • Updating an existing PR body after adding new commits to a branch.
  • Standardizing PR documentation across a distributed engineering team.
  • Documenting complex branch changes where manual summary might miss key file modifications.

How GitHub PR Writer Works

  1. The skill is triggered by natural language commands like "create a PR" or "document this branch."
  2. It executes git commands to compare the current HEAD against the base branch (e.g., main).
  3. It analyzes the commit messages and the statistical diff to understand what files were created, modified, or deleted.
  4. The AI maps these changes to a specific Markdown template including sections for Summary, Impact, and Testing.
  5. It produces a formatted Markdown output ready to be used via the GitHub CLI (gh) or web interface.

GitHub PR Writer Setup

To use this Openclaw Skills entry, ensure you have the GitHub CLI and Git installed on your system.

# Ensure dependencies are installed
# macOS
brew install gh git

# Linux
sudo apt install gh git

Copy the provided pull_request_template.md from the assets folder into your repository at .github/pull_request_template.md to ensure the agent uses your preferred format.

GitHub PR Writer Data Schema & Taxonomy

The skill organizes pull request data into a structured Markdown taxonomy as follows:

Section Description Data Source
Summary High-level purpose and issue linking Git context & user intent
Type of Change Categorization (Feature, Bug, Breaking) Diff analysis
Description Bulleted list of specific file/logic changes git diff --stat
Impact Assessment of safety and side effects File dependency analysis
Testing Notes Verification steps and test suite results git log and spec folder diffs

GitHub PR Writer Advanced Features

  • Automatic Issue Linking: Detects issue numbers in branch names or commits to populate the 'Closes' field.
  • Diff Intelligence: Scales its analysis from git diff --stat for large changes to full diff inspection for smaller, logic-heavy updates.
  • Multi-OS Compatibility: Fully supported across Linux, macOS, and Windows environments.
  • Checklist Enforcement: Automatically checks relevant boxes for code cleanliness and testing based on the provided context.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*