Describing prs

From aspiers/ai-config · View interactive version

Describing prs is an AI agent skill from the GitHub repository aspiers/ai-config. 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.

How to use this skill

Skill file

PR Description Generator

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

When to Use This Skill

Use this skill when:

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:

Strategy (implemented in the script):

  1. 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

```

  1. Analyze the changes
  1. Generate the PR description

Write a Markdown file with:

  1. 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:

# <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

in backticks (e.g., myFunction, CONFIG_VALUE, src/utils.ts)

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.