Review frontend code (.tsx, .ts, .js files) for quality, performance, and correctness against Langflow's frontend conventions. Supports pending-change reviews and file-targeted reviews.
Use this skill whenever the user asks to review, analyze, or improve frontend code (.tsx, .ts, .js files) under the src/frontend/ directory. Supports the following review modes:
Do NOT use this skill when:
.py files under src/backend/).src/frontend/ (unless the user explicitly asks to review frontend-related changes elsewhere).Follow these steps when using this skill:
Notes when using this skill:
File:Line references when a file path and line numbers are available; otherwise, use the most specific identifier you can.Check for:
Check for:
Check for:
data, result, temp), missing verb prefixes on functions, missing is/has/can/should prefixes on booleansany, no as any casts)const or immutable alternatives existconsole.log in production code (Biome flags this)Check for:
For pending-change reviews, verify:
npm run format (Biome formatter) — zero diffsnpm run lint (Biome linter) — zero errorsnpm test (Jest) — zero failuresWhen this skill is invoked, the response must exactly follow one of the two templates:
# Code Review
Found <N> urgent issues that need to be fixed:
## 1. <brief description of issue>
FilePath: <path> line <line>
<relevant code snippet or pointer>
### Suggested fix
<brief description of suggested fix with code example>
---
... (repeat for each urgent issue) ...
Found <M> suggestions for improvement:
## 1. <brief description of suggestion>
FilePath: <path> line <line>
<relevant code snippet or pointer>
### Suggested fix
<brief description of suggested fix with code example>
---
... (repeat for each suggestion) ...
## Code Review
No issues found.