Claude Code Plugins

Community-maintained marketplace

Feedback

github-pr-creator

@scizorman/dotfiles
0
0

Creates GitHub pull requests using gh CLI. Use when creating PRs, submitting code changes, or proposing merges.

Install Skill

1Download skill
2Enable skills in Claude

Open claude.ai/settings/capabilities and find the "Skills" section

3Upload to Claude

Click "Upload skill" and select the downloaded ZIP file

Note: Please verify skill by going through its instructions before using it.

SKILL.md

name github-pr-creator
description Creates GitHub pull requests using gh CLI. Use when creating PRs, submitting code changes, or proposing merges.

GitHub Pull Request Creator

This skill defines rules and procedures for creating GitHub pull requests.

Workflow

  1. Ensure the branch is created and changes are committed and pushed. (Refer to git-operator skill for Git operations.)
  2. Determine Issue linking (see Issue Linking).
  3. Check if the repository has PR templates.
  4. Create the pull request with gh pr create.
  5. Report the PR URL to the user.

Issue Linking

If the user specified which Issue to link, use that Issue.

If the user explicitly indicated no Issue linking is needed, proceed without linking.

If the user did not specify, ask the user which Issue this PR should be linked to, or whether Issue linking is not needed for this PR. Provide context by briefly summarizing what the PR implements to help the user decide.

Issue Link Format

Regardless of whether a PR template exists, always use the full URL format for Issue linking.

- https://github.com/{owner}/{repo}/issues/xxx

Template Detection

Check for PR templates.

if [ -f ".github/PULL_REQUEST_TEMPLATE.md" ]; then
    cat .github/PULL_REQUEST_TEMPLATE.md
elif [ -d ".github/PULL_REQUEST_TEMPLATE" ]; then
    ls .github/PULL_REQUEST_TEMPLATE/
fi

If templates exist, read the content and follow the structure. If no templates exist, use templates/default.md.

Title Guidelines

The title should be a natural language sentence summarizing the task and the implemented changes. Do not use commit message format (e.g., "chore(update): xxx").

Language

Write PR content in Japanese by default. If the user explicitly requests English, write in English.