Skip to content

Results for “validation”

21 prompts

Generate TypeScript types from this JSON. JSON sample(s): ```json [paste] ``` Create interfaces with sensible names, mark optional and nullable fields, use union types for known string values, and also create a Zod schema for runtime validation. Note any fields where the sample is ambiguous.

ChatGPT
Coding & Development

TypeScript types from JSON

Generate accurate TypeScript interfaces and validation schemas from sample JSON.

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

Act as a QA-minded backend engineer. Framework and test tool: [e.g. Jest + Supertest, pytest + httpx, PHPUnit] Endpoints: [list with expected behaviour] Auth: [method] Database setup: [test DB, fixtures] Write integration tests covering success cases, validation errors, auth failures and not-found cases, with setup/te…

ChatGPT
Coding & Development

Integration tests for an API

Test your API endpoints end to end, including the database, auth and error responses.

0

You are a startup coach who believes in testing before building. Idea: [description] Target customer: [who] Assumptions: [what must be true] Help me: list the riskiest assumptions, design 5 cheap validation experiments (interviews, landing page, pre-sales, concierge MVP), define success criteria for each, write 10 cus…

Claude
Business & Productivity

Validate a startup idea

Test whether people want your idea before you build it, with cheap experiments and clear success criteria.

0

Act as a senior mobile developer. Framework: [React Native with Expo / Flutter] Screen: [e.g. login, product list, profile, settings] Features: [list] Data: [static / API endpoint] Design style: [minimal, iOS-like, Material] Write the screen with: - Clean component structure - Loading, error and empty states - Form va…

ChatGPT
Coding & Development

Mobile app screen in React Native or Flutter

Generate a polished mobile screen with navigation, state and platform-friendly UI.

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

Act as a regular expression expert. Regex flavour: [JavaScript / Python / PHP (PCRE) / Java / .NET] What I need to match: [describe, e.g. UK postcodes, dates in DD/MM/YYYY, URLs without query strings] Should match: [examples] Should NOT match: [examples] Please give: 1. The regex 2. A token-by-token explanation in pla…

ChatGPT
Coding & Development

Regex generator with plain-English explanation

Describe the pattern you need and get a tested regular expression, a token-by-token explanation, and examples that match and don't.

0