node-migration
Skill2.3k starsChanged 21 months agoMITView on GitHub
Migrate Azure/azure-sdk-for-js to a user-specified minimum Node.js version while preserving any existing references above the target.
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about Azure/azure-sdk-for-js
- microsoft/TypeScript“Extract APIs that are common to Node and the DOM to their own namespace”GitHub · Nov 29, 2020 · 21 reactions
- langchain-ai/langchainjs“[Feature request] Azure OpenAI Assistants”GitHub · Feb 8, 2024 · 14 reactions
- pnpm/pnpm“pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied”GitHub · Feb 28, 2023 · 11 reactions
- Azure/azure-sdk-for-python“"exists" operator for containers and blobs”GitHub · Jan 17, 2020 · 7 reactions
- anonyco/FastestSmallestTextEncoderDecoder“React Native - TypeError: Cannot read property 'prototype' of undefined”GitHub · Jul 11, 2024 · 6 reactions
The biggest 5 of 11 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 11
Talked about on GitHub and Bluesky (11 times).
On GitHub · 10
- Nov 29, 2020Extract APIs that are common to Node and the DOM to their own namespace — microsoft/TypeScript21 reactions · 6 comments
- Feb 8, 2024[Feature request] Azure OpenAI Assistants — langchain-ai/langchainjs14 reactions · 4 comments
- Feb 28, 2023pnpm install failed on WSL with mounted windows file system drive: EACCES EACCES: permission denied — pnpm/pnpm11 reactions · 16 comments
- Jan 17, 2020"exists" operator for containers and blobs — Azure/azure-sdk-for-python7 reactions · 8 comments
- Jul 11, 2024React Native - TypeError: Cannot read property 'prototype' of undefined — anonyco/FastestSmallestTextEncoderDecoder6 reactions · 1 comment
5 more on GitHub
- Mar 15, 2024Avoid the SemVer v0.x.x anti-pattern — open-telemetry/opentelemetry-js5 reactions · 13 comments
- Mar 26, 2020Add a common AzureKeyCredential to Azure Core — Azure/azure-sdk5 reactions · 8 comments
- Mar 1, 2022[Identity] Getting a token via VisualStudioCodeCredential using v0.10.0 of the Azure Account Extension results in an error — Azure/azure-sdk-for-net4 reactions · 3 comments
- Nov 1, 2023[Epic] - Fix issues found when generating OpenAI — Azure/autorest.typescript3 reactions
- Jun 16, 2020[rush] Deprecated options warning when using pnpm v5 — microsoft/rushstack3 reactions · 1 comment
On Bluesky · 1
- Nov 12, 2023📦 Azure / azure-sdk-for-js ⭐ 1,810 (+46) 🗒 TypeScript This repository is for active development of the Azure SDK for JavaScript (NodeJS… — @github-trending-js.bsky.social3 likes and reposts
In this repository15 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ado-pipeline-auditSkill
- agentic-workflowsSkill
- azsdk-common-apiview-feedback-resolutionSkill
- azsdk-common-generate-sdk-locallySkill
- azsdk-common-pipeline-analysisSkill
- azsdk-common-pipeline-fixerSkill
- azsdk-common-prepare-release-planSkill
- azsdk-common-sdk-breaking-changeSkill
- azsdk-common-sdk-releaseSkill
- code-reviewSkill
- create-package-skillSkill
- find-package-skillSkill
- sdk-workflowSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
20 rules. About 0 are common, 10 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use this skill when the user asks to upgrade, migrate, or raise the repo-wide Node.js minimum or supported version for …
- Distinctive: line 24
Treat the target as a major version unless the user explicitly provides full semver.
- Distinctive: line 25
If the target is missing or ambiguous, ask for it before editing.
- Distinctive: line 26
If the target does not look like an active or plausible Node major version, ask for confirmation.
- Distinctive: line 41
Do not blindly replace every occurrence of the old number.
- Very specific: line 42
Only change references that are clearly Node.js runtime, Node engine, Node typing, CI setup, Docker default, documentation, lock/generated …
- Very specific: line 43
Do not change unrelated API versions, service versions, years, port numbers, sample data, or dependency versions where the number is not …
- Very specific: line 77
If an engine range has an upper bound, update the lower bound only when the resulting range remains valid.
- Very specific: line 78
Update @types/node only when it represents the repo's supported Node typings for tooling or packages.
- Distinctive: line 81
Avoid manual lockfile edits when repo tooling can regenerate them correctly.
- Very specific: line 85
Use repo-defined commands only.
- Distinctive: line 89
Run the repo install/update command needed to regenerate lock artifacts.
- Distinctive: line 90
Run formatting only if existing scripts require it for changed files.
- Distinctive: line 91
Run focused checks for touched tooling packages, especially dev-tool and eslint-plugin-azure-sdk if those files changed.
- Very specific: line 92
Run a final leftover search for every old Node major below TARGET_MAJOR.
- Very specific: line 93
Search for Node versions above TARGET_MAJOR and confirm they were not downgraded.
- Distinctive: line 108
If there are many false positives from textual search, narrow to Node-specific contexts before editing.
- Distinctive: line 109
If generated files or lockfiles churn unexpectedly, rerun the repo's documented install/update workflow rather than hand-editing generated …
- Very specific: line 110
If a package engine range has an upper bound lower than TARGET_MAJOR, stop and ask the user whether to raise the upper bound, skip that …
- Very specific: line 111
If .nvmrc uses an LTS codename and the correct codename is uncertain, prefer the numeric target major instead of guessing.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Azure SDK Node Migration
Migrate the Azure SDK for JavaScript (Azure/azure-sdk-for-js) to a user-specified minimum Node.js version.
When to Use
Use this skill when the user asks to upgrade, migrate, or raise the repo-wide Node.js minimum or supported version for Azure/azure-sdk-for-js.
Examples
- "Migrate azure-sdk-for-js to Node 24"
- "Upgrade the repo from Node 22 to Node 24"
- "Raise the minimum Node version to 26"
Required Input
The user must provide a target Node.js version.
- Treat the target as a major version unless the user explicitly provides full semver.
- If the target is missing or ambiguous, ask for it before editing.
- If the target does not look like an active or plausible Node major version, ask for confirmation.
Define these values before editing:
| Name | Meaning |
TARGET_MAJOR | User-requested target major, for example 22 or 24. |
TARGET_SEMVER_MIN | Minimum engine form matching nearby style, usually >=${TARGET_MAJOR} or >=${TARGET_MAJOR}.0.0. |
OLD_SUPPORTED_MAJORS | Node majors below TARGET_MAJOR that appear in Node-runtime contexts. |
HIGHER_MAJORS | Node majors above TARGET_MAJOR that appear in Node-runtime contexts and must be preserved. |
Core Rules
- Raise Node.js runtime and minimum-version references below
TARGET_MAJORtoTARGET_MAJOR. - Preserve Node.js version references above
TARGET_MAJOR. For example, when target is 22, preserve 24; when target is 24, preserve 26. - Do not blindly replace every occurrence of the old number.
- Only change references that are clearly Node.js runtime, Node engine, Node typing, CI setup, Docker default, documentation, lock/generated artifact, or related test expectation references.
- Do not change unrelated API versions, service versions, years, port numbers, sample data, or dependency versions where the number is not clearly a Node.js version.
For future migrations, do both passes: broad mechanical sweep first, then a missed-reference sweep.
Steps
- Verify repo — Confirm the current repository is
Azure/azure-sdk-for-js. If not, stop and tell the user this skill expects that repo. - Discover current Node references — Use the Search Checklist to find Node runtime, engine, CI, Docker, docs, lockfile, and generated expectation references.
- Classify findings — Separate findings into JSON engine/dependency changes, CI/YAML changes, code/test expectation changes, docs changes, and generated lock/artifact changes.
- Identify preserved versions — Record Node majors above
TARGET_MAJORand keep them unchanged unless the user explicitly says otherwise. - Edit targeted files — Apply the Core Rules to each finding. Prefer surgical changes and match nearby formatting.
- Handle special cases — Use the Special Cases section only when the Core Rules do not fully resolve a finding.
- Regenerate generated artifacts — Use repo tooling for lockfiles and generated package artifacts when applicable.
- Validate — Run focused checks for changed tooling and a final leftover search.
- Report outcome — Include the target version, changed categories, validation performed, and intentionally remaining old references with reasons.
Search Checklist
Target areas to search:
| Area | Paths / Patterns |
| Package engines | **/package.json files containing "node" in engines. |
| Workspace catalog | pnpm-workspace.yaml — check catalog: entries for @types/node. |
| Direct Node setup pins | .nvmrc, .node-version, .github/workflows/**, eng/pipelines/**, rush.json, common/config/rush/**. |
| Dev tooling | common/tools/dev-tool/**, common/tools/eslint-plugin-azure-sdk/**, eng/tools/**, eng/containers/**. |
| Docs and Docker | documentation/**, README.md, sdk/**/Dockerfile, eng/**/Dockerfile. |
| CI and build scripts | **/.github/workflows/**, **/eng/pipelines/**, **/eng/scripts/**. |
| Review guidelines | .github/instructions/**, .github/prompts/** — these may reference Node minimum versions as policy. |
| SDK packages (bulk) | All sdk/**/package.json engine fields and sdk/**/samples/**/package.json @types/node entries. These are enforced by the eslint rule and dev-tool, so update them in bulk after updating the tooling constants. |
| Textual leftovers | For each old major X: Node.js X, Node X, node-version: "X", node-version: X, NODE_VERSION=X, >=X, >=X.0.0, @types/node@X, @types/node": "X, @types/node": "^X, and known LTS codenames if relevant. |
Special Cases
- If an engine range has an upper bound, update the lower bound only when the resulting range remains valid. If
TARGET_MAJORconflicts with the upper bound, ask the user how to handle it. - Update
@types/nodeonly when it represents the repo's supported Node typings for tooling or packages. Do not downgrade higher-major typings. - In CI matrices or dev-tool defaults, remove or raise entries below
TARGET_MAJOR, but preserve entries aboveTARGET_MAJOR. - For
.nvmrcor.node-version, prefer the repo's existing convention. If the correct LTS codename is uncertain, use the numeric target major rather than guessing. - Avoid manual lockfile edits when repo tooling can regenerate them correctly.
Validation
Use repo-defined commands only. Inspect package.json, rush.json, and repo docs before choosing commands.
Recommended validation:
- Run the repo install/update command needed to regenerate lock artifacts.
- Run formatting only if existing scripts require it for changed files.
- Run focused checks for touched tooling packages, especially dev-tool and eslint-plugin-azure-sdk if those files changed.
- Run a final leftover search for every old Node major below
TARGET_MAJOR. - Search for Node versions above
TARGET_MAJORand confirm they were not downgraded.
Final Leftover Classification
For every remaining old-major hit, classify it as one of:
| Classification | Meaning |
| Changed | The reference was updated to TARGET_MAJOR. |
| Intentionally preserved: not Node | The number is not a Node.js runtime/minimum reference. |
| Intentionally preserved: above target | The version is above TARGET_MAJOR and must remain unchanged. |
| Needs user decision | The reference is ambiguous or the target conflicts with an upper bound. |
Troubleshooting
- If there are many false positives from textual search, narrow to Node-specific contexts before editing.
- If generated files or lockfiles churn unexpectedly, rerun the repo's documented install/update workflow rather than hand-editing generated output.
- If a package engine range has an upper bound lower than
TARGET_MAJOR, stop and ask the user whether to raise the upper bound, skip that package, or handle it separately. - If
.nvmrcuses an LTS codename and the correct codename is uncertain, prefer the numeric target major instead of guessing.
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.

