Draft pr

From g2i-ai/agents · View interactive version

Draft pr is an AI agent skill from the GitHub repository g2i-ai/agents. Prepare commits, push a branch, and create a draft PR targeting your base branch.

How to use this skill

Skill file

Draft PR

Invocation

This skill defaults to running in the Developer persona. If you are not already running as Developer (for example, the user invoked /draft-pr directly or you are the parent agent), delegate execution to a Developer subagent and stop. If you are already running as Developer, continue with the steps below.

Objective

Prepare a clean branch and create a draft PR targeting your base branch.

Instructions

  1. Review the current changes with git status.
  2. Run the applicable verification checks before proceeding.
  3. Confirm or create a feature branch if the current branch is your base branch.
  4. Gather commit details and use a conventional commit message (see below).
  5. Push the branch.
  6. Generate the PR body via /pr-description.
  7. Create the draft PR targeting your base branch. PR title: if the branch name contains a ticket key, include it in the PR title. If there is no recognizable key and the user did not supply one, omit it.
  8. End with the commit hash, branch name, PR URL or creation instructions, and the recommended next step: /review.

Commit messages

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.