# create-pr

Create pull requests using GitHub CLI with proper templates and formatting.

* Purpose - Streamline PR creation with consistent formatting
* Output - GitHub pull request with template

```bash
/git:create-pr
```

## Arguments

None required - interactive guide for PR creation.

## How It Works

1. **Branch Detection**: Identifies current branch and target base branch
2. **Template Search**: Looks for PR templates in `.github/` directory
3. **Change Summary**: Analyzes commits to generate description
4. **PR Creation**: Uses `gh pr create` with formatted content
5. **Issue Linking**: Automatically links related issues

## Usage Examples

```bash
# Create PR for current branch
> /git:create-pr

# After completing feature
> /git:commit
> /git:create-pr

# Full workflow
> /git:analyze-issue 123
> claude "implement feature"
> /git:commit
> /git:create-pr
```

## Best Practices

* Push branch first - Ensure branch is pushed to remote
* Use descriptive titles - Clear summary of changes
* Link issues - Reference related issues in description
* Request reviewers - Add appropriate team members


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cek.neolab.finance/plugins/git/create-pr.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
