Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body.

BSD-3-ClauseAuto-check passedDevelopment

Install PR Draft

skills CLI
$ npx skills add forcedotcom/salesforcedx-vscode --skill pr-draft -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install forcedotcom/salesforcedx-vscode pr-draft --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/forcedotcom/salesforcedx-vscode.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/pr-draft .claude/skills/pr-draft && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-draft
GitHub stars
1k
Token cost
~1.1k tokens
SKILL.md length
578 words
Files
2
Skills in repo
37
Repo updated
First seen
Licence
BSD-3-Clause

At a glance

Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body.

  • Works in 7 steps: If branch name contains W-XXXXX, confirm… → Else ask: "Do you have a Gus work item… → If yes → try to find it using… → …
  • PR descriptions
  • SKILL.md covers Work item, Target branch, Title format and GitHub issues & discussions, plus 1 more section
  • Calls sf, git and gh

What it does

PR Draft is an agent skill from forcedotcom/salesforcedx-vscode. Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body. Use when drafting PRs, PR titles, PR descriptions, opening PRs, or Git2Gus workflows.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `review-handoff.md`).

It sits in Development, covering Pull requests and Commit messages. The repository describes itself as: Salesforce Extensions for VS Code. The licence is BSD-3-Clause.

When your agent uses it

  • PR descriptions
  • Git2Gus workflows

Example prompts

  • “- W-XXXXXXXX”
  • “/pr-draft”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. If branch name contains W-XXXXX, confirm it exists in GUS, resembles the work done on the branch, and use that
  2. Else ask: "Do you have a Gus work item (W-XXXXX) for this PR?"
  3. If yes → try to find it using gus-cli/SKILL.md. Confirm with the user that you got it right, or ask them to choose if several could be…
  4. If no → offer to create via Gus. Follow gus-cli/SKILL.md. Before creating: show user Subject, Epic, Details, assignee. Ask: "Create this…
  5. Before creating PR: push current branch to remote if it doesn't already exist (git push -u origin $(git branch --show-current) or…
  6. After PR created: update work item Detailsc with PR link. Query current Detailsc, append "\nPR: " (or prepend if empty). Before updating…
  7. After PR created: offer Ready for Review. If the user opts in, run the reviewer-pick → WI update → GitHub reassignment → Slack ping…

What it can do on your machine

Read from SKILL.md and the folder at commit f7bb6fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • sf
    • git
    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git and gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Draft loads about 1.1k tokens when it runs. Until then it costs about 50 tokens; SKILL.md has 578 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~50
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from forcedotcom/salesforcedx-vscode at commit f7bb6fe, republished under its BSD-3-Clause licence (© forcedotcom). 578 words, ~1,142 tokens.

Download SKILL.mdSave it as .claude/skills/pr-draft/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pr-draft
description
Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body. Use when drafting PRs, PR titles, PR descriptions, opening PRs, or Git2Gus workflows.
review
never

PR Draft

Draft PR titles and bodies per salesforcedx-vscode conventions. Requires a Gus work item number.

Work item

Confirmation required: Never create or update work items without explicit user confirmation. Present proposed fields (Subject, Epic, Details, etc.) and wait for user to approve before any sf data create record or sf data update record.

Safety never use --no-verify

  1. If branch name contains W-XXXXX, confirm it exists in GUS, resembles the work done on the branch, and use that
  2. Else ask: "Do you have a Gus work item (W-XXXXX) for this PR?"
  3. If yes → try to find it using gus-cli/SKILL.md. Confirm with the user that you got it right, or ask them to choose if several could be right.
  4. If no → offer to create via Gus. Follow gus-cli/SKILL.md. Before creating: show user Subject, Epic, Details, assignee. Ask: "Create this work item?" Do not run sf data create record until user says yes. If user declines creation and still wants to proceed with the PR, include [skip-validate-pr] in the PR body.
  5. Before creating PR: push current branch to remote if it doesn't already exist (git push -u origin $(git branch --show-current) or equivalent). Never push to develop/main
  6. After PR created: update work item Details__c with PR link. Query current Details__c, append "\nPR: <url>" (or prepend if empty). Before updating: show user the new Details__c. Ask: "Update work item with PR link?" Do not run sf data update record until user says yes.
  7. After PR created: offer Ready for Review. If the user opts in, run the reviewer-pick → WI update → GitHub reassignment → Slack ping handoff in review-handoff.md.

Target branch

  • Default develop
  • From other branch (≠ develop, ≠ main)? Use it. Detect: git reflog show <branch> | tail -1 → "moving from X" / "Created from X"
  • Never main; inferred main → develop

Title format

type(scope): description - W-XXXXXXXX

  • Work item last: Append a space, hyphen, space, then the GUS Name ( - W-21735053). This is the Name field from GUS, not the Salesforce Record ID (e.g., a07...). If you just created the record, query the Name first.
  • Types: feat, fix, docs, style, refactor, perf, test, ci, chore, build
  • Scope: optional
  • Example: build(extensions): consolidate apex-tmlanguage - W-21735053
  • Avoid: leading brackets — [W-21735053] build(extensions): …; bare trailing WI without - — build(extensions): … W-21735053
Show full SKILL.md (207 more words)Show less

GitHub issues & discussions

Before finalizing body, fetch and analyze:

  1. Issues: gh issue list --state open --limit 200 --json number,title,body,comments
  2. Discussions: gh api graphql — fetch all open discussions (title, number, url, body)
  3. LLM relevance pass: read PR diff/commits + all issue/discussion titles+bodies; identify candidates
  4. Auto-include any issue where a comment contains the PR's W-XXXXX (e.g. W-12345) — no prompt needed; Git2Gus already established the link
  5. Show remaining candidates (issues and discussions the LLM flagged as related); ask user which to include
  6. Stripped-href anchors in WI Details__c: SF empties external hrefs on save (the why + stored forms live in gus-cli), leaving <a href="">discussions/NNN</a> — text survives, href empty. Scan Details__c for such anchors with discussions/NNN|issues/NNN text, EXCLUDE anchors with a populated real href, and auto-include the reconstructed https://github.com/forcedotcom/salesforcedx-vscode/<path> URL — no prompt.
  7. Format: issues as #<number>, discussions as full URL — both in the "What issues does this PR fix or reference?" section

Body format

  • Base body on branch commits only
  • Ignore plans/conversation history (may be stale)
  • Write content per concise/SKILL.md
  • Include @W-XXXXX@ in "What issues does this PR fix or reference?" per .github/PULL_REQUEST_TEMPLATE.md:
  • Delete before/after section if empty
  • User declined WI: If user explicitly declines WI but wants PR, include [skip-validate-pr] in body (e.g. at end)
### What issues does this PR fix or reference?
#<GitHub Issue>, @W-XXXXX@

© forcedotcom, BSD-3-Clause. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .claude/skills/pr-draft of forcedotcom/salesforcedx-vscode.

  • SKILL.md
  • review-handoff.md

Open the folder on GitHubat commit f7bb6fe

Compare with similar skills

PR Draft next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Draft compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Draft this skillforcedotcom/salesforcedx-vscode1k—~1.1kAutomated safety check: PassBSD-3-Clause
PR Finalize Reviewmicrosoft/garnet12k—~3.1kAutomated safety check: PassMIT
Git Workflow and Versioningaddyosmani/agent-skills102k2 repos~3.5kAutomated safety check: NotesMIT
React Router Pull Request Creatorremix-run/react-router57k—~2.5kAutomated safety check: PassMIT
Verdaccio Pull Request Workflowverdaccio/verdaccio18k—~1.9kAutomated safety check: PassMIT
Emoji Commit ConventionsbaptisteArno/typebot.io11k—~424Automated safety check: PassCustom licence

Similar skills

  • PR Finalize Review

    microsoft/garnet

    Official

    Checks that a pull request's title and description match its implementation and reviews the code for Garnet best practices, reporting findings without posting them.

    12k GitHub stars~3.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Git Workflow and Versioning

    addyosmani/agent-skills

    Sets git habits for every change: short-lived branches, atomic commits with descriptive messages, clean pull requests, plus versioning, tagging and changelogs for releases.

    102k GitHub starsUsed in 2 repos~3.5k tokens
    DevelopmentAuto-check: notes
  • React Router Pull Request Creator

    remix-run/react-router

    Packages finished React Router work into a draft pull request: branch, commit, push, a written PR body and the right GitHub labels.

    57k GitHub stars~2.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Takes a change through a verdaccio pull request: branch, local checks, changeset, title and body, labels, CI and review rounds, and ports to other release lines.

    18k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Emoji Commit Conventions

    baptisteArno/typebot.io

    Sets the repository's convention for commit messages and pull request titles: one emoji prefix for the main intent, a concise title and clean follow-up commits.

    11k GitHub stars~424 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Commit And PR Messages

    superplanehq/superplane

    Write Git commit messages and pull request titles/descriptions using the Chris Beams / Tim Pope conventions (subject/body split, ~50-char subject, imperative mood, why-not-how body) plus ASD-STE100…

    7.7k GitHub stars~1.6k tokensUpdated today
    DevelopmentAuto-check passed

More from forcedotcom/salesforcedx-vscode

All 37 skills in this repo
  • Command UI

    forcedotcom/salesforcedx-vscode

    Command palette, CodeLens, context menus, package.nls titles, and NotificationModeService.

    1k GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Services Extension Consumption

    forcedotcom/salesforcedx-vscode

    Consume the salesforcedx-vscode-services extension API. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~5k tokensUpdated today
    Auto-check passed
  • Changelog

    forcedotcom/salesforcedx-vscode

    Polish the automated CHANGELOG on develop before the next stable build.

    1k GitHub stars~3.3k tokensUpdated today
    Auto-check passed
  • Core Extension API

    forcedotcom/salesforcedx-vscode

    Public API exported by salesforcedx-vscode-core activate(). An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~842 tokensUpdated today
    Auto-check passed
  • Drivable Vscode

    forcedotcom/salesforcedx-vscode

    Operate a real VS Code instance through drivable-vscode. An agent skill from forcedotcom/salesforcedx-vscode.

    1k GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Effect Best Practices

    forcedotcom/salesforcedx-vscode

    Enforces Effect-TS patterns for services, errors, layers, atoms, and Effect.pipe composition.

    1k GitHub stars~6.2k tokensUpdated today
    Auto-check passed

Categories

Questions about PR Draft

What does PR Draft do?

Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body. PR Draft is an agent skill from forcedotcom/salesforcedx-vscode. Draft PRs with trailing " - W-XXXXXXXX" in titles, conventional commit-style before it, GUS refs in body.

When should I use PR Draft?

PR Draft fits situations like: PR descriptions; git2Gus workflows.

How do I install PR Draft in Claude Code?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill pr-draft -a claude-code`. Or copy the skill folder (.claude/skills/pr-draft in forcedotcom/salesforcedx-vscode) into .claude/skills/pr-draft in your project. Claude Code loads it when a task matches its description.

How do I install PR Draft in Codex?

Run `npx skills add forcedotcom/salesforcedx-vscode --skill pr-draft -a codex`. Or copy the skill folder (.claude/skills/pr-draft in forcedotcom/salesforcedx-vscode) into .agents/skills/pr-draft in your project. Codex loads it when a task matches its description.

Can I use PR Draft in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add forcedotcom/salesforcedx-vscode --skill pr-draft -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-draft, .gemini/skills/pr-draft, .github/skills/pr-draft and .opencode/skills/pr-draft in your project.

What does PR Draft need to run?

Going by SKILL.md and its folder, PR Draft needs the command-line tools its instructions call (sf, git and gh).

Does PR Draft access the network?

SKILL.md contains no URLs. Its commands use git and gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR Draft safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Draft use?

PR Draft is published under the BSD-3-Clause licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does PR Draft use?

About 1.1k tokens (SKILL.md is roughly 4.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Draft?

Skills that share tags, products or a category with PR Draft: PR Finalize Review (microsoft/garnet, 12k stars), Git Workflow and Versioning (addyosmani/agent-skills, 102k stars), React Router Pull Request Creator (remix-run/react-router, 57k stars) and Verdaccio Pull Request Workflow (verdaccio/verdaccio, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Draft?

forcedotcom (a GitHub organization) maintains it in forcedotcom/salesforcedx-vscode, which has 1,035 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on October 7, 2026.

Source: forcedotcom/salesforcedx-vscode on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.