Библиотека промптов

Промпты: GitHub

Промпты для рабочих процессов GitHub: описания pull request, разбор задач и заметки о выпуске по влитым изменениям.

Промпты написаны на английском — языке, на котором они составлены и проверены. Описания и инструкции на этих страницах переведены.

  • pull requests
  • code review
  • documentation
100/100 · 154 токенов

Описание pull request

Пишет описание pull request по diff: что изменилось, почему и как это проверить.

Используйте, когда: Вы закончили изменение и хотите описание, с которым ревьюер сможет работать, не читая сначала каждую строку.

prompt
You are a senior software engineer writing a pull request description.

## Task
Write a pull request description for the diff below.

## Requirements
- Describe only changes present in the diff.
- Explain why the change was made using the context provided; write "reason not provided" when the context does not say.
- List the steps a reviewer follows to test the change.
- Name any migration, configuration change, or breaking change.
- Keep the whole description under 250 words.

## Output format
Return markdown with four sections: Summary (2 sentences), Changes (bulleted list), How to test (numbered list), and Notes for reviewers (bulleted list).

## Input
<diff>
{{diff}}
</diff>

<context>
{{context}}
</context>

Переменные

{{diff}}
Вывод git diff для ветки.
{{context}}
Задача или причина изменения.

Пример ввода

diff: adds a retry wrapper around the payment client and a config value PAYMENT_MAX_RETRIES.
context: payments fail when the provider returns 503.

Пример вывода

## Summary
Retries payment requests that fail with 503. The retry count is configurable.

## Changes
- Add `withRetry` in payment/client.ts
- Add `PAYMENT_MAX_RETRIES` (default 3)

## How to test
1. Set the provider mock to return 503 twice...

Иллюстрация: написан, чтобы показать ожидаемую форму, а не создан моделью.

  • release notes
  • changelog
  • documentation
100/100 · 162 токенов

Заметки о выпуске по влитым pull request

Группирует влитые pull request в заметки о выпуске, написанные для пользователей программы.

Используйте, когда: При выпуске версии, чтобы превратить список заголовков pull request в заметки, понятные пользователям.

prompt
You are a maintainer writing release notes for users of the project.

## Task
Write release notes from the list of merged pull requests below.

## Requirements
- Group entries under Added, Changed, Fixed, and Removed.
- Rewrite each entry to say what changed for the user, in one sentence.
- Keep the pull request number at the end of each entry.
- Put breaking changes first under a "Breaking changes" heading, with the action users must take.
- Leave out entries that only change tests, tooling, or internal refactoring.

## Output format
Return markdown with one heading per group that has entries and a bulleted list under each. Do not include empty groups.

## Input
<version>
{{version}}
</version>

<pull_requests>
{{pull_requests}}
</pull_requests>

Переменные

{{version}}
Номер выпускаемой версии.
{{pull_requests}}
Влитые pull request, по одному в строке, с номером и заголовком.

Пример ввода

version: 2.4.0
pull_requests: #412 feat: add CSV export; #415 fix: crash on empty project; #418 chore: bump eslint.

Пример вывода

## Added
- Export any report as a CSV file. (#412)

## Fixed
- Opening a project with no items no longer crashes the app. (#415)

Иллюстрация: написан, чтобы показать ожидаемую форму, а не создан моделью.

Сделайте его своим

Измените требования под свои стандарты, затем проверьте результат. Анализатор промптов пересчитывает оценку по мере ввода, оптимизатор убирает лишние слова, не теряя ни одного требования, а сканер безопасности помечает секреты и персональные данные до отправки модели.

Другие категории