# @firstpick/pi-prompts-git-pr

Reusable prompt templates for commit messages, pull request descriptions, and branch review workflows.

## Included prompts

- `/check-pr` — audit PR commits by author/branch/URL and identify risks.
- `/git-staged-msg` — generate short and long conventional commit messages from staged changes.
- `/git-branch-name` — generate a `type/feature-name` PR branch name from staged changes.
- `/pr` — generate a PR description from the current branch diff.
- `/pr-review-branch` — run a non-editing PR-style review against the base branch.
- `/pr-review-implement` — safely implement valid PR review suggestions.
- `/pr-update` — append new branch changes to an existing PR draft.

## Install

```bash
pi install npm:@firstpick/pi-prompts-git-pr
```

For local testing from this repository root:

```bash
pi install ./pi-package-prompts-git-pr
```

## Configuration

No required configuration. After installation, type `/` in Pi to autocomplete the prompt templates.

`/git-staged-msg` accepts optional output preferences:

```text
/git-staged-msg [language: en|de] [scope: auto|never|required]
```

`/pr` accepts an optional output language:

```text
/pr [language: en|de]
```

Defaults remain English with automatic scope selection, so existing invocations without arguments continue to work. The prompt resolves the Git repository root before reading staged changes and always writes its output under the root-level `dev/COMMIT` directory, including when invoked from a nested subdirectory.

## Dependencies

No repository-local Pi extensions, tools, skills, or other prompt packages are required. This bundle only contributes prompt templates through `pi.prompts`.
