Changelog

From forcedotcom/salesforcedx-vscode · View interactive version

Changelog is an AI agent skill from the GitHub repository forcedotcom/salesforcedx-vscode. Polish the automated CHANGELOG on develop before the next stable build. Removes GUS refs, categorizes under-the-cover changes, improves customer-facing descriptions. Use when preparing/reviewing the changelog after a weekly prerelease promotion, or when user mentions changelog quality.

How to use this skill

Skill file

Changelog Polish

Improve the automated changelog delta committed to develop by promote-to-prerelease.yml.

Scope: polish at packages/salesforcedx-vscode/CHANGELOG.md (per-package CHANGELOG.md files scoped to their own packages, out of scope). Root CHANGELOG.md is auto-maintained: promote-to-prerelease.yml prepends each week's delta, then stable builds later fold those sections into one stable release section via foldStableChangelog.mts — do not edit root manually.

When to use

File location

packages/salesforcedx-vscode/CHANGELOG.md on develop

Workflow

  1. Checkout/pull develop and read the current changelog file
  2. Identify the automated commit: git log --oneline -- packages/salesforcedx-vscode/CHANGELOG.md | grep "changelog for prerelease"
  3. For each entry, fetch PR context: gh pr view <number> --json title,body,commits,labels. In the body, look for a "What issues does this PR fix or reference?" section and extract any issue or discussion numbers linked there.
  4. Apply the rules below to produce a polished draft
  5. Present the revised changelog to the user for approval before writing

Rules

1. Remove GUS work item references

Strip any W-NNNNNNN or - W-NNNNNNN text from entries. These are internal tracking IDs not meaningful to customers.

Before: - Add a Max Rows input to SOQL Builder UI - W-22199672 ([PR #7261](...

After: - We added a **Max Rows** input to SOQL Builder UI so you can limit the number of rows retrieved. ([PR #7261](...

2. Classify entries as customer-facing or under-the-cover

Under-the-cover (not visible to users):

Customer-facing (visible to users):

Use PR commits, title, body, and labels to decide. When uncertain, check the diff: gh pr diff <number> --name-only to see which files changed.

Under-the-cover entries go under a dedicated ## Under the Hood section (no package sub-headers needed). Consolidate all under-the-cover PRs into one or a few lines:

- We made some under the hood changes. ([PR #NNNN](...), [PR #MMMM](...)).

3. Deduplicate multi-package entries

The automation lists the same PR under every package it touched. Consolidate to the most relevant user-facing package. If a change touched salesforcedx-vscode-services plus a feature extension, list it under the feature extension only.

4. Improve customer-facing descriptions

5. Verify categories

Example transformation

Automated:

## Added

#### salesforcedx-vscode-metadata

- Filter packageDirs to those containing target folder - W-22049669 ([PR #7225](...))

#### salesforcedx-vscode-services

- Filter packageDirs to those containing target folder - W-22049669 ([PR #7225](...))

- Replace static activationEvents with programmatic activation W-21956120 ([PR #7154](...))

Polished:

## Added

#### salesforcedx-vscode-metadata

- When creating an Apex class or LWC component, the output directory picker now lists only package directories that contain the relevant folder. ([PR #7225](...))

## Under the Hood

- We made some under the hood changes. ([PR #7154](...))

Commit and push

After user approves the polished changelog:

  1. Make sure you're on develop and up to date: git checkout develop && git pull
  2. Stage only the changelog file: git add packages/salesforcedx-vscode/CHANGELOG.md
  3. Verify no other files are staged: git diff --cached --name-only must show only packages/salesforcedx-vscode/CHANGELOG.md. If other files appear, unstage them before committing.
  4. Commit: git commit -m "chore: polish changelog [skip ci]"
  5. Push: git push origin develop

Never include other file changes in this commit.

Use these chore: subjects for polish commits on develop:


Reference: changelog lifecycle

promote-to-prerelease.yml runs 3-stage pipeline to generate & polish changelog before commit to develop. Background context; typically not interacted with during manual polish.

Compute → Polish (AI) → Commit → Review (human)

  1. compute-changelog-range (promote-to-prerelease.yml): Outputs fromRef = newest marketplace-prerelease-* tag (set by last week's promote run) or latest stable v* tag (correct fallback before any tracking tag exists). Empty fromRef (identical to this week's nightly commit — a manual re-run or hotfix) skips changelog-body instead of feeding it an identical range.
  2. changelog-body (reusable workflow .github/workflows/changelog-body.yml): Calls OpenCode (guided by .opencode/skills/changelog-judgment/SKILL.md) to produce polished, customer-facing markdown body from commits in range (fromRef, toRef]. Already removes GUS refs, rewrites sentences ("We added/fixed/improved..."), dedupes multi-package PRs, consolidates Under-the-Hood. Returns body output.
  3. write-changelog (promote-to-prerelease.yml): Writes header # <version> - <date> + body to packages/salesforcedx-vscode/CHANGELOG.md. Runs scripts/prependReleaseChangelog.mts to prepend same content to root CHANGELOG.md. Both labeled with prerelease version (e.g. 67.17.9). Committed to develop.
  4. Polish (optional) (develop, this skill): Human review/touch-up before next build-github-release.yml run. Model-generated body is typically ready, but catch edge cases/errors using Rules 1–5 as checklist. Note: polish edits to package CHANGELOG.md are picked up by the stable build (via --overlay); edits to root are not auto-synced (folding process replaces root sections).
  5. Fold to stable (build-github-release.yml, Wednesday 7 AM UTC): For stable builds (skips emergency pre-releases): pulls develop's root CHANGELOG.md, overlays package CHANGELOG.md polish from step 4, folds every prerelease section it contains into one stable section (foldStableChangelog.mts), bakes into stable VSIX (package CHANGELOG.md).
  6. Fold history (publishVSCode.yml, on final stable publish): For stable releases (skips pre-release tags): folds develop's root CHANGELOG.md, so history matches shipped stable version; commits only root CHANGELOG.md to develop (no longer touches package changelog).

prependReleaseChangelog.mts validates structure (version format, file existence, non-empty), runs idempotent (skips if already in root), reports errors (ENOSPC, EACCES, missing files). foldStableChangelog.mts (run by build-github-release.yml and publishVSCode.yml) is also idempotent: no-op if root already starts with the stable version (pre-prepared branches), or if no prerelease sections fold into it (hotfixes of stable releases).

Commit details

Format

# XX.YY.ZZ - Month DD, YYYY

## Added

#### <package-name>

- <message> ([PR #<num>](https://github.com/forcedotcom/salesforcedx-vscode/pull/<num>))

## Fixed

#### <package-name>

- <message> ([PR #<num>](...))

## Under the Hood

- We made some under the hood changes. ([PR #<num>](...), [PR #<num>](...))

Package filtering (auto)

Commit parsing (auto)

Dedupe / merge rules (post-generation)

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.