pr-draft
Skill by forcedotcom
Drafts pull request titles and bodies for the salesforcedx-vscode repository. It requires a GUS work item number and asks the user to confirm before changing work items.
Install pr-draft
Built from the published package, never by AI.
git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode /tmp/salesforcedx-vscode && mkdir -p ~/.claude/skills && cp -r /tmp/salesforcedx-vscode/.claude/skills/pr-draft ~/.claude/skills/pr-draftRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode /tmp/salesforcedx-vscode && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/salesforcedx-vscode/.claude/skills/pr-draft ~/.gemini/antigravity-cli/skills/pr-draftAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This agent skill helps draft pull requests for the salesforcedx-vscode repository. Titles follow a conventional commit style, with a GUS work item name such as W-XXXXXXXX added at the end. The body is based only on the branch commits and uses the repository's pull request template, including a link to the work item.
The skill looks up or offers to create a GUS work item, and it shows the proposed fields before any change. It picks a target branch, handles stacked PRs with the gh stack commands, and finds related GitHub issues and discussions to include. It is written for developers who open PRs in this repository and track work in GUS.
Written from the project's SKILL.md and checked against it.
What it can do
- PR title draftingBuilds titles as type(scope): description, followed by the GUS work item name.
- PR body draftingWrites the body from branch commits using the repository's pull request template.
- Work item lookupFinds an existing GUS work item from the branch name or asks the user to confirm one.
- Work item creationOffers to create a GUS work item and waits for user approval before creating it.
- Target branch detectionChooses the PR base branch, defaulting to develop and never main.
- Stacked PR handlingUses gh stack commands for branches whose base is neither develop nor main.
- Related issue discoveryFinds open GitHub issues and discussions that may relate to the PR and asks which to include.
- Work item PR link updateAdds the PR URL to the work item Details field after user approval.
What you need
- GitHub CLI (gh)
- Salesforce CLI (sf)
- Access to GUS
- A GUS work item number (W-XXXXXXXX)
Try asking
- Draft a PR title and body for my current branch
- Find open GitHub issues related to this PR
- Check whether this branch should be a stacked PR
Good to know
- Requires a GUS work item number to draft a PR.
- Does not create or update work items without explicit user confirmation.
- Never pushes to the develop or main branches.
- Never uses the --no-verify flag.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .claude/skills/pr-draft/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB -
review-handoff.md2 KB
Alternatives to pr-draft
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
pr-draft: common questions
What title format does pr-draft use?
Titles use type(scope): description, followed by a space, a hyphen, a space and the GUS work item name, such as W-21735053. The scope is optional.
Does pr-draft create work items on its own?
No. It shows the proposed fields and waits for the user to approve before running any sf data create or update command.
Which base branch does pr-draft use for a PR?
It defaults to develop. It uses another branch if the branch was created from one, and it never targets main.
How do I install pr-draft?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pr-draft free?
The code is published under the BSD-3-Clause licence. The service it connects to may have its own pricing.
Is pr-draft safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pr-draft?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
