# Create Pull Request

> Create a new pull request in a GitHub repository

- Skill: `xiaobai1017/create-pull-request` (Agent Skill)
- Install (CLI): `npx skillmds@latest add xiaobai1017/create-pull-request`
- Raw SKILL.md: https://api.skillmd.com/api/skills/xiaobai1017/create-pull-request/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: xiaobai1017 (https://skillmd.com/u/xiaobai1017)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/xiaobai1017/create-pull-request

---


# create_pull_request

Create a new pull request in a GitHub repository

## Purpose

This skill provides access to the MCP tool `create_pull_request`. It allows you to create a new pull request in a github repository.

## Parameters

The tool accepts the following parameters:

### `owner`
**Required**
- **Type**: `string`
- **Description**: Repository owner (username or organization)

### `repo`
**Required**
- **Type**: `string`
- **Description**: Repository name

### `title`
**Required**
- **Type**: `string`
- **Description**: Pull request title

### `body`
*Optional*
- **Type**: `string`
- **Description**: Pull request body/description

### `head`
**Required**
- **Type**: `string`
- **Description**: The name of the branch where your changes are implemented

### `base`
**Required**
- **Type**: `string`
- **Description**: The name of the branch you want the changes pulled into

### `draft`
*Optional*
- **Type**: `boolean`
- **Description**: Whether to create the pull request as a draft

### `maintainer_can_modify`
*Optional*
- **Type**: `boolean`
- **Description**: Whether maintainers can modify the pull request


## Usage Instructions

To use this tool:

1. **Prepare the parameters** according to the schema above
2. **Invoke the MCP tool** `create_pull_request` with the prepared parameters
3. **Process the result** returned by the tool

## Example

```json
{
  "owner": "example_value",
  "repo": "example_value",
  "title": "example_value",
  "body": "example_value",
  "head": "example_value",
  "base": "example_value",
  "draft": true,
  "maintainer_can_modify": true
}
```


## Notes

- This skill requires an active MCP connection to the server providing the `create_pull_request` tool
- Ensure the MCP server is properly configured and running before attempting to use this tool
- Review the parameter requirements carefully to avoid errors
