Aus dem Quell-Repository gerendert; Überschriften, Beispiele, Code, Tabellen, Links und Bilder bleiben erhalten.
Open Pull Request
Create a reviewable pull request whose title, body, and commits explain the change and its evidence. The next consumer is the reviewer. Done means the requested description is returned or the remote pull request URL is confirmed.
Mandate
A description-only request is read-only. A request to open a pull request authorizes creating a feature branch when needed, staging only the task's files, committing those files, pushing the branch, and creating or updating its pull request. It does not authorize staging unrelated work, rewriting another contributor's work, merging, or changing remote settings.
Workflow
- Read repository state, current branch, intended changed files, remote, default branch, and any open pull request for the current head. Treat a failed pull-request lookup as unknown, not as proof that no pull request exists.
- Choose the route:
- Description only: compose and return the title and body. Do not modify the remote.
- Existing pull request: push the scoped commits, then update its body only when the request includes that change.
- New pull request: create a feature branch if the current branch is the default branch or detached, then commit, push, and create it.
- When a branch must be created from the default branch, read
references/branch-creation.md. Do not stash, reset, or switch through conflicting local changes automatically. - Stage explicit files only. Keep unrelated working-tree changes out of the commit. Split commits only when the change has clearly independent reviewer value.
- Read
references/pr-description-writing.md. Compose from the complete change range, not the latest commit. Lead with the outcome, state validation or its limitation, and retain required project template fields. - Recheck the branch and existing pull request immediately before pushing or creating one. If the state is still unknown, stop and report the blocker rather than risk a duplicate pull request.
- Apply the body through a temporary file so its literal content survives the command. Confirm the resulting URL, title, and body when the platform allows it.
Boundaries
Use the repository's active conventions for commit messages and pull request structure. Never add generated-by text, authorship claims, or co-author trailers to a commit message, title, or body. Do not claim a check ran unless captured output proves it.
Output
Lead with the pull request URL or the drafted title. State the branch, commits made, validation evidence, and any known limitation. For description-only work, return the title and body without applying it.

