Create pr

From NVIDIA-NeMo/DataDesigner · View interactive version

Create pr is an AI agent skill from the GitHub repository NVIDIA-NeMo/DataDesigner. Create a GitHub PR with a well-formatted description matching the repository PR template (flat Changes by default; optional Added/Changed/Removed/Fixed grouping). The argument may contain special instructions for the pull-request summary.

How to use this skill

Skill file

Create Pull Request

Create a well-formatted GitHub pull request for the current branch. The PR description must conform to the repository's PR template (.github/PULL_REQUEST_TEMPLATE.md).

Arguments

$ARGUMENTS can be used for special instructions, such as:

Default base branch: main (unless specified in arguments)

Step 1: Gather Information

Run these commands in parallel to understand the changes:

  1. Current branch: git branch --show-current
  2. Uncommitted changes: git status --porcelain
  3. Commits on branch: git log origin/main..HEAD --oneline
  4. File changes summary: git diff --stat origin/main..HEAD
  5. Full diff: git diff origin/main..HEAD
  6. Recent commit style: git log -5 --oneline (to match PR title convention)
  7. Repo info: gh repo view --json nameWithOwner -q '.nameWithOwner' (for constructing file URLs)

Important checks:

Step 2: Analyze and Categorize Changes

Use change types below to decide how to write the Changes section (flat vs grouped). You still describe testing under Testing, not under these buckets.

By change type (internal checklist)

When to use optional grouping in **Changes**

Identify attention areas

Flag for special reviewer attention:

Step 3: Generate PR Title

Use conventional commit format matching the repo style:

If commits have mixed types, use the primary/most significant type.

Step 4: Create the PR

  1. Push branch (if needed):

```bash

git push -u origin <branch-name>

```

  1. Build the PR body using the repository's template structure.

Default โ€” flat Changes (remove the HTML comment block from the template when filling in, or replace with your bullets only):

## ๐Ÿ“‹ Summary

[1-3 sentences: what this PR does and why. Focus on the "why".]

## ๐Ÿ”— Related Issue

[Fixes #NNN or Closes #NNN โ€” link to the issue this addresses]

## ๐Ÿ”„ Changes

- [Bullet list of key changes]
- [Link to key files when helpful for reviewers]
- [Reference commits for specific changes in multi-commit PRs]

## ๐Ÿงช Testing

- [x] `make test` passes
- [x] Unit tests added/updated (or: N/A โ€” no testable logic)
- [ ] E2E tests added/updated (if applicable)

## โœ… Checklist

- [x] Follows commit message conventions
- [x] Commits are signed off (DCO)
- [ ] Architecture docs updated (if applicable)

Optional โ€” grouped Changes (only when Step 2 criteria apply; omit empty sections):

## ๐Ÿ”„ Changes

### โœจ Added
- [...]

### ๐Ÿ”ง Changed
- [...]

### ๐Ÿ› Fixed
- [...]

(Include ### ๐Ÿ—‘๏ธ Removed only when something was deleted.)

If there are genuinely important attention areas for reviewers, add an Attention Areas section after Changes:

## ๐Ÿ” Attention Areas

> โš ๏ธ **Reviewers:** Please pay special attention to the following:

- [`path/to/critical/file.py`](https://github.com/<owner>/<repo>/blob/<branch>/path/to/critical/file.py) โ€” [Why this needs attention]
  1. Execute:

```bash

gh pr create --title "<title>" --body "$(cat <<'EOF'

<body>

EOF

)"

```

  1. Return the PR URL to the user.

Section Guidelines

Edge Cases

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.