@ranimontagna/agent-toolkit 0.1.16 → 0.1.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/CONTRIBUTING.md +34 -0
  3. package/README.md +120 -24
  4. package/SECURITY.md +24 -0
  5. package/dist/src/args.js +37 -0
  6. package/dist/src/args.js.map +1 -1
  7. package/dist/src/doctor.d.ts +28 -0
  8. package/dist/src/doctor.js +78 -0
  9. package/dist/src/doctor.js.map +1 -0
  10. package/dist/src/installers/improve.d.ts +1 -0
  11. package/dist/src/installers/improve.js +72 -0
  12. package/dist/src/installers/improve.js.map +1 -0
  13. package/dist/src/lock-update.d.ts +22 -0
  14. package/dist/src/lock-update.js +130 -0
  15. package/dist/src/lock-update.js.map +1 -0
  16. package/dist/src/main.js +84 -1
  17. package/dist/src/main.js.map +1 -1
  18. package/dist/src/manifest.d.ts +26 -0
  19. package/dist/src/manifest.js +104 -0
  20. package/dist/src/manifest.js.map +1 -0
  21. package/dist/src/menu.js +6 -1
  22. package/dist/src/menu.js.map +1 -1
  23. package/dist/src/provenance.js +1 -1
  24. package/dist/src/provenance.js.map +1 -1
  25. package/dist/src/release.d.ts +4 -0
  26. package/dist/src/release.js +80 -0
  27. package/dist/src/release.js.map +1 -0
  28. package/dist/src/runtimes.js +49 -6
  29. package/dist/src/runtimes.js.map +1 -1
  30. package/dist/src/skills-audit.d.ts +10 -0
  31. package/dist/src/skills-audit.js +75 -0
  32. package/dist/src/skills-audit.js.map +1 -0
  33. package/dist/src/skills.js +26 -6
  34. package/dist/src/skills.js.map +1 -1
  35. package/dist/src/state.d.ts +14 -1
  36. package/dist/src/state.js +15 -0
  37. package/dist/src/state.js.map +1 -1
  38. package/dist/src/status.js +7 -0
  39. package/dist/src/status.js.map +1 -1
  40. package/dist/src/tool-lock.d.ts +6 -0
  41. package/dist/src/tool-lock.js +3 -0
  42. package/dist/src/tool-lock.js.map +1 -1
  43. package/dist/src/ui.js +2 -0
  44. package/dist/src/ui.js.map +1 -1
  45. package/dist/src/usage.js +14 -0
  46. package/dist/src/usage.js.map +1 -1
  47. package/docs/assets/install-plan.svg +2 -2
  48. package/docs/assets/install-status.svg +3 -3
  49. package/package.json +13 -7
  50. package/skills/frontend/gsap/gsap-core/LICENSE +21 -0
  51. package/skills/frontend/gsap/gsap-core/NOTICE.md +11 -0
  52. package/skills/frontend/gsap/gsap-core/SKILL.md +254 -0
  53. package/skills/frontend/gsap/gsap-frameworks/LICENSE +21 -0
  54. package/skills/frontend/gsap/gsap-frameworks/NOTICE.md +11 -0
  55. package/skills/frontend/gsap/gsap-frameworks/SKILL.md +266 -0
  56. package/skills/frontend/gsap/gsap-performance/LICENSE +21 -0
  57. package/skills/frontend/gsap/gsap-performance/NOTICE.md +11 -0
  58. package/skills/frontend/gsap/gsap-performance/SKILL.md +79 -0
  59. package/skills/frontend/gsap/gsap-plugins/LICENSE +21 -0
  60. package/skills/frontend/gsap/gsap-plugins/NOTICE.md +11 -0
  61. package/skills/frontend/gsap/gsap-plugins/SKILL.md +433 -0
  62. package/skills/frontend/gsap/gsap-react/LICENSE +21 -0
  63. package/skills/frontend/gsap/gsap-react/NOTICE.md +11 -0
  64. package/skills/frontend/gsap/gsap-react/SKILL.md +136 -0
  65. package/skills/frontend/gsap/gsap-scrolltrigger/LICENSE +21 -0
  66. package/skills/frontend/gsap/gsap-scrolltrigger/NOTICE.md +11 -0
  67. package/skills/frontend/gsap/gsap-scrolltrigger/SKILL.md +296 -0
  68. package/skills/frontend/gsap/gsap-timeline/LICENSE +21 -0
  69. package/skills/frontend/gsap/gsap-timeline/NOTICE.md +11 -0
  70. package/skills/frontend/gsap/gsap-timeline/SKILL.md +107 -0
  71. package/skills/frontend/gsap/gsap-utils/LICENSE +21 -0
  72. package/skills/frontend/gsap/gsap-utils/NOTICE.md +11 -0
  73. package/skills/frontend/gsap/gsap-utils/SKILL.md +284 -0
  74. package/skills/general/thermo-nuclear-code-quality-review/LICENSE +21 -0
  75. package/skills/general/thermo-nuclear-code-quality-review/NOTICE.md +12 -0
  76. package/skills/general/thermo-nuclear-code-quality-review/SKILL.md +192 -0
  77. package/tools.lock.json +21 -15
@@ -0,0 +1,284 @@
1
+ ---
2
+ name: gsap-utils
3
+ description: Official GSAP skill for gsap.utils — clamp, mapRange, normalize, interpolate, random, snap, toArray, wrap, pipe. Use when the user asks about gsap.utils, clamp, mapRange, random, snap, toArray, wrap, or helper utilities in GSAP.
4
+ license: MIT
5
+ ---
6
+
7
+ # gsap.utils
8
+
9
+ ## When to Use This Skill
10
+
11
+ Apply when writing or reviewing code that uses **gsap.utils** for math, array/collection handling, unit parsing, or value mapping in animations (e.g. mapping scroll to a value, randomizing, snapping to a grid, or normalizing inputs).
12
+
13
+ **Related skills:** Use with **gsap-core**, **gsap-timeline**, and **gsap-scrolltrigger** when building animations; CustomEase and other easing utilities are in **gsap-plugins**.
14
+
15
+ ## Overview
16
+
17
+ **gsap.utils** provides pure helpers; no need to register. Use in tween vars (e.g. function-based values), in ScrollTrigger or Observer callbacks, or in any JS that drives GSAP. All are on **gsap.utils** (e.g. `gsap.utils.clamp()`).
18
+
19
+ **Omitting the value: function form.** Many utils accept the value to transform as the **last** argument. If you omit that argument, the util returns a **function** that accepts the value later. Use the function form when you need to clamp, map, normalize, or snap many values with the same config (e.g. in a mousemove handler or tween callback). **Exception: random()** — pass **true** as the last argument to get a reusable function (do not omit the value); see [random()](https://gsap.com/docs/v3/GSAP/UtilityMethods/random()).
20
+
21
+ ```javascript
22
+ // With value: returns the result
23
+ gsap.utils.clamp(0, 100, 150); // 100
24
+
25
+ // Without value: returns a function you call with the value later
26
+ let c = gsap.utils.clamp(0, 100);
27
+ c(150); // 100
28
+ c(-10); // 0
29
+ ```
30
+
31
+ ## Clamping and Ranges
32
+
33
+ ### clamp(min, max, value?)
34
+
35
+ Constrains a value between min and max. Omit **value** to get a function: `clamp(min, max)(value)`.
36
+
37
+ ```javascript
38
+ gsap.utils.clamp(0, 100, 150); // 100
39
+ gsap.utils.clamp(0, 100, -10); // 0
40
+
41
+ let clampFn = gsap.utils.clamp(0, 100);
42
+ clampFn(150); // 100
43
+ ```
44
+
45
+ ### mapRange(inMin, inMax, outMin, outMax, value?)
46
+
47
+ Maps a value from one range to another. Use when converting scroll position, progress (0–1), or input range to an animation range. Omit **value** to get a function: `mapRange(inMin, inMax, outMin, outMax)(value)`.
48
+
49
+ ```javascript
50
+ gsap.utils.mapRange(0, 100, 0, 500, 50); // 250
51
+ gsap.utils.mapRange(0, 1, 0, 360, 0.5); // 180 (progress to degrees)
52
+
53
+ let mapFn = gsap.utils.mapRange(0, 100, 0, 500);
54
+ mapFn(50); // 250
55
+ ```
56
+
57
+ ### normalize(min, max, value?)
58
+
59
+ Returns a value normalized to 0–1 for the given range. Inverse of mapping when the target range is 0–1. Omit **value** to get a function: `normalize(min, max)(value)`.
60
+
61
+ ```javascript
62
+ gsap.utils.normalize(0, 100, 50); // 0.5
63
+ gsap.utils.normalize(100, 300, 200); // 0.5
64
+
65
+ let normFn = gsap.utils.normalize(0, 100);
66
+ normFn(50); // 0.5
67
+ ```
68
+
69
+ ### interpolate(start, end, progress?)
70
+
71
+ Interpolates between two values at a given progress (0–1). Handles numbers, colors, and objects with matching keys. Omit **progress** to get a function: `interpolate(start, end)(progress)`.
72
+
73
+ ```javascript
74
+ gsap.utils.interpolate(0, 100, 0.5); // 50
75
+ gsap.utils.interpolate("#ff0000", "#0000ff", 0.5); // mid color
76
+ gsap.utils.interpolate({ x: 0, y: 0 }, { x: 100, y: 50 }, 0.5); // { x: 50, y: 25 }
77
+
78
+ let lerp = gsap.utils.interpolate(0, 100);
79
+ lerp(0.5); // 50
80
+ ```
81
+
82
+ ## Random and Snap
83
+
84
+ ### random(minimum, maximum[, snapIncrement, returnFunction]) / random(array[, returnFunction])
85
+
86
+ Returns a random number in the range **minimum**–**maximum**, or a random element from an **array**. Optional **snapIncrement** snaps the result to the nearest multiple (e.g. `5` → multiples of 5). **To get a reusable function**, pass **true** as the last argument (**returnFunction**); the returned function takes no args and returns a new random value each time. This is the only util that uses `true` for the function form instead of omitting the value.
87
+
88
+ ```javascript
89
+ // immediate value: number in range
90
+ gsap.utils.random(-100, 100); // e.g. 42.7
91
+ gsap.utils.random(0, 500, 5); // 0–500, snapped to nearest 5
92
+
93
+ // reusable function: pass true as last argument
94
+ let randomFn = gsap.utils.random(-200, 500, 10, true);
95
+ randomFn(); // random value in range, snapped to 10
96
+ randomFn(); // another random value
97
+
98
+ // array: pick one value at random
99
+ gsap.utils.random(["red", "blue", "green"]); // "red", "blue", or "green"
100
+ let randomFromArray = gsap.utils.random([0, 100, 200], true);
101
+ randomFromArray(); // 0, 100, or 200
102
+ ```
103
+
104
+ **String form in tween vars:** use `"random(-100, 100)"`, `"random(-100, 100, 5)"`, or `"random([0, 100, 200])"`; GSAP evaluates it per target.
105
+
106
+ ```javascript
107
+ gsap.to(".box", { x: "random(-100, 100, 5)", duration: 1 });
108
+ gsap.to(".item", { backgroundColor: "random([red, blue, green])" });
109
+ ```
110
+
111
+ ### snap(snapTo, value?)
112
+
113
+ Snaps a value to the nearest multiple of **snapTo**, or to the nearest value in an array of allowed values. Omit **value** to get a function: `snap(snapTo)(value)` (or `snap(snapArray)(value)`).
114
+
115
+ ```javascript
116
+ gsap.utils.snap(10, 23); // 20
117
+ gsap.utils.snap(0.25, 0.7); // 0.75
118
+ gsap.utils.snap([0, 100, 200], 150); // 100 or 200 (nearest in array)
119
+
120
+ let snapFn = gsap.utils.snap(10);
121
+ snapFn(23); // 20
122
+ ```
123
+
124
+ Use in tweens for grid or step-based animation:
125
+
126
+ ```javascript
127
+ gsap.to(".x", { x: 200, snap: { x: 20 } });
128
+ ```
129
+
130
+ ### shuffle(array)
131
+
132
+ Returns a new array with the same elements in random order. Use for randomizing order (e.g. stagger from "random" with a copy).
133
+
134
+ ```javascript
135
+ gsap.utils.shuffle([1, 2, 3, 4]); // e.g. [3, 1, 4, 2]
136
+ ```
137
+
138
+ ### distribute(config)
139
+
140
+ **Returns a function** that assigns a value to each target based on its position in the array (or in a grid). Used internally for advanced staggers; use it whenever you need values spread across many elements (e.g. scale, opacity, x, delay). The returned function receives `(index, target, targets)` — either call it manually or pass the result directly into a tween; GSAP will call it per target with index, element, and array.
141
+
142
+ **Config (all optional):**
143
+
144
+ | Property | Type | Description |
145
+ |----------|------|-------------|
146
+ | `base` | Number | Starting value. Default `0`. |
147
+ | `amount` | Number | Total to distribute across all targets (added to base). E.g. `amount: 1` with 100 targets → 0.01 between each. Use **each** instead to set a fixed step per target. |
148
+ | `each` | Number | Amount to add between each target (added to base). E.g. `each: 1` with 4 targets → 0, 1, 2, 3. Use **amount** instead to split a total. |
149
+ | `from` | Number \| String \| Array | Where distribution starts: index, or `"start"`, `"center"`, `"edges"`, `"random"`, `"end"`, or ratios like `[0.25, 0.75]`. Default `0`. |
150
+ | `grid` | String \| Array | Use grid position instead of flat index: `[rows, columns]` (e.g. `[5, 10]`) or `"auto"` to detect. Omit for flat array. |
151
+ | `axis` | String | For grid: limit to one axis (`"x"` or `"y"`). |
152
+ | `ease` | Ease | Distribute values along an ease curve (e.g. `"power1.inOut"`). Default `"none"`. |
153
+
154
+ **In a tween:** pass the result of `distribute(config)` as the property value; GSAP calls the function for each target with `(index, target, targets)`.
155
+
156
+ ```javascript
157
+ // Scale: middle elements 0.5, outer edges 3 (amount 2.5 distributed from center)
158
+ gsap.to(".class", {
159
+ scale: gsap.utils.distribute({
160
+ base: 0.5,
161
+ amount: 2.5,
162
+ from: "center"
163
+ })
164
+ });
165
+ ```
166
+
167
+ **Manual use:** call the returned function with `(index, target, targets)` to get the value for that index.
168
+
169
+ ```javascript
170
+ const distributor = gsap.utils.distribute({
171
+ base: 50,
172
+ amount: 100,
173
+ from: "center",
174
+ ease: "power1.inOut"
175
+ });
176
+ const targets = gsap.utils.toArray(".box");
177
+ const valueForIndex2 = distributor(2, targets[2], targets);
178
+ ```
179
+
180
+ See [distribute()](https://gsap.com/docs/v3/GSAP/UtilityMethods/distribute/) for more.
181
+
182
+ ## Units and Parsing
183
+
184
+ ### getUnit(value)
185
+
186
+ Returns the unit string of a value (e.g. `"px"`, `"%"`, `"deg"`). Use when normalizing or converting values.
187
+
188
+ ```javascript
189
+ gsap.utils.getUnit("100px"); // "px"
190
+ gsap.utils.getUnit("50%"); // "%"
191
+ gsap.utils.getUnit(42); // "" (unitless)
192
+ ```
193
+
194
+ ### unitize(value, unit)
195
+
196
+ Appends a unit to a number, or returns the value as-is if it already has a unit. Use when building CSS values or tween end values.
197
+
198
+ ```javascript
199
+ gsap.utils.unitize(100, "px"); // "100px"
200
+ gsap.utils.unitize("2rem", "px"); // "2rem" (unchanged)
201
+ ```
202
+
203
+ ### splitColor(color, returnHSL?)
204
+
205
+ Converts a color string into an array: **[red, green, blue]** (0–255), or **[red, green, blue, alpha]** (4 elements for RGBA when alpha is present or required). Pass **true** as the second argument (**returnHSL**) to get **[hue, saturation, lightness]** or **[hue, saturation, lightness, alpha]** (HSL/HSLA) instead. Works with `"rgb()"`, `"rgba()"`, `"hsl()"`, `"hsla()"`, hex, and named colors (e.g. `"red"`). Use when animating color components or building gradients. See [splitColor()](https://gsap.com/docs/v3/GSAP/UtilityMethods/splitColor/).
206
+
207
+ ```javascript
208
+ gsap.utils.splitColor("red"); // [255, 0, 0]
209
+ gsap.utils.splitColor("#6fb936"); // [111, 185, 54]
210
+ gsap.utils.splitColor("rgba(204, 153, 51, 0.5)"); // [204, 153, 51, 0.5] (4 elements)
211
+ gsap.utils.splitColor("#6fb936", true); // [94, 55, 47] (HSL: hue, saturation, lightness)
212
+ ```
213
+
214
+ ## Arrays and Collections
215
+
216
+ ### selector(scope)
217
+
218
+ Returns a scoped selector function that finds elements only within the given element (or ref). Use in components so selectors like `".box"` match only descendants of that component, not the whole document. Accepts a DOM element or a ref (e.g. React ref; handles `.current`).
219
+
220
+ ```javascript
221
+ const q = gsap.utils.selector(containerRef);
222
+ q(".box"); // array of .box elements inside container
223
+ gsap.to(q(".circle"), { x: 100 });
224
+ ```
225
+
226
+ ### toArray(value, scope?)
227
+
228
+ Converts a value to an array: selector string (scoped to element), NodeList, HTMLCollection, single element, or array. Use when passing mixed inputs to GSAP (e.g. targets) and a true array is needed.
229
+
230
+ ```javascript
231
+ gsap.utils.toArray(".item"); // array of elements
232
+ gsap.utils.toArray(".item", container); // scoped to container
233
+ gsap.utils.toArray(nodeList); // [ ... ] from NodeList
234
+ ```
235
+
236
+ ### pipe(...functions)
237
+
238
+ Composes functions: **pipe(f1, f2, f3)(value)** returns f3(f2(f1(value))). Use when applying a chain of transforms (e.g. normalize → mapRange → snap) in a tween or callback.
239
+
240
+ ```javascript
241
+ const fn = gsap.utils.pipe(
242
+ (v) => gsap.utils.normalize(0, 100, v),
243
+ (v) => gsap.utils.snap(0.1, v)
244
+ );
245
+ fn(50); // normalized then snapped
246
+ ```
247
+
248
+ ### wrap(min, max, value?)
249
+
250
+ Wraps a value into the range min–max (inclusive min, exclusive max). Use for infinite scroll or cyclic values. Omit **value** to get a function: `wrap(min, max)(value)`.
251
+
252
+ ```javascript
253
+ gsap.utils.wrap(0, 360, 370); // 10
254
+ gsap.utils.wrap(0, 360, -10); // 350
255
+
256
+ let wrapFn = gsap.utils.wrap(0, 360);
257
+ wrapFn(370); // 10
258
+ ```
259
+
260
+ ### wrapYoyo(min, max, value?)
261
+
262
+ Wraps value in range with a yoyo (bounces at ends). Use for back-and-forth within a range. Omit **value** to get a function: `wrapYoyo(min, max)(value)`.
263
+
264
+ ```javascript
265
+ gsap.utils.wrapYoyo(0, 100, 150); // 50 (bounces back)
266
+
267
+ let wrapY = gsap.utils.wrapYoyo(0, 100);
268
+ wrapY(150); // 50
269
+ ```
270
+
271
+ ## Best practices
272
+
273
+ - ✅ Omit the value argument to get a reusable function when the same range/config is used many times (e.g. scroll handler, tween callback): `let mapFn = gsap.utils.mapRange(0, 1, 0, 360); mapFn(progress)`.
274
+ - ✅ Use **snap** for grid-aligned or step-based values; use **toArray** when GSAP or your code needs a real array from a selector or NodeList.
275
+ - ✅ Use **gsap.utils.selector(scope)** in components so selectors are scoped to a container or ref.
276
+
277
+ ## Do Not
278
+
279
+ - ❌ Assume **mapRange** / **normalize** handle units; they work on numbers. Use **getUnit** / **unitize** when units matter.
280
+ - ❌ Override or rely on undocumented behavior; stick to the documented API.
281
+
282
+ ### Learn More
283
+
284
+ https://gsap.com/docs/v3/HelperFunctions
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Cursor
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,12 @@
1
+ # Attribution
2
+
3
+ This skill is copied from Cursor's public `cursor/plugins` repository.
4
+
5
+ - Source: https://github.com/cursor/plugins/tree/main/cursor-team-kit/skills/thermo-nuclear-code-quality-review
6
+ - Imported from commit: `e46364b8be46000b7df0f260550cd712afbb8d36`
7
+ - Upstream plugin: `cursor-team-kit`
8
+ - Upstream skill name: `thermo-nuclear-code-quality-review`
9
+ - License: MIT
10
+ - Copyright: Copyright (c) 2026 Cursor
11
+
12
+ The upstream MIT license text is preserved in `LICENSE`.
@@ -0,0 +1,192 @@
1
+ ---
2
+ name: thermo-nuclear-code-quality-review
3
+ description: Run an extremely strict maintainability review for abstraction quality, giant files, and spaghetti-condition growth. Use for a thermo-nuclear code quality review, thermonuclear review, deep code quality audit, or especially harsh maintainability review.
4
+ disable-model-invocation: true
5
+ ---
6
+
7
+ # Thermo-Nuclear Code Quality Review
8
+
9
+ Use this skill for an unusually strict review focused on implementation quality, maintainability, abstraction quality, and codebase health.
10
+
11
+ Above all, this skill should push the reviewer to be **ambitious** about code structure. Do not merely identify local cleanup opportunities. Actively search for "code judo" moves: restructurings that preserve behavior while making the implementation dramatically simpler, smaller, more direct, and more elegant.
12
+
13
+ ## Core Prompt
14
+
15
+ Start from this baseline:
16
+
17
+ > Perform a deep code quality audit of the current branch's changes.
18
+ > Rethink how to structure / implement the changes to meaningfully improve code quality without impacting behavior.
19
+ > Work to improve abstractions, modularity, reduce Spaghetti code, improve succinctness and legibility.
20
+ > Be ambitious, if there is a clear path to improving the implementation that involves restructuring some of the codebase, go for it.
21
+ > Be extremely thorough and rigorous. Measure twice, cut once.
22
+
23
+ ## Non-Negotiable Additional Standards
24
+
25
+ Apply the baseline prompt above, plus these explicit review rules:
26
+
27
+ 0. **Be ambitious about structural simplification.**
28
+ - Do not stop at "this could be a bit cleaner."
29
+ - Look for opportunities to reframe the change so that whole branches, helpers, modes, conditionals, or layers disappear entirely.
30
+ - Prefer the solution that makes the code feel inevitable in hindsight.
31
+ - Assume there is often a "code judo" move available: a re-organization that uses the existing architecture more effectively and makes the change dramatically simpler and more elegant.
32
+ - If you see a path to delete complexity rather than rearrange it, push hard for that path.
33
+
34
+ 1. **Do not let a PR push a file from under 1k lines to over 1k lines without a very strong reason.**
35
+ - Treat this as a strong code-quality smell by default.
36
+ - Prefer extracting helpers, subcomponents, modules, or local abstractions instead of letting a file sprawl past 1000 lines.
37
+ - If the diff crosses that threshold, explicitly ask whether the code should be decomposed first.
38
+ - Only waive this if there is a compelling structural reason and the resulting file is still clearly organized.
39
+
40
+ 2. **Do not allow random spaghetti growth in existing code.**
41
+ - Be highly suspicious of new ad-hoc conditionals, scattered special cases, or one-off branches inserted into unrelated flows.
42
+ - If a change adds "weird if statements in random places", treat that as a design problem, not a stylistic nit.
43
+ - Prefer pushing the logic into a dedicated abstraction, helper, state machine, policy object, or separate module instead of tangling an existing path.
44
+ - Call out changes that make the surrounding code harder to reason about, even if they technically work.
45
+
46
+ 3. **Bias toward cleaning the design, not just accepting working code.**
47
+ - If behavior can stay the same while the structure becomes meaningfully cleaner, push for the cleaner version.
48
+ - Do not rubber-stamp "it works" implementations that leave the codebase messier.
49
+ - Strongly prefer simplifications that remove moving pieces altogether over refactors that merely spread the same complexity around.
50
+
51
+ 4. **Prefer direct, boring, maintainable code over hacky or magical code.**
52
+ - Treat brittle, ad-hoc, or "magic" behavior as a code-quality problem.
53
+ - Be skeptical of generic mechanisms that hide simple data-shape assumptions.
54
+ - Flag thin abstractions, identity wrappers, or pass-through helpers that add indirection without buying clarity.
55
+
56
+ 5. **Push hard on type and boundary cleanliness when they affect maintainability.**
57
+ - Question unnecessary optionality, `unknown`, `any`, or cast-heavy code when a clearer type boundary could exist.
58
+ - Prefer explicit typed models or shared contracts over loosely-shaped ad-hoc objects.
59
+ - If a branch relies on silent fallback to paper over an unclear invariant, ask whether the boundary should be made explicit instead.
60
+
61
+ 6. **Keep logic in the canonical layer and reuse existing helpers.**
62
+ - Call out feature logic leaking into shared paths or implementation details leaking through APIs.
63
+ - Prefer existing canonical utilities/helpers over bespoke one-offs.
64
+ - Push code toward the right package, service, or module instead of normalizing architectural drift.
65
+
66
+ 7. **Treat unnecessary sequential orchestration and non-atomic updates as design smells when the cleaner structure is obvious.**
67
+ - If independent work is serialized for no good reason, ask whether the flow should run in parallel instead.
68
+ - If related updates can leave state half-applied, push for a more atomic structure.
69
+ - Do not over-index on micro-optimizations, but do flag avoidable orchestration complexity that makes the implementation more brittle.
70
+
71
+ ## Primary Review Questions
72
+
73
+ For every meaningful change, ask:
74
+
75
+ - Is there a "code judo" move that would make this dramatically simpler?
76
+ - Can this change be reframed so fewer concepts, branches, or helper layers are needed?
77
+ - Does this improve or worsen the local architecture?
78
+ - Did the diff add branching complexity where a better abstraction should exist?
79
+ - Did a previously cohesive module become more coupled, more stateful, or harder to scan?
80
+ - Is this logic living in the right file and layer?
81
+ - Did this change enlarge a file or component past a healthy size boundary?
82
+ - Are there repeated conditionals that signal a missing model or missing helper?
83
+ - Is the implementation direct and legible, or does it rely on special cases and incidental control flow?
84
+ - Is this abstraction actually earning its keep, or is it just a wrapper?
85
+ - Did the diff introduce casts, optionality, or ad-hoc object shapes that obscure the real invariant?
86
+ - Is this logic living in the canonical layer, or did the diff leak details across a boundary?
87
+ - Is this orchestration more sequential or less atomic than it needs to be?
88
+
89
+ ## What to Flag Aggressively
90
+
91
+ Escalate findings when you see:
92
+
93
+ - A complicated implementation where a cleaner reframing could delete whole categories of complexity.
94
+ - Refactors that move code around but fail to reduce the number of concepts a reader must hold in their head.
95
+ - A file crossing 1000 lines due to the PR, especially if the new code could be split out.
96
+ - New conditionals bolted onto unrelated code paths.
97
+ - One-off booleans, nullable modes, or flags that complicate existing control flow.
98
+ - Feature-specific logic leaking into general-purpose modules.
99
+ - Generic "magic" handling that hides simple structure and makes the code harder to reason about.
100
+ - Thin wrappers or identity abstractions that add indirection without simplifying anything.
101
+ - Unnecessary casts, `any`, `unknown`, or optional params that muddy the real contract.
102
+ - Copy-pasted logic instead of extracted helpers.
103
+ - Narrow edge-case handling implemented in the middle of an already busy function.
104
+ - Refactors that technically pass tests but make the code less modular or less readable.
105
+ - "Temporary" branching that is likely to become permanent debt.
106
+ - Bespoke helpers where the codebase already has a canonical utility for the job.
107
+ - Logic added in the wrong layer/package when it should live somewhere more central.
108
+ - Sequential async flow where obviously independent work could stay simpler and clearer with parallel execution.
109
+ - Partial-update logic that leaves state less atomic than necessary.
110
+
111
+ ## Preferred Remedies
112
+
113
+ When you identify a code-quality problem, prefer suggestions like:
114
+
115
+ - Delete a whole layer of indirection rather than polishing it.
116
+ - Reframe the state model so conditionals disappear instead of getting centralized.
117
+ - Change the ownership boundary so the feature becomes a natural extension of an existing abstraction.
118
+ - Turn special-case logic into a simpler default flow with fewer exceptions.
119
+ - Extract a helper or pure function.
120
+ - Split a large file into smaller focused modules.
121
+ - Move feature-specific logic behind a dedicated abstraction.
122
+ - Replace condition chains with a typed model or explicit dispatcher.
123
+ - Separate orchestration from business logic.
124
+ - Collapse duplicate branches into a single clearer flow.
125
+ - Delete wrappers that do not meaningfully clarify the API.
126
+ - Reuse the existing canonical helper instead of introducing a near-duplicate.
127
+ - Make type boundaries more explicit so the control flow gets simpler.
128
+ - Move the logic to the package/module/layer that already owns the concept.
129
+ - Parallelize independent work when that also simplifies the orchestration.
130
+ - Restructure related updates into a more atomic flow when partial state would be harder to reason about.
131
+
132
+ Do not be satisfied with "maybe rename this" feedback when the real issue is structural.
133
+ Do not be satisfied with a merely cleaner version of the same messy idea if there is a plausible path to a much simpler idea.
134
+
135
+ ## Review Tone
136
+
137
+ Be direct, serious, and demanding about quality.
138
+ Do not be rude, but do not soften major maintainability issues into mild suggestions.
139
+ If the code is making the codebase messier, say so clearly.
140
+ If the implementation missed an opportunity for a dramatic simplification, say that clearly too.
141
+
142
+ Good phrases:
143
+
144
+ - `this pushes the file past 1k lines. can we decompose this first?`
145
+ - `this adds another special-case branch into an already busy flow. can we move this behind its own abstraction?`
146
+ - `this works, but it makes the surrounding code more spaghetti. let's keep the behavior and restructure the implementation.`
147
+ - `this feels like feature logic leaking into a shared path. can we isolate it?`
148
+ - `this abstraction seems unnecessary. can we just keep the direct flow?`
149
+ - `why does this need a cast / optional here? can we make the boundary more explicit instead?`
150
+ - `this looks like a bespoke helper for something we already have elsewhere. can we reuse the canonical one?`
151
+ - `i think there's a code-judo move here that makes this much simpler. can we reframe this so these branches disappear?`
152
+ - `this refactor moves complexity around, but doesn't really delete it. is there a way to make the model itself simpler?`
153
+
154
+ ## Output Expectations
155
+
156
+ Prioritize findings in this order:
157
+
158
+ 1. Structural code-quality regressions
159
+ 2. Missed opportunities for dramatic simplification / code-judo restructuring
160
+ 3. Spaghetti / branching complexity increases
161
+ 4. Boundary / abstraction / type-contract problems that make the code harder to reason about
162
+ 5. File-size and decomposition concerns
163
+ 6. Modularity and abstraction issues
164
+ 7. Legibility and maintainability concerns
165
+
166
+ Do not flood the review with low-value nits if there are larger structural issues.
167
+ Prefer a smaller number of high-conviction comments over a long list of cosmetic notes.
168
+
169
+ ## Approval Bar
170
+
171
+ Do not approve merely because behavior seems correct.
172
+ The bar for approval is:
173
+
174
+ - no clear structural regression
175
+ - no obvious missed opportunity to make the implementation dramatically simpler when such a path is visible
176
+ - no unjustified file-size explosion
177
+ - no obvious spaghetti-growth from special-case branching
178
+ - no obviously hacky or magical abstraction that makes the code harder to reason about
179
+ - no unnecessary wrapper/cast/optionality churn obscuring the real design
180
+ - no clear architecture-boundary leak or avoidable canonical-helper duplication
181
+ - no missed opportunity for an obvious decomposition that would materially improve maintainability
182
+
183
+ Treat these as presumptive blockers unless the author can justify them clearly:
184
+
185
+ - the PR preserves a lot of incidental complexity when there is a plausible code-judo move that would delete it
186
+ - the PR pushes a file from below 1000 lines to above 1000 lines
187
+ - the PR adds ad-hoc branching that makes an existing flow more tangled
188
+ - the PR solves a local problem by scattering feature checks across shared code
189
+ - the PR adds an unnecessary abstraction, wrapper, or cast-heavy contract that makes the design more indirect
190
+ - the PR duplicates an existing helper or puts logic in the wrong layer when there is a clear canonical home
191
+
192
+ If those conditions are not met, leave explicit, actionable feedback and push for a cleaner decomposition.
package/tools.lock.json CHANGED
@@ -4,57 +4,63 @@
4
4
  "rtk": {
5
5
  "source": "github-release",
6
6
  "repository": "rtk-ai/rtk",
7
- "tag": "v0.42.1",
7
+ "tag": "v0.42.4",
8
8
  "assets": {
9
9
  "rtk-aarch64-apple-darwin.tar.gz": {
10
- "sha256": "401d72a80c0efc597ae9469f053ce51c70334ea427527464ab76f8e298da2447"
10
+ "sha256": "f223ca074a0215af002679bc1d34ca92b93e25b3e8ae16aace6e84c06e586802"
11
11
  },
12
12
  "rtk-aarch64-unknown-linux-gnu.tar.gz": {
13
- "sha256": "32f4d78766e2f5b43756efce3c699dc4da8beef5296deb02fa7756f3257eb25c"
13
+ "sha256": "cc2b91c064eb670c097c184913c8fbcb1a943d53d7fe505375e96ba0c5b6459f"
14
14
  },
15
15
  "rtk-x86_64-apple-darwin.tar.gz": {
16
- "sha256": "6165d80f40db0f46f8af2ea15d0132e957e2717aa74507906c7ce5b3c20c655e"
16
+ "sha256": "84121316867613e61925c209607f033b2113bb0ce312c267a79d3e3e8f221e49"
17
17
  },
18
18
  "rtk-x86_64-pc-windows-msvc.zip": {
19
- "sha256": "5f292b031595405671b41e29aa5016931e8598949c25d9751f0eebd2eccefe0b"
19
+ "sha256": "f0ec18963581657173bd6a51f5ba012b093823f844db749fec218581af30a568"
20
20
  },
21
21
  "rtk-x86_64-unknown-linux-musl.tar.gz": {
22
- "sha256": "a37ca300a42510a964453f2bc2e217769ef0872780af802db8a7d698f1da2465"
22
+ "sha256": "34975116da11e09e502501daf758143e0b22ed3a42a10eb67fb693a6270d9e36"
23
23
  }
24
24
  }
25
25
  },
26
26
  "caveman": {
27
27
  "source": "github",
28
28
  "repository": "JuliusBrussee/caveman",
29
- "ref": "655b7d9c5431f822264b7732e9901c5578ac84cf"
29
+ "ref": "25d22f864ad68cc447a4cb93aefde918aa4aec9f"
30
30
  },
31
31
  "graphify": {
32
32
  "source": "pypi",
33
33
  "package": "graphifyy",
34
- "version": "0.8.31"
34
+ "version": "0.8.41"
35
35
  },
36
36
  "gsd": {
37
37
  "source": "npm",
38
38
  "package": "get-shit-done-cc",
39
39
  "version": "1.42.3"
40
40
  },
41
+ "improve": {
42
+ "source": "github",
43
+ "repository": "shadcn/improve",
44
+ "ref": "03369ee6d7cafbfcecc4346539b05b3dc0a603bb",
45
+ "skill": "improve"
46
+ },
41
47
  "frontendSkills": {
42
48
  "source": "skills-cli",
43
49
  "skillsCli": {
44
50
  "source": "npm",
45
51
  "package": "skills",
46
- "version": "1.5.10"
52
+ "version": "1.5.11"
47
53
  },
48
54
  "impeccable": {
49
55
  "source": "github",
50
56
  "repository": "pbakaus/impeccable",
51
- "ref": "1d5d745823aae7019044e8b0a621af4366dae224",
57
+ "ref": "1c897a09c86ea7ed7e5cc3affaabcbbb46a05a7d",
52
58
  "skill": "impeccable"
53
59
  },
54
60
  "tasteSkill": {
55
61
  "source": "github",
56
62
  "repository": "Leonxlnx/taste-skill",
57
- "ref": "3c7017d636c3a4aad378433ea6d0cfa6c921da4a",
63
+ "ref": "5285855df6719b6efb95d5268359e752d3d79045",
58
64
  "skill": "design-taste-frontend"
59
65
  }
60
66
  }
@@ -63,22 +69,22 @@
63
69
  "claude": {
64
70
  "source": "npm",
65
71
  "package": "@anthropic-ai/claude-code",
66
- "version": "2.1.162"
72
+ "version": "2.1.181"
67
73
  },
68
74
  "codex": {
69
75
  "source": "npm",
70
76
  "package": "@openai/codex",
71
- "version": "0.137.0"
77
+ "version": "0.141.0"
72
78
  },
73
79
  "opencode": {
74
80
  "source": "npm",
75
81
  "package": "opencode-ai",
76
- "version": "1.15.13"
82
+ "version": "1.17.8"
77
83
  },
78
84
  "gemini": {
79
85
  "source": "npm",
80
86
  "package": "@google/gemini-cli",
81
- "version": "0.45.0"
87
+ "version": "0.47.0"
82
88
  }
83
89
  }
84
90
  }