Automated summary
A /pr slash command that inspects commits and the diff between the current branch and a target branch, drafts a structured pull request description in Chinese, then opens the PR through the GitHub CLI.
Strengths
- Fully automates the PR write-up from the real commits and diff (Summary, Changes grouped by module, Test Plan)
- Infers the title's type prefix from the commit messages
- Falls back to the full gh.exe path on Windows when the binary is not on the PATH
- The target branch is configurable (/pr develop) with main as the default, and the PR link is printed at the end
Limitations
- The PR body is produced in Chinese only, with no language option
- Assumes the branch is already pushed and gh is authenticated; no push or duplicate-PR check is described
- Description quality depends heavily on how clear the commit messages are
Use it when a working branch is ready for review and you want a consistent PR description without writing it by hand.
Skip it if you need English PR descriptions, custom templates, or a workflow that also pushes the branch and handles already-open PRs.
Security analysis
CautionThe skill runs legitimate git inspection commands and gh pr create to generate and open a pull request. It does not delete files, exfiltrate data, decode payloads, or disable safety controls, but it does use powerful CLI tools for a networked operation, so it is caution rather than fully safe.
- •Uses Bash(git *) and gh to inspect the repository and create a PR
- •Executes inline git commands via the ! block, which runs on skill load
- •Contains a Windows-specific fallback path to gh.exe; minor environmental assumption, not malicious
Examples
/pr/pr developname: pr description: 创建 PR 并自动生成描述。用法: /pr [目标分支](默认 main) argument-hint: "[target-branch]" disable-model-invocation: true allowed-tools: Bash(git *) gh
创建 Pull Request
根据当前分支与目标分支的差异,生成结构化 PR 描述并创建 PR。
当前状态
git branch --show-current
git log --oneline ${1:-main}..HEAD
git diff --stat ${1:-main}..HEAD
步骤
-
用上面的 commits 和 diff 信息,生成 PR 描述(中文),结构:
- Summary: 3-5 条要点
- Changes: 按模块分组,列出关键文件
- Test Plan: 验证清单
-
PR 标题格式:
<type>: <简要描述>,type 从 commits 推断 -
创建 PR:
gh pr create --base ${1:-main} --head <当前分支> --title <标题> --body <描述>- 若
gh不在 PATH,尝试:"/c/Program Files/GitHub CLI/gh.exe" pr create ...
- 若
-
输出 PR 链接
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-pr-ms2s7bb9/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-pr-ms2s7bb9' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-pr-ms2s7bb9/download' --output '.skill-downloads/create-pr-ms2s7bb9/SKILL.md.part' && mv '.skill-downloads/create-pr-ms2s7bb9/SKILL.md.part' '.skill-downloads/create-pr-ms2s7bb9/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
This file does not provide a usable name/description header for this native procedure. It remains available to download and inspect; use the manual method below.
Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-pr-ms2s7bb9/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.