Create pr

From TheBushidoCollective/han · View interactive version

Create pr is an AI agent skill from the GitHub repository TheBushidoCollective/han. Create a new pull request in a GitHub repository

How to use this skill

Skill file

Create GitHub Pull Request

Name

github:create-pr - Create a new pull request in a GitHub repository

Synopsis

/create-pr [arguments]

Description

Create a new pull request in a GitHub repository

Implementation

Create a new pull request with source and target branches.

Usage

/create-pr [owner/repo]

This command helps you create a pull request with all necessary details.

What This Command Does

  1. Asks for the repository (owner/repo format)
  2. Prompts for source branch name (head)
  3. Requests target branch name (base)
  4. Asks for PR title
  5. Requests PR description (optional)
  6. Creates the pull request using the GitHub MCP create_pull_request tool
  7. Returns the PR number and URL

Prerequisites

Example Interaction

User: /create-pr my-org/my-repo

Claude: I'll help you create a pull request. What's the source branch?

User: feature/user-authentication

Claude: What's the target branch?

User: main

Claude: What should the pull request title be?

User: Add JWT-based user authentication

Claude: Please provide a description (optional):

User: This PR implements JWT-based authentication for the API:
- User login and registration endpoints
- Token generation and validation middleware
- Password hashing with bcrypt
- Unit tests for auth flows

Closes #42

Claude: Should this be a draft PR?

User: No

Claude: Creating pull request...

Pull request created successfully!
#15 - Add JWT-based user authentication
https://github.com/my-org/my-repo/pull/15

Status: Open
Source: feature/user-authentication -> main

Tips

Related Commands

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.