Review three.js code
three_reviewReview three.js code against the installed release to score it and flag removed APIs, nonexistent symbols, blank renders, per-frame allocations, and resize/dispose issues before saving.
Instructions
Scored static review (0-100) of the three.js code, pinned to the installed release: removed or renamed APIs, symbols that do not exist, code that renders nothing (no lights, shadows off, renderer not attached, never rendered), per-frame allocations, resize and dispose, colour management. One line per finding, file:line severity [rule] message Fix: ..., and the same as JSON. code + file reviews code before you save it. only_new: true in a fix loop: new findings in full, the ones you saw as a short line, and how many are fixed. files lists only findings in those files. Run it after every change and fix the errors first. It writes only its memory for only_new (.threesmith/review-last.json).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "three_review"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | unsaved source to review in place of `file` on disk | |
| file | No | path (relative to path) that `code` belongs to; required with code | |
| path | No | Project folder, or a file or folder in it (relative to the server's folder; default: the project). | |
| files | No | only show findings in these files (relative paths) | |
| limit | No | ||
| three | No | Path to a three package folder, when it is not in node_modules above the project. | |
| detail | No | brief (capped, short) or full (everything); default brief | |
| target | No | same as path (older name) | |
| disable | No | rule ids to skip | |
| only_new | No | show only what changed since the last review (saves tokens in a fix loop) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| grade | Yes | ||
| score | Yes | ||
| three | Yes | ||
| errors | Yes | ||
| findings | Yes | ||
| warnings | Yes | ||
| truncated | Yes | ||
| categories | Yes |