create-pr

Generate DCO-signed commits and linked PR/MR metadata from git diffs.

31|6|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill create-pr-openharmonyinsight
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/openharmonyinsight/openharmony-skills/tree/main/skills/create-pr
Command: npx skills add https://github.com/openharmonyinsight/openharmony-skills --skill create-pr-openharmonyinsight

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the repetitive work of turning code changes into properly structured commits, Issue/MR descriptions, and linked pull requests, while reducing review friction through consistent formatting and DCO sign-off.

Core Features & Use Cases

  • Change analysis from diffs: Inspects staged/uncommitted changes and derives summaries such as affected components, key file changes, and function/class-level signals.
  • Auto-generated Issue + PR/MR content: Produces structured titles and descriptions suitable for GitHub and GitCode/GitLab-style workflows.
  • DCO sign-off and end-to-end workflow: Automatically adds Signed-off-by to commits, then pushes the branch and creates the Issue and PR/MR, linking them via Fixes #id.
  • Use case: When you finish a feature or fix in an OpenHarmony repository, run this Skill to generate an Issue and PR/MR with a detailed, review-friendly description based on the real diff, without writing everything manually.

Quick Start

Run the create-pr skill by executing: python scripts/create-pr/full_auto_pr.py --target main

Frequently Asked Questions about create-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically generate pull requests from a git diff?

To generate pull requests from a git diff, you need a tool that analyzes staged changes to derive summaries and automatically structures the PR content. This Skill automates that process by inspecting diffs, deriving component signals, and pushing the branch.

Can I automate DCO sign-off and issue linkage when creating a GitHub PR?

Yes, automating DCO sign-off and issue linkage is possible by configuring a script to add Signed-off-by lines and link issues via Fixes #id. This Skill handles both automatically, pushing commits and linking the created PR to the issue.

Does this automated PR creation tool support GitLab and GitCode repositories?

Yes, automated PR creation supports GitLab and GitCode repositories alongside GitHub. It generates platform-specific Issue and PR/MR metadata, adapting the end-to-end workflow creation for each platform's requirements.

What is the best way to create review-friendly PR descriptions from code changes?

The best way to create review-friendly PR descriptions from code changes is using diff-based analysis to extract affected components and key file modifications. This Skill derives structured titles and detailed descriptions directly from your commit history.

What happens if API creation fails during automated pull request generation?

If API creation fails during automated pull request generation, robust fallback behavior is triggered. The Skill is designed to handle API failures gracefully, ensuring the workflow continues or exits safely without losing your commit data.