Skip to content

Coding & Development prompts

Code generation, debugging and documentation

127 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

Write a [Python / Node.js] script to transform data. Input format and sample: [paste] Desired output format and sample: [paste] Rules: [renames, filters, calculations, date formats] The script should read from a file, handle missing or malformed values, log problems, write the output file, and be easy to rerun. Includ…

ChatGPT
Coding & Development

Data transformation script

Convert, clean and reshape data between JSON, CSV and other formats with a reusable script.

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 test automation engineer. App: [URL/type] Critical user journeys: [e.g. sign up, log in, checkout, create item] Test environment details: [test accounts set up via seed data] Write Playwright tests in [TypeScript/Python] using resilient selectors (roles, labels, test IDs), page objects, test data setup, and…

Claude
Coding & Development

End-to-end tests with Playwright

Write reliable browser tests for your most important user journeys.

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 senior engineer onboarding me to a codebase. Project description: [what it does] Folder structure: [paste tree] Key files (paste the most important ones): [paste] Explain: the overall architecture, how a typical request/action flows through the code, the role of each main folder, important patterns and conve…

Claude
Coding & Development

Understand an unfamiliar codebase

Get oriented in a new repository: architecture, key files, data flow and where to start.

0

Act as a backend developer. Framework/tool: [Laravel, Django, Rails, Prisma, Alembic, raw SQL] Database: [PostgreSQL/MySQL] Change needed: [e.g. add column, rename table, split a field] Table size: [rows] Write the up and down migration, any data backfill, how to deploy it safely without downtime (e.g. expand-and-cont…

ChatGPT
Coding & Development

Write a database migration

Create safe, reversible migrations for schema changes, including data backfills.

0

Act as a Git expert helping a [beginner / intermediate] developer. My situation: [e.g. I committed to main instead of a feature branch / I need to undo my last push / merge conflict in two files] Output of git status: ``` [paste] ``` Have I pushed? [yes / no] Working alone or in a team? [alone / team] Give me: 1. What…

ChatGPT
Coding & Development

Git command helper

Describe your Git situation in plain words, from undoing a commit to fixing a merge, and get the safe commands to resolve it.

0

Act as a data analyst using Python and pandas. Data: [file type and columns with example values] Questions I want answered: [list] Issues I know about: [missing values, inconsistent formats] Write a script or notebook steps to: 1. Load and inspect the data 2. Clean it (types, missing values, duplicates, outliers) 3. A…

ChatGPT
Coding & Development

Data analysis with pandas

Load, clean, analyse and chart your data with pandas, with explanations for each step.

0

Act as a coding mentor. What I want to learn: [language/framework] My experience: [none / other languages] Goal: [job, side project, data analysis, game dev] Time: [hours per week] Create a 12-week roadmap: weekly topics, key concepts, one small project per week, free resources to look for (types, not specific links i…

Gemini
Coding & Development

Roadmap to learn a programming language

A structured, project-based learning path for any language or framework, matched to your goals and available time.

0

You are a senior engineer conducting a system design interview. System: [e.g. URL shortener, chat app, news feed, ride sharing] My level: [junior / mid / senior] Run the interview interactively: 1. Ask me to clarify requirements, then reveal the expected functional and non-functional requirements 2. Let me propose a h…

Claude
Coding & Development

System design interview practice

Practise system design questions with a guided walkthrough of requirements, architecture, scaling and trade-offs.

0