Coding & Development / Code Review
Review Function
/ReviewFunctionTry it in
When to reach for this
Writing, reviewing and debugging code in plain language.
- First drafts of a function, class or script
- Reading an error message and working out the actual cause
- Reviewing a diff, a design doc or a pull request
- Area
- Code Review
- Effort
- No blanks to fill
- Difficulty
- medium
- Niche
- 7 commands here
Closest commands in the same niche
Fresh and trending
Ordered by the catalogue's own addedAt and popularity fields — not by live traffic, which SlashAI never sees. Some addedAt values in the source data sit in the future, so treat “newest” as newest-in-catalogue rather than as a verified publication date.
Hashtags
What it does
Review for bugs, edge cases and readability a function — e.g. a 40-line `parseInvoice(buffer)` helper in TypeScript.
How to use
Paste the diff or file and name the language plus the risk you care about most. Works on a function (a 40-line `parseInvoice(buffer)` helper in TypeScript); the reply is an ordered list of findings with severity and a concrete fix for each.
Example
/ReviewFunction Source: a 40-line `parseInvoice(buffer)` helper in TypeScript Requirements: Paste the diff or file and name the language plus the risk you care about most. Deliverable: an ordered list of findings with severity and a concrete fix for each
Run it in
Paste the command, then attach the file or text on the same message - it handles mixed input well.
How did this land?
Only you see this — stored on this devicePaste this command into your AI tool, then come back and say how it went. Your answer stays in this browser — SlashAI has no server and no account, so there is nothing to send it to and nobody who would read it.
You might also like
/ReviewApi
Review for bugs, edge cases and readability an API endpoint — e.g. a `POST /api/orders` Express handler with Stripe integration.
/ReviewConfig
Review for bugs, edge cases and readability a config file — e.g. a `docker-compose.yml` running Postgres.
/ReviewQuery
Review for bugs, edge cases and readability a database query — e.g. a 30-line PostgreSQL query joining orders.
/ReviewComponent
Review for bugs, edge cases and readability a UI component — e.g. a React `<PricingTable />` component with three tier props.