Przejdź do treści
Biblioteka skilli
Programowanie · Pisanie

describing-prs

/describing-prs

Generuje opis pull requesta dla bieżącej gałęzi i zapisuje go jako Markdown w .git/magit/posts/new-pullreq dla magit-forge.

Repozytorium
ai-config ↗
Licencja
GPL-3.0
Ostatnia zmiana repozytorium
08.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 08.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

GPL-3.0, otwarta.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: scripts/find-merge-base.py

Co robi i kiedy

Generuje opis pull requesta dla bieżącej gałęzi i zapisuje go jako Markdown w .git/magit/posts/new-pullreq dla magit-forge.

Oryginalny opis (EN)

Generates a pull request description for the current branch and writes it as Markdown to .git/magit/posts/new-pullreq for magit-forge. Use when the user asks for a PR description, PR summary, or write-up of what a branch changes, or is preparing to open a pull request.

Jak działa

  1. When to Use This Skill
  2. Process
  3. Output Format
  4. Formatting Guidelines
  5. Important Notes
Sekcje z nagłówków SKILL.md, w oryginale · 113 linii, 428 słów
Podgląd SKILL.md
---
name: describing-prs
description: >-
  Generates a pull request description for the current branch and writes it as
  Markdown to .git/magit/posts/new-pullreq for magit-forge. Use when the user
  asks for a PR description, PR summary, or write-up of what a branch changes,
  or is preparing to open a pull request.
allowed-tools: Bash(~/.agents/skills/describing-prs/scripts/find-merge-base.py:*)
---

# PR Description Generator

Generate a well-structured PR description for the current feature branch.

## When to Use This Skill

Use this skill when:

- Preparing to create a pull request
- Needing a PR description for the current branch
- Integrating with magit-forge for PR creation

## Process

1. **Determine the base branch**

   Run the helper script to find the base branch:

   ```bash
   BASE=$(~/.agents/skills/describing-prs/scripts/find-merge-base.py)
   ```

   The script outputs a branch name (e.g., `origin/main`) that represents
   the base branch for comparison. It handles cases where you branched
   from another feature branch, not just main/master.

   **Options**:
   - `--fetch`: Fetch latest remote refs before determining base branch
   - `--debug`: Show how the base branch is determined

   **Strategy** (implemented in the script):
   - Try `@{upstream}` first (the current branch's configured upstream)
   - Try `origin/HEAD` (the remote's default branch)
   - Fall back to common defaults: `origin/main`, `origin/master`, `origin/develop`
   - If neither works, find the closest remote branch by commit distance

2. **Gather context about the branch**

   Using the base branch found above:

   ```bash
   git branch --show-current
   git log --oneline <base-branch>..HEAD
   git diff --no-ext-diff <base-branch>..HEAD --stat
   git diff --no-ext-diff <base-branch>..HEAD
   ```

3. **Analyze the changes**

   - Identify the purpose of the changes
   - Group related commits by theme
   - Note any breaking changes or important considerations

4. **Generate the PR description**

   Write a Markdown file with:

   - **Title**: A concise summary (will be used as PR title)
   - **Summary**: 2-3 sentences explaining the overall purpose
   - **Changes**: Bullet points of key modifications
   - **Testing**: How the changes were tested (if applicable)
   - **Notes**: Any reviewer notes, breaking changes, or follow-up items

5. **Write to the output file**

   Create the directory and write the description:
   ```bash
   mkdir -p .git/magit/posts
   ```

   Write Markdown content to `.git/magit/posts/new-pullreq`

## Output Format

The generated file should follow this structure:

```markdown
# <PR Title>

## Summary

<Brief explanation of what this PR accomplishes and why>

## Changes

- <Key change 1>
- <Key change 2>
- ...

## Testing

<How changes were tested, or "N/A" if not applicable>

## Notes

<Any additional context for reviewers, breaking changes, or follow-up work>
```

## Formatting Guidelines

- Wrap all symbols, variables, function names, file paths, and code references
  in backticks (e.g., `myFunction`, `CONFIG_VALUE`, `src/utils.ts`)
- Use fenced code blocks for multi-line code snippets
- Keep bullet points concise and scannable

## Important Notes

- The file path `.git/magit/posts/new-pullreq` is used by magit-forge
- Always overwrite the existing file if present
- Keep the description concise but informative
- Focus on the "why" more than the "what" (the diff shows the "what")
Pliki w paczce (2)
  • SKILL.md 3 KB
  • scripts/find-merge-base.py 9 KB

Wersje

W bazie nie ma innych skilli o nazwie describing-prs.

Migawka bazy z 13.11.2026 · wersja paczki fc94ec5ec9de (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 86emacs-git-integration
    Konfiguruje i obsługuje Git w Emacsie przez Magit i Forge, w tym przepływy pracy i ustawienia.
  • 100pr-describe
    Generuje uporządkowany opis pull requesta na podstawie zmian z bieżącej gałęzi.
  • 100pr-description
    Pisze tytuł i opis pull requesta dla bieżącej gałęzi i otwiera PR, jeśli zostanie o to poproszony.
  • 100pr-description
    Pisze lub aktualizuje opis pull requesta albo merge requesta dla bieżącej gałęzi w GitHubie, GitLabie i Bitbuckecie.
  • 100pr
    Przygotowuje opis pull requesta na podstawie diffu bieżącej gałęzi i opcjonalnie tworzy PR przez gh.
  • 100pr
    Przygotowuje opis pull requesta na podstawie diffu bieżącej gałęzi i opcjonalnie tworzy PR przez gh.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.