Create pr

From Miosa-osa/canopy · View interactive version

Create pr is an AI agent skill from the GitHub repository Miosa-osa/canopy. > Create a pull request with summary, test plan, and proper labeling.

How to use this skill

Skill file

/create-pr

Create a pull request with summary, test plan, and proper labeling.

Usage

/create-pr [--base <branch>] [--draft] [--title "title"]

What It Does

Analyzes all commits on the current branch vs the base branch, generates a PR title and description, pushes the branch, and creates the PR using gh. Includes a summary of changes, test plan, and links to related issues.

Implementation

  1. Analyze changes -- git log and git diff against base branch.
  2. Generate PR title -- concise (<70 chars), focused on the "what".
  3. Generate PR body -- summary bullets, test plan checklist, related issues.
  4. Push branch -- git push -u origin <branch>.
  5. Create PR -- gh pr create with title, body, labels, reviewers.
  6. Return URL -- display the PR link.

Examples

# Create PR against main
/create-pr

# Create draft PR against specific base
/create-pr --base develop --draft

# Create PR with explicit title
/create-pr --title "Add user authentication flow"
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.