You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/skills/upgrade-dependencies/SKILL.md
+15Lines changed: 15 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,14 @@ Create and switch:
67
67
git switch -c $branchName
68
68
```
69
69
70
+
## Version Range Preservation Rules
71
+
Preserve existing version-range declarations when upgrading dependencies.
72
+
73
+
- npm: If the current declaration uses comparator-range syntax (for example `>=1.1.6 <2.0.0`), keep it unchanged and do not rewrite it to caret/tilde/exact forms.
74
+
- Skip upgrade commands for dependencies already declared as ranges under the rules above.
75
+
- You may still report recommended minimum-version bumps when vulnerabilities or critical fixes are identified.
76
+
77
+
70
78
## Discover npm Manifests
71
79
Discover package manifests under `packages/`, excluding `node_modules`.
72
80
@@ -122,6 +130,11 @@ Notes:
122
130
- Keep lockfile updates generated by npm commands.
123
131
- Ignore nested lockfiles that do not have a sibling `package.json`.
124
132
133
+
Before running `npm install "$pkg@latest"` for each package, inspect the current declaration in `dependencies` or `devDependencies`:
134
+
- If the current declaration uses comparator-range syntax (for example `>=1.1.6 <2.0.0`), skip that package and keep the declaration unchanged.
135
+
- Do not rewrite comparator ranges to caret, tilde, or exact-version declarations.
136
+
- Record skipped ranged npm packages and any recommended minimum-version bumps in both PR summary and final output.
137
+
125
138
## Resolve Upgrade Fallout
126
139
Fix compatibility issues directly caused by dependency upgrades:
127
140
- API or signature changes
@@ -194,6 +207,7 @@ __TRELLO_CARD_URL__
194
207
195
208
## Summary
196
209
- <short summary of upgraded dependencies and compatibility fixes>
0 commit comments