Agent Skillsmakeplane/plane › create-pull-request

create-pull-request

GitHub

自动收集分支变更上下文,基于仓库模板生成符合规范的PR描述,提取工作项ID作为标题前缀,并调用gh命令创建Pull Request。

.claude/skills/create-pull-request/SKILL.md makeplane/plane

Trigger Scenarios

用户需要为当前分支创建Pull Request 用户希望自动化生成PR标题和描述

Install

npx skills add makeplane/plane --skill create-pull-request -g -y
More Options

Non-standard path

npx skills add https://github.com/makeplane/plane/tree/preview/.claude/skills/create-pull-request -g -y

Use without installing

npx skills use makeplane/plane@create-pull-request

指定 Agent (Claude Code)

npx skills add makeplane/plane --skill create-pull-request -a claude-code -g -y

安装 repo 全部 skill

npx skills add makeplane/plane --all -g -y

预览 repo 内 skill

npx skills add makeplane/plane --list

SKILL.md

Frontmatter
{
    "name": "create-pull-request",
    "description": "Use when creating a pull request for the current branch — gathers branch context, generates a PR description following the repo's pull_request_template.md, and creates the PR with a Plane work item ID prefix in the title.",
    "user_invocable": true
}

Create PR

Create a pull request using the repo's PR template, a Plane work item ID as the title prefix, and a fully filled-out description based on the actual diff.

Workflow

  1. Determine the base branch: Default to preview unless the user specifies otherwise.

  2. Gather context (in parallel):

    • git status -s — check for uncommitted changes
    • git diff <base>...HEAD --stat — files changed
    • git log <base>...HEAD --oneline — all commits on the branch
    • git diff <base>...HEAD --no-color — full diff for understanding changes (if very large, focus on the most important files first)
    • git rev-parse --abbrev-ref --symbolic-full-name @{u} — check if branch tracks a remote
    • Read .github/pull_request_template.md from the repo root
  3. Determine work item ID:

    • Extract from branch name if it contains an identifier (e.g., chore/silo-1146-fooSILO-1146, feat/web-1234-xWEB-1234)
    • If not found in branch name, ask the user
  4. Draft the PR using the template from step 2:

    Title: [WORK-ITEM-ID] <type>: <concise summary> (under 70 chars)

    • Type reflects the change: fix, feat, chore, refactor, docs, perf, etc.

    Body: Fill in every section from the PR template based on the actual diff:

    • Description — Clear, concise summary of what the PR does and why. Focus on the "what" and "why", not line-by-line changes. Mention important implementation decisions.
    • Type of Change — Check the appropriate box(es): Bug fix, Feature, Improvement, Code refactoring, Performance improvements, Documentation update.
    • Screenshots and Media — Leave a placeholder: <!-- Add screenshots here -->
    • Test Scenarios — Suggest concrete scenarios grounded in the actual changes (e.g., "Navigate to project settings and verify the new toggle works"), not generic ones.
    • References — Include the work item ID, any linked issues the user mentions, and any Sentry issue links/IDs (e.g., SENTRY-ABC123 or Sentry URLs) referenced earlier in the conversation.

    Append a Claude Code session line at the bottom of the body.

  5. Push and create (in parallel where possible):

    • Push branch with -u if no upstream is set
    • Create PR via gh pr create using a HEREDOC for the body
  6. Return the PR URL to the user.

Example Title

[SILO-1146] fix: allow relative URLs for configuration_url and improve app tile visibility

Guidelines

  • Keep the description concise but informative
  • Use bullet points when listing multiple changes
  • Focus on user-facing impact, not implementation details
  • Don't fabricate test scenarios that aren't relevant to the actual changes

Common Mistakes

  • Summarizing only the latest commit instead of all commits on the branch
  • Forgetting to check for an upstream before pushing
  • Using a work item ID format that doesn't match the branch convention
  • Wrapping the PR body in a code fence when passing it to gh pr create

Version History

  • 7fbf14a Current 2026-07-06 00:21

Same Skill Collection

.claude/skills/branch-name/SKILL.md
.claude/skills/react-doctor/SKILL.md
.claude/skills/release-notes/SKILL.md
.claude/skills/translate/SKILL.md

Metadata

Files
0
Version
65f4a99
Hash
41df575c
Indexed
2026-07-06 00:21

Главная - Вики-сайт
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-04 15:07
浙ICP备14020137号-1 $Гость$