# Git Workflow Pr Generator

> Generate GitHub pull request descriptions by analyzing git changes between two branches. Use when the user asks to create or draft a PR description based on branch diffs (for example, "Generate a PR for the changes between featureBranch and mainBranch") and expects a filled template with summary, motivation, and change impact flags.

- **Type:** Skill
- **Install:** `agentstack add skill-ucdavis-ai-skills-registry-git-workflow-pr-generator`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ucdavis](https://agentstack.voostack.com/s/ucdavis)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ucdavis](https://github.com/ucdavis)
- **Source:** https://github.com/ucdavis/ai-skills-registry/tree/main/skills/git-workflow-pr-generator

## Install

```sh
agentstack add skill-ucdavis-ai-skills-registry-git-workflow-pr-generator
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Pr Description Generator

## Overview

Generate a PR description by comparing a base branch and a head branch, summarizing key changes, and filling the required template sections.
Detect whether dependency installs, env changes, or database updates are required based on the diff.

## Workflow

### 1. Gather inputs

Require both branches and the repo root. If missing, ask for:

- Base branch (target, usually main/master)
- Head branch (feature branch)
- Any required scope (subfolder or package)

### 2. Collect change data

Run the helper script to gather all required data in files:

- `scripts/collect_pr_changes.py   --repo `

Use the generated files in `pr_change_snapshot/`:

- `name_status.txt` (file-level changes)
- `diff.txt` (full diff)
- `log.txt` (commit log)

### 3. Classify impacts

Set the template flags using these heuristics:

- **Requires `npm install`**: `package.json`, `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, or workspace config changed.
- **Requires env update**: `.env*`, `*.env`, `.env.example`, configuration templates, or documentation about new env vars changed.
- **Database changes**: migrations, schema files, ORM model changes, or db-related modules changed.

If uncertain, leave the flag as `:x:` and note uncertainty in Additional Information.

### 4. Summarize changes

Build a concise summary that covers:

- Main features or fixes
- Notable files or areas
- Related issue or ticket reference if present in branch names or commit messages

### 5. Note UI impact

If UI files changed (`.tsx`, `.jsx`, `.css`, `.scss`, `web/`, `frontend/`, `client/`), request screenshots or note that screenshots are required.

### 6. Output the PR template

Output the PR in a markdown fenced code block so it can be copy/pasted as-is.
Populate the template exactly. Keep the formatting and headings unchanged.
Replace `:x:` with `:white_check_mark:` where required.

```
## Description

- :x: This PR requires an `npm install`.
- :x: This PR requires an update to the `env` file.
- :x: This PR makes changes to the database.

### Summary of Changes:

Please include a summary of the changes and the related issue.

### Motivation for Change:

Explain the motivation for the change and the approach used.

### Additional Information
Please add any other relevant information or context about the pull request.

---

## Screenshots (if applicable)
If your changes include UI updates, please provide screenshots for better context.
```

## Resources

This skill includes a helper script:

- `scripts/collect_pr_changes.py`: Writes name-status, full diff, and log outputs to `pr_change_snapshot/`.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ucdavis](https://github.com/ucdavis)
- **Source:** [ucdavis/ai-skills-registry](https://github.com/ucdavis/ai-skills-registry)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** yes
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ucdavis-ai-skills-registry-git-workflow-pr-generator
- Seller: https://agentstack.voostack.com/s/ucdavis
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
