with one click
pr-draft
// 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.
// 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.
Understand Apex language rules, ANTLR grammar structure, and how to implement parser listeners for language server features. Use when working on Apex parser implementation, creating validators, implementing listeners, or referencing parser grammar rules.
Explains the one-way sync from .claude/ to .cursor/ that keeps Cursor users unblocked while .claude/ is the source of truth. Read when editing any mapped file, when wondering why a .cursor/ file changed, or when adding a new file that needs mirroring.
Delegate to the doc-maintenance subagent when code/config/scripts change to catch code→doc drift. Use after editing TS/TSX, package.json, esbuild config, scripts, .vscodeignore, .vscode, tsconfig, or GitHub workflow files.
Enforces Effect-TS patterns for services, errors, layers, and atoms. Use when writing code with Effect.Service, Schema.TaggedError, Layer composition, or effect-atom React components.
TypeScript coding standards and conventions including file naming rules
Fix lint errors by removing unused variables and imports rather than prefixing with underscore. Use when lint errors are reported, when fixing compilation issues, or when the user asks to fix lint errors.
| 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. |
Draft PR titles and bodies per salesforcedx-vscode conventions. Requires a Gus work item number.
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: Run full git hooks on every commit (husky, commitlint); do not bypass them.
W-XXXXX, confirm it exists in GUS, resembles the work done on the branch, and use thatsf 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.git push -u origin $(git branch --show-current) or equivalent). Never push directly to mainDetails__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.Assignee__c
Set Status__c='Ready for Review', QA_Engineer__c='<selected userId>'. Before updating: show user Status__c, QA_Engineer__c. Ask user to confirm. Do not run sf data update record until user says yes.gh pr view <url> --json reviewRequests --jq '.reviewRequests[].login'gh pr edit <url> --remove-reviewer <login>gh pr edit <url> --add-reviewer <github_login> (from gus-cli Team members)maingit reflog show <branch> | tail -1 → "moving from X" / "Created from X"type(scope): description - W-XXXXXXXX
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.build(extensions): consolidate apex-tmlanguage - W-21735053[W-21735053] build(extensions): …; bare trailing WI without - — build(extensions): … W-21735053@s (e.g. @W-22345718@). pr-validation checks title AND body separately — title-only will fail CI with "PRs need to reference a GUS Work Item in both the PR title AND body." The bare W-XXXXX in the title does NOT satisfy the body check; the @...@ wrapping is what the regex looks for. Include it in "What issues does this PR fix or reference?" per .github/PULL_REQUEST_TEMPLATE.md:[skip-validate-pr] in body (e.g. at end)### What issues does this PR fix or reference?
#<GitHub Issue>, @W-XXXXX@