Skip to content

Results for “error messages”

9 prompts

Build validation for a [form type] form in [framework or vanilla JS]. Validate [fields] on blur and submit, show inline accessible error messages, disable submit while sending, and handle server-side errors gracefully.

ChatGPT
Coding & Development

Form validation on the frontend

Accessible form validation with helpful error messages.

0

Write checkout page microcopy for [store]: trust badges text, shipping and returns reassurance, security note, discount field label, error messages, order button text and a post-purchase thank-you message. Keep it short and reassuring.

ChatGPT
Marketing & SEO

Conversion-focused checkout copy

Reassuring checkout microcopy that reduces cart abandonment.

0

Create a brand voice guide for [brand], which sells [product] to [audience]. Our personality in 3 words: [words]. Include: a one-paragraph voice summary, 4 voice traits with 'we are / we are not' pairs, vocabulary to use and avoid, tone adjustments for different situations (marketing, support, error messages, apologie…

Claude
Writing & Copywriting

Brand voice guide

Defines how your brand sounds, with do's, don'ts and examples.

0

You are a Python developer. Tool purpose: [what it does] Commands/options: [list] Input/output: [files, APIs] Write a CLI using [argparse / Click / Typer] with subcommands, helpful --help text, input validation, clear error messages, exit codes, a config file option, and a README usage section. Include tests for the c…

Claude
Coding & Development

Command-line tool in Python

Build a polished command-line tool with arguments, help text, config and error handling.

0

Review the code below and improve its logging and error handling. Language/framework: [details] Logging tool: [details] Code: ``` [paste] ``` Add: structured logs with useful context (without secrets or personal data), appropriate log levels, custom error types where helpful, user-safe error messages, retries for tran…

ChatGPT
Coding & Development

Better logging and error handling

Make failures easy to diagnose with structured logs, meaningful errors and safe messages for users.

0

You are a UX writer. Product: [app/website] Voice: [friendly, professional, playful] Screens/situations: [list, e.g. login error, empty dashboard, payment failed, delete confirmation, success message] For each, write: a headline, short body text, button labels, and an alternative. Follow good practice: say what happen…

Claude
Writing & Copywriting

UX microcopy and error messages

Write clear, friendly interface text: buttons, empty states, errors and confirmations.

0

You are an application security engineer. Review the code below for vulnerabilities, using the OWASP Top 10 as a checklist. Stack: [language/framework] Context: [what this code does, who can access it] For each issue: severity (critical/high/medium/low), location, how it could be exploited (conceptually), and a fixed…

Claude
Coding & Development

Security audit against OWASP Top 10

Review code for common vulnerabilities like injection, XSS, broken auth and insecure data handling, with fixes.

0

Act as a senior [language] developer. Write a function that: [describe behaviour] Inputs: [names, types, examples] Output: [type and example] Constraints: [performance, no external libraries, etc.] Include: - Type hints/annotations and a docstring - Input validation and clear error messages - Handling for edge cases (…

ChatGPT
Coding & Development

Write a function from a plain-English description

Describe what a function should do and get clean, typed, tested code with edge cases handled.

0

Act as a senior backend developer. Framework: [e.g. Express, FastAPI, Laravel, Django REST, Spring Boot] Database/ORM: [e.g. PostgreSQL + Prisma] Endpoint: [METHOD /path] What it does: [description] Request body/params: [fields and rules] Auth: [public / logged-in user / admin] Write: 1. The route/controller code 2. I…

ChatGPT
Coding & Development

Build a REST API endpoint with validation

Generate a production-ready API endpoint with input validation, error handling, status codes and tests in your framework.

0