antd-create-pr

Analyze branch changes and generate Ant Design pull request drafts.

99.0k|54.7k|Updated Apr 24, 2015
One-click install
npx skills add https://github.com/ant-design/ant-design --skill antd-create-pr
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: antd-create-pr
Source: https://github.com/ant-design/ant-design/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/ant-design/ant-design --skill antd-create-pr

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the process of creating pull requests for the Ant Design repository, ensuring adherence to its official templates and contribution guidelines, thereby saving developers time and reducing errors.

Core Features & Use Cases

  • Automated PR Generation: Creates pull requests using Ant Design's specific PR templates (.github/PULL_REQUEST_TEMPLATE_CN.md or .github/PULL_REQUEST_TEMPLATE.md).
  • Intelligent Template Selection: Chooses the appropriate template language (Chinese or English) based on user language habits.
  • Comprehensive Change Analysis: Analyzes all changes between the current branch and the base branch, not just the last commit.
  • Pre-creation Confirmation: Generates a PR draft (base, title, body) for user confirmation before execution.
  • Use Case: When you've finished a feature branch for Ant Design and need to open a pull request, this Skill will help you draft the title, body, and select the correct template, ensuring it meets Ant Design's standards before submission.

Quick Start

Use the antd-create-pr skill to prepare a pull request for the ant-design repository.

Frequently Asked Questions about antd-create-pr

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

FAQPage Schema
How do I create a pull request for Ant Design that matches the official contribution guidelines?

To create a pull request for Ant Design, this Skill automates drafting by analyzing branch changes and selecting the correct official template based on your language, ensuring adherence to contribution guidelines before submission.

Does the Ant Design PR template support both Chinese and English formats?

Yes, Ant Design PR template selection supports both Chinese and English formats. The Skill intelligently chooses between `.github/PULL_REQUEST_TEMPLATE_CN.md` and `.github/PULL_REQUEST_TEMPLATE.md` based on your language habits.

How do I generate a GitHub PR draft from all branch changes instead of just the last commit?

Generating a GitHub PR draft from all branch changes is handled by analyzing the complete diff between your current feature branch and the base branch, then formatting the output into a structured PR body for confirmation.

Can I review the pull request title and body before executing the gh pr create command?

Yes, you can review the pull request title and body before execution. The Skill generates a complete PR draft including the base, title, and body, requiring your confirmation before running the `gh pr create` command.

What is the best way to automate Ant Design PR title formatting and content structure?

The best way to automate Ant Design PR title formatting is by using this Skill, which strictly adheres to the repository's specific PR guidelines, automatically structuring both the title and content to meet official standards.

Do I need to manually select the base branch when submitting a pull request to Ant Design?

You do not need to manually select the base branch when submitting a pull request. The Skill determines the appropriate base branch during change analysis and includes it in the generated draft for your final confirmation.