solidjs-v2-reviewer
Review SolidJS 2.0 diffs or files for reactivity, async, DOM, and API correctness, including React and Solid 1.x assumptions. Applies to solid-js major 2; use solidjs-v2-migration for a requested 1.x conversion.
Install
npx skills add https://github.com/khmm12/solidjs-v2-skills/tree/main/skills/solidjs-v2-reviewer
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install khmm12-solidjs-v2-skills@llmmart
git clone https://github.com/khmm12/solidjs-v2-skills.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole khmm12/solidjs-v2-skills collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Review SolidJS 2.0
Reference target: solid-js@2.0.4 and @solidjs/web@2.0.4.
Establish scope
Read the installed solid-js version and review the requested diff/files.
Apply this checklist to major 2. Keep v1 reviews on their v1 contract.
Published target typings outrank examples and frozen design RFCs.
Check behavior
| Area | Required v2 behavior |
|---|---|
| Component setup | Runs once per mount; reactive props remain props.x reads in JSX/compute |
| Props | JSX passes values through getters; accessor-typed APIs follow their declared types |
| Derived state | Memo/projection for readonly state; function-form signal/store for writable derivation |
| Writes/actions | Invoke in imperative callbacks, including disposal cleanup; computation scopes derive |
| Read-after-write | Microtask commit; imperative immediate reads follow flush() |
| Effects | Tracked compute + untracked apply; extract fields/deep snapshot in compute, return cleanup from apply |
| Paint | Both lanes run before paint; render lane measures/updates layout before user effects |
| Initial async | Async memo/store consumers sit under Loading; errors reach Errored with error accessor |
| Deferred reads | createDeferred keeps the last answer without holding writes on refetch; it does not debounce |
| Pending UI | Input changes or action-scoped affects; bare refresh is quiet; saving uses an optimistic flag |
| Mutation sequencing | Generator action yields work; after internal await, yield before writes; refresh the original accessor or derived store root |
| Live acknowledgment | until predicates read authoritative sources, use correlation and timeout |
| Cleanup | Register compute cleanup before await/yield; cancellation releases a parked stream |
| Lifecycle | Create primitives in setup; owned onSettled returns teardown, out-of-band callbacks are one-shot |
| Stores | Draft setters; returned values shallow-replace; reconcile's second argument is key/extractor/null |
| Store identity | Standalone reconcile preserves chosen root; derived returns can replace authoritative root |
| Shallow stores | Replace root slots by reference; preserve inner store proxies in live wrapper views |
| List callbacks | Identity: value/accessor; positional: accessor/number; custom key: accessor/accessor |
| Flow bodies | Accessor reads occur in JSX/compute; callback bodies build structure |
| DOM | Lowercase HTML attributes, string true/false states for ARIA/MathML, camelCase handlers, class arrays/objects, callback refs; use dynamic/dynamicComponent factories for new mounts |
| Editable inputs | Keep editable text in an onInput draft or use an uncontrolled field; explicitly write back a rejected edit that leaves the signal unchanged |
| SSR | Per-request user state; async data sources; lazy code holds shell, dynamic data follows boundary/options |
| Server validation | Function directive: body validates; module directive: exported wrapper value is registered |
| Transport | GET/withMeta for declarations, prepareRequest for session policy, invoke for per-call cancellation; POST alone does not request single-flight |
React's rerender/dependency-array model and Solid 1.x's synchronous writes, single-callback effects, resource flags, and old import paths need semantic review. Check a suspicious identifier against the actual import and installed type before reporting it. A callback/accessor prop can be intentional; justify findings by its consumer contract.
For v1 import/rename details, use the installed solidjs-v2-migration skill's map.
For detailed semantics, use the installed solidjs-v2 skill and its task router.
If those companion skills are unavailable, verify against installed typings and
upstream sources. This checklist remains usable when installed alone.
Report
Report only evidenced findings: severity, file/line, concrete failing behavior, and smallest correct change. Separate runtime failures from dev diagnostics and style choices. State which type/runtime checks ran and what remains unverified.
Files (solidjs-v2-skills)
-
SKILL.md 4.2 KB
--- name: solidjs-v2-reviewer description: Review SolidJS 2.0 diffs or files for reactivity, async, DOM, and API correctness, including React and Solid 1.x assumptions. Applies to solid-js major 2; use solidjs-v2-migration for a requested 1.x conversion. --- # Review SolidJS 2.0 Reference target: `solid-js@2.0.4` and `@solidjs/web@2.0.4`. ## Establish scope Read the installed `solid-js` version and review the requested diff/files. Apply this checklist to major 2. Keep v1 reviews on their v1 contract. Published target typings outrank examples and frozen design RFCs. ## Check behavior | Area | Required v2 behavior | |---|---| | Component setup | Runs once per mount; reactive props remain `props.x` reads in JSX/compute | | Props | JSX passes values through getters; accessor-typed APIs follow their declared types | | Derived state | Memo/projection for readonly state; function-form signal/store for writable derivation | | Writes/actions | Invoke in imperative callbacks, including disposal cleanup; computation scopes derive | | Read-after-write | Microtask commit; imperative immediate reads follow `flush()` | | Effects | Tracked compute + untracked apply; extract fields/deep snapshot in compute, return cleanup from apply | | Paint | Both lanes run before paint; render lane measures/updates layout before user effects | | Initial async | Async memo/store consumers sit under `Loading`; errors reach `Errored` with error accessor | | Deferred reads | `createDeferred` keeps the last answer without holding writes on refetch; it does not debounce | | Pending UI | Input changes or action-scoped `affects`; bare refresh is quiet; saving uses an optimistic flag | | Mutation sequencing | Generator action yields work; after internal await, yield before writes; refresh the original accessor or derived store root | | Live acknowledgment | `until` predicates read authoritative sources, use correlation and timeout | | Cleanup | Register compute cleanup before await/yield; cancellation releases a parked stream | | Lifecycle | Create primitives in setup; owned `onSettled` returns teardown, out-of-band callbacks are one-shot | | Stores | Draft setters; returned values shallow-replace; reconcile's second argument is key/extractor/null | | Store identity | Standalone reconcile preserves chosen root; derived returns can replace authoritative root | | Shallow stores | Replace root slots by reference; preserve inner store proxies in live wrapper views | | List callbacks | Identity: value/accessor; positional: accessor/number; custom key: accessor/accessor | | Flow bodies | Accessor reads occur in JSX/compute; callback bodies build structure | | DOM | Lowercase HTML attributes, string true/false states for ARIA/MathML, camelCase handlers, class arrays/objects, callback refs; use `dynamic`/`dynamicComponent` factories for new mounts | | Editable inputs | Keep editable text in an `onInput` draft or use an uncontrolled field; explicitly write back a rejected edit that leaves the signal unchanged | | SSR | Per-request user state; async data sources; lazy code holds shell, dynamic data follows boundary/options | | Server validation | Function directive: body validates; module directive: exported wrapper value is registered | | Transport | GET/withMeta for declarations, prepareRequest for session policy, invoke for per-call cancellation; POST alone does not request single-flight | React's rerender/dependency-array model and Solid 1.x's synchronous writes, single-callback effects, resource flags, and old import paths need semantic review. Check a suspicious identifier against the actual import and installed type before reporting it. A callback/accessor prop can be intentional; justify findings by its consumer contract. For v1 import/rename details, use the installed `solidjs-v2-migration` skill's map. For detailed semantics, use the installed `solidjs-v2` skill and its task router. If those companion skills are unavailable, verify against installed typings and upstream sources. This checklist remains usable when installed alone. ## Report Report only evidenced findings: severity, file/line, concrete failing behavior, and smallest correct change. Separate runtime failures from dev diagnostics and style choices. State which type/runtime checks ran and what remains unverified.
Reviews (0)
No reviews yet.
Comments
Sign in to join the conversation.
No comments yet. Start the conversation.