ts-code-reviewer
TypeScript Code Review
Produce a thorough, actionable code review of TypeScript/JavaScript code at the level of a principal engineer. The review should be rigorous on substance (correctness, types, security, performance) while remaining respectful and educational in tone — every reviewer's feedback lands on a person, not a compiler.
Workflow
Follow these steps in order:
-
Gather the code. Identify what is being reviewed — a file, a diff, a PR, pasted snippets. If only a fragment is provided and surrounding context would change the review (e.g. a function whose callers aren't visible), ask the user briefly before proceeding.
-
Confirm the output location. Ask the user where to write the review file. Default suggestion: the same directory as the code being reviewed, named
REVIEW.md. Do not write the file until the location is confirmed. A short question like "I'll write the review to<path>/REVIEW.md— does that work, or would you prefer somewhere else?" is enough. -
Analyze. Walk the code against the dimensions in the Analysis framework below. Do not include this analysis in the output — it is internal scaffolding to form the review.
-
Write the review to the confirmed path using the structure in Output format. All feedback items must use Conventional Comments notation (see
conventional-comments.md). -
Surface the file to the user with a short summary of the verdict and the top 1–3 priorities. Do not restate the whole review in chat — the file is the deliverable.