Security audit of a feature
Targeted OWASP-style review of one feature.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Library / Coding & Technology / API
Validated, authenticated mutation endpoint.
Create a [route handler / server action] that [mutation]. - Validate input with zod; return 400 with field errors on failure. - Verify the user session on the server and check they own the resource. - Return typed JSON (route handler) or a typed result object (server action). - Revalidate affected paths/tags after mutation, using the APIs documented for this Next.js version. - Add a test for success, validation error and unauthorised.
Copies your prompt and opens the official site in a new tab. You may need to paste it yourself (Ctrl/⌘ + V). Nothing is sent to the AI by us.
Replace [bracketed] parts with your own details before sending. Want it tailored? Build a custom website & app development prompt.
A typical one-line request compared with this prompt. We only show sample responses where we've written an illustration.
Prompt
api
1 words · no role, context, format or constraints
Prompt
Create a [route handler / server action] that [mutation]. - Validate input with zod; return 400 with field errors on failure. - Verify the user session on the server and check they own the resource. - Return typed JSON (route handler) or a typed result object (server action). - Revalidate affected paths/tags after mutation, using the APIs documented for this Next.js version. - Add a test for success, validation error and unauthorised.
72 words · generated instantly from templates, no AI called
What we added
Targeted OWASP-style review of one feature.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
New column/table with indexes, rollback and model updates.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1
Eager loading fixes with proof.
Agent task · Cursor / coding agents, Claude Code, ChatGPT +1