vscode-aks-tools-release-pr
Skill65 starsChanged 3 months agoMITView on GitHub
Prepare a release PR for the Azure/vscode-aks-tools VS Code extension. Bumps version in package.json and package-lock.json, creates a new What's New doc, updates SUMMARY.md / release.md / README.md / releasing.md, and removes stale prior-release files. WHEN: 'make a release PR', 'release vscode-aks-tools', 'bump extension version', 'create publish-x.y.z branch', 'prepare release notes for aks tools', 'what's new file for next release'. DO NOT USE FOR: actually publishing to the marketplace (that runs via the internal 1ES pipeline), changelog backfill (CHANGELOG.md is deprecated since 1.6.14), or unrelated repos.
- Installs packages
- Commits and pushes
In this repository20 other files it gives its agents.
- AGENTS.mdAGENTS.md
- kickstart-acr-integrationSkill
- kickstart-bicep-authoringSkill
- kickstart-cluster-statusSkill
- kickstart-collaborator-voiceSkill
- kickstart-configure-infraSkill
- kickstart-deploySkill
- kickstart-designSkill
- kickstart-discoverSkill
- kickstart-file-generationSkill
- kickstart-generateSkill
- kickstart-github-pr-conventionsSkill
- kickstart-handoffSkill
- kickstart-phase-accelerationSkill
- kickstart-pim-activationSkill
- kickstart-reviewSkill
- kickstart-safeguard-checklistSkill
- kickstart-samplesSkill
- kickstart-security-hardeningSkill
- kickstart-workload-identitySkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 12 are distinctive, and 8 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈12
Distinctive · estimate
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 44
If not clean, stop and ask the user.
- Distinctive: line 55
If the user already created a branch and is on it, skip this step.
- Very specific: line 59
Current version: read "version" from root package.json.
- Very specific: line 64
Use npm version to update both files atomically (no git tag, no commit):
- Very specific: line 74
Do NOT run npm install (we are not changing dependencies and do not want lockfile churn).
- Distinctive: line 80
Run this audit and report findings to the user before changing anything beyond the files in step 4:
- Distinctive: line 99
If any hit doesn't fit the above, surface it to the user before editing.
- Very specific: line 133
If a bump is warranted, edit the default: in package.json contributes.configuration.<setting>.default.
- Very specific: line 154
If bumping, update all four workflow templates (aks-deploy.template.yaml, aks-deploy-managed-ns.template.yaml, …
- Distinctive: line 158
After all bumps, verify that the setting default and any test fixtures agree:
- Distinctive: line 168
Always bump: if a version is more than 6 months stale — CVEs accumulate.
- Distinctive: line 170
Defer: if the release engineer can't validate the bump end-to-end (generate a workflow via the extension, push, confirm the run succeeds) …
- Distinctive: line 178
Source the content from merged PRs since the last release: Do not invent highlights.
- Distinctive: line 215
Ask the user to confirm the curated list before drafting the doc.
- Distinctive: line 229
Use the existing latest file as the template (same headings, same screenshot conventions).
- Very specific: line 259
Only embed screenshots that actually exist on disk under docs/book/src/resources/.
- Very specific: line 260
Keep the file readable on mdbook (no HTML-only constructs).
- Distinctive: line 291
Update it only if the user explicitly says the process changed (e.g., new pipeline, new required step, new secret).
- Very specific: line 299
If the user explicitly insists on a CHANGELOG entry, add a ## [x.y.z] section in Keep-a-Changelog format and warn them it's outside current …
- Distinctive: line 350
Ask the user before pushing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
vscode-aks-tools Release PR
Prepare a publish-x.y.z release PR for the Azure/vscode-aks-tools VS Code extension.
This skill ONLY prepares the source changes needed for the release PR. The actual marketplace publish is handled by the internal 1ES signed pipeline (.azurepipelines/1es-pipeline.yml) — do not attempt to run it.
When to Use
- User asks to cut/prepare/start a new release of the AKS VS Code extension
- User says "bump the version to X.Y.Z" for this repo
- User asks to draft the What's New doc for the next release
- User wants to open a
publish-x.y.zPR
When NOT to Use
- Marketplace publishing (handled by internal 1ES pipeline)
- Updating
CHANGELOG.md— deprecated since 1.6.14; release notes now live in GitHub Releases + the What's New doc - Any repo other than
Azure/vscode-aks-tools
Inputs
Gather (ask the user if not provided):
- Target version (semver
x.y.z, e.g.2.1.0). - Release highlights — optional. By default the What's New doc is generated from PRs merged into
upstream/mainsince the previous release tag (see step 6). The user may override or augment that list. - Whether to remove the previous What's New file — default YES (only the current release's file is kept).
Procedure
1. Verify Repo and Working State
git rev-parse --show-toplevel # must end in /vscode-aks-tools (or a worktree of it)
git remote -v # confirm `upstream` points to Azure/vscode-aks-tools
git status --short # must be cleanIf not clean, stop and ask the user.
2. Establish the Release Branch
Per docs/book/src/release/releasing.md, the convention is publish-x.y.z.
git fetch upstream main
git checkout -b publish-<x.y.z> upstream/mainIf the user already created a branch and is on it, skip this step.
3. Identify Current and Previous Versions
- Current version: read
"version"from rootpackage.json. - Previous What's New file:
ls docs/book/src/release/whats-new-*.md. There should normally be exactly one.
4. Bump Version in package.json and package-lock.json
Use npm version to update both files atomically (no git tag, no commit):
npm version <x.y.z> --no-git-tag-version --allow-same-versionThis updates:
- root
package.json→"version" - root
package-lock.json→ top-level"version"ANDpackages."".version
Do NOT run npm install (we are not changing dependencies and do not want lockfile churn). If npm version is unavailable, edit the three fields manually.
webview-ui/package.json is marked "private": true with version "0.0.0" — do NOT bump it.
5. Audit Other Version References
Run this audit and report findings to the user before changing anything beyond the files in step 4:
# Search for the OLD version as a project version (not a dependency range)
grep -rn --include='*.json' --include='*.ts' --include='*.md' --include='*.yml' --include='*.yaml' \
-e "\"version\": \"<old-version>\"" \
-e "vscode-aks-tools.*<old-version>" \
.Expected hits (must update):
package.json(line ~5)package-lock.json(root +packages."")
Known false positives (do NOT touch):
.vscode/tasks.json—"version": "2.0.0"is the tasks file schema version- Any
"@azure/*"dependency versions - Any
node/enginesfields
If any hit doesn't fit the above, surface it to the user before editing.
5b. Audit Pinned Third-Party Versions
Independently of the extension's own version, the extension pins the versions of five external CLIs (downloaded on demand) and five GitHub Actions (baked into generated workflow templates). These drift silently between releases. Review them each cut and bump the defaults if a newer stable release exists with a matching platform-asset matrix.
5b.1. Downloaded CLI binaries
Defaults live in package.json under contributes.configuration. azure.kubelogin.releaseTag is special: workflowTemplate.ts also substitutes its value into every generated workflow's azure/use-kubelogin step, so the setting default IS the single source of truth for both the local CLI and the CI kubelogin. No separate template value.
for repo in Azure/kubelogin Azure/aks-mcp Azure/draft microsoft/retina inspektor-gadget/inspektor-gadget; do
echo -n "$repo: "; gh api "repos/$repo/releases/latest" --jq '.tag_name'
doneCompare against current package.json defaults:
| Setting | Upstream |
azure.kubelogin.releaseTag | Azure/kubelogin |
azure.kubectlgadget.releaseTag | inspektor-gadget/inspektor-gadget |
aks.drafttool.releaseTag | Azure/draft |
aks.retinatool.releaseTag | microsoft/retina |
aks.aksmcpserver.releaseTag | Azure/aks-mcp |
Before bumping, verify the target release actually has uploaded platform assets (Linux/macOS/Windows amd64 + arm64). Some repos (notably Draft) publish tags before their release assets are uploaded — bumping to such a tag breaks every download attempt. Cheap check:
# Substitute repo + tag + a representative asset filename
curl -sI -o /dev/null -w "%{http_code}\n" -L \
"https://github.com/Azure/draft/releases/download/<tag>/draft-linux-amd64"If a bump is warranted, edit the default: in package.json contributes.configuration.<setting>.default. No other file needs to change (kubelogin substitution flows automatically via the placeholder).
5b.2. GitHub Actions pinned in workflow templates
Templates under resources/yaml/*.template.yaml reference five actions with major-version pins. Major tags auto-receive minor/patch fixes, so bumping is only needed when a new major ships.
grep -h "uses:" resources/yaml/*.template.yaml | sort -u
for repo in actions/checkout Azure/login Azure/use-kubelogin Azure/aks-set-context Azure/k8s-deploy; do
echo -n "$repo: "
gh api "repos/$repo/releases" --jq \
'[.[] | select(.prerelease==false and .draft==false)] | .[0].tag_name'
doneBefore bumping a major, skim the release notes of the target major on GitHub. Most Azure/* action majors in the last cycle have been pure Node.js runtime bumps (Node 20 → Node 24) — safe. Watch for:
- Renamed/removed action inputs (would silently drop the value from generated YAML)
- Changed default authentication behavior (especially
azure/login,Azure/aks-set-context) - New required inputs
If bumping, update all four workflow templates (aks-deploy.template.yaml, aks-deploy-managed-ns.template.yaml, workflow-multi-deploy-job.template.yaml, workflow-multi-deploy-job-managed-ns.template.yaml, plus workflow-multi-build-job.template.yaml for checkout/login). Then update the corresponding assertions in src/tests/suite/containerAssist/workflowTemplate.test.ts — they hard-code version numbers.
5b.3. Kubelogin cross-check
After all bumps, verify that the setting default and any test fixtures agree:
grep -n "kubelogin" package.json src/commands/aksContainerAssist/workflowTemplate.tsThe setting default is the source of truth. workflowTemplate.ts reads it via getKubeloginConfig() at generation time; no hard-coded fallback is expected in that file. If someone reintroduced a KUBELOGIN_FALLBACK_VERSION constant, flag it — it recreates the two-source-of-truth drift that was fixed in the pin-bump PR.
5b.4. When to bump vs defer
- Always bump if a version is more than 6 months stale — CVEs accumulate.
- Bump conservatively for actions whose majors have shipped in the last 30 days — let the ecosystem shake out.
- Defer if the release engineer can't validate the bump end-to-end (generate a workflow via the extension, push, confirm the run succeeds) on a real cluster before merge. Bumping without smoke-testing is worse than staying pinned.
Include the version bumps in the release PR (same commit or a preceding PR). Note them in the What's New doc under a "Dependency updates" line so users know their generated workflows will change.
6. Create the New What's New Doc
Path: docs/book/src/release/whats-new-<x.y.z>.md
Source the content from merged PRs since the last release. Do not invent highlights.
6a. Collect merged PRs since the previous release
Find the previous release tag, then list every PR merged into main since that tag was cut:
# Previous release tag — Azure/vscode-aks-tools tags releases as `x.y.z` (no `v` prefix; verify with `git tag --sort=-v:refname | head -5`)
PREV=$(git tag --sort=-v:refname | head -1)
# Cutoff date = commit date of the previous release tag (ISO 8601)
SINCE=$(git log -1 --format=%cI "$PREV")
# All PRs merged into main since the previous release
gh pr list \
--repo Azure/vscode-aks-tools \
--base main \
--state merged \
--search "merged:>=$SINCE" \
--limit 200 \
--json number,title,author,mergedAt,labels,url \
> /tmp/release-prs.jsonCross-check with git log --oneline --merges "$PREV"..upstream/main to catch anything gh missed.
6b. Classify and curate
Group the PRs into:
- Headline features — new user-visible commands, panels, integrations, feature flags
- Improvements / fixes — bug fixes, UX polish, perf, telemetry
- Dependencies & infra — dependabot, build, CI, docs-only changes
Drop the dependency/infra bucket from the body unless the user wants it called out. Bot-authored PRs (e.g., dependabot[bot]) should be summarised in one line, not listed individually.
For each headline item, capture: PR number, one-sentence summary in user terms (not commit-message voice), and link target — prefer the corresponding feature doc under docs/book/src/features/ over the PR URL.
Ask the user to confirm the curated list before drafting the doc.
6c. Collect contributor acknowledgements
This repo's CHANGELOG.md history ends every release with a thank-you line. Mirror that in the What's New doc:
jq -r '.[].author.login' /tmp/release-prs.json | sort -uExclude bots (*[bot]). Render as: Thanks to @user1, @user2, ... for contributions, testing, and reviews.
6d. Draft the doc
Use the existing latest file as the template (same headings, same screenshot conventions). Mandatory sections:
# What's New in <x.y.z>
<one-paragraph framing — what this release is about, derived from the headline PRs>
## Release focus
<bulleted summary of headline items>
## Feature flags at a glance (omit if none introduced or changed)
## <Numbered feature section per highlight>
Highlights:
- ...
Read full details:
- [Feature doc title](../features/<feature>.md)
## Behavior and compatibility
## Recommended reader path
## Screenshots (only if assets exist under docs/book/src/resources/)Rules:
- Link to feature docs via relative paths (
../features/...). - Only embed screenshots that actually exist on disk under
docs/book/src/resources/. Verify before linking. - Keep the file readable on
mdbook(no HTML-only constructs).
7. Remove the Stale Prior What's New File
git rm docs/book/src/release/whats-new-<prev>.mdThe previous What's New is preserved in git history and in the GitHub Release. Only the current release's doc lives in the book.
8. Update Book Navigation and Indexes
These three files all reference the What's New doc and must be updated together:
docs/book/src/SUMMARY.md— replace theWhat's New in <prev>line under the- [Release]section.docs/book/src/release.md— replace theWhat's New in <prev>bullet.docs/book/src/README.md— replace theWhat's New in <prev>bullet under## Development and Release.
Pattern for each: change both the display text (What's New in <prev> → What's New in <new>) and the link target (whats-new-<prev>.md → whats-new-<new>.md).
After edits, run:
grep -rn "whats-new-<prev>" docs/ # must return zero matches
grep -rn "What's New in <prev>" docs/ # must return zero matches9. Update releasing.md Only If Process Changed
docs/book/src/release/releasing.md documents the release process itself, not a per-release artifact. Do NOT touch it just to bump a version.
Update it only if the user explicitly says the process changed (e.g., new pipeline, new required step, new secret).
10. CHANGELOG.md — DO NOT UPDATE
Per the deprecation notice at the top of CHANGELOG.md (as of 1.6.14), the changelog is no longer maintained. Release notes live in:
- The new
whats-new-<x.y.z>.mddoc - The GitHub Release body (auto-generated by the publish pipeline)
If the user explicitly insists on a CHANGELOG entry, add a ## [x.y.z] section in Keep-a-Changelog format and warn them it's outside current convention.
11. Verify the Build Still Works
npm install --no-audit --no-fund # only if package-lock looks dirty; usually skip
npm run lint
npm run webpack # confirms TS + bundling still succeedThe expensive tests are not required for a version-bump PR; skip them unless the user asks.
12. Commit
Single commit, conventional message:
git add package.json package-lock.json \
docs/book/src/release/whats-new-<x.y.z>.md \
docs/book/src/SUMMARY.md \
docs/book/src/release.md \
docs/book/src/README.md
# plus `git rm` of the prior whats-new file (already staged by step 7)
git commit -m "chore(release): prepare <x.y.z>"Never commit without confirming with the user first. (User preference — see /memories/git-worktrees.md.)
13. Push and Open the PR
git push -u origin publish-<x.y.z>
gh pr create \
--repo Azure/vscode-aks-tools \
--base main \
--head <user>:publish-<x.y.z> \
--title "chore(release): <x.y.z>" \
--body-file <(cat <<'EOF'
## Release PR for vX.Y.Z
- Bumps `package.json` / `package-lock.json` to `<x.y.z>`
- Adds `docs/book/src/release/whats-new-<x.y.z>.md`
- Removes stale `whats-new-<prev>.md`
- Updates `SUMMARY.md`, `release.md`, `README.md` navigation
After merge, trigger the internal 1ES publish pipeline to push to the marketplace.
EOF
)Ask the user before pushing. Do not force-push.
Final Checklist
Report this to the user before declaring done:
package.jsonversion is<x.y.z>package-lock.jsonroot +packages.""versions are<x.y.z>docs/book/src/release/whats-new-<x.y.z>.mdexists and links resolvedocs/book/src/release/whats-new-<prev>.mddeletedSUMMARY.md,release.md,README.mdreference only<x.y.z>- No stray references to
<prev>indocs/(grepreturns empty) CHANGELOG.mduntouched (intentional — deprecated)- Build passes
- Branch is
publish-<x.y.z>, off latestupstream/main - PR opened against
Azure/vscode-aks-tools:main
Repo Facts (verified)
- Upstream:
https://github.com/Azure/vscode-aks-tools.git - Default branch:
main - Project version lives in: root
package.json+ rootpackage-lock.jsononly webview-ui/package.jsonis private, stays at0.0.0.vscode/tasks.json"version": "2.0.0"is schema, not project version- Publish pipeline:
.azurepipelines/1es-pipeline.yml(internal 1ES signed pipeline, run from Azure DevOps) CHANGELOG.mddeprecated since 1.6.14
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

