Skip to content

Coding & Development AI prompts

Code generation, debugging and documentation

127 prompts

Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.

ChatGPT
Coding & Development

Python FastAPI endpoint

A typed FastAPI endpoint with validation and error handling.

I want to build [app idea] for [users]. Suggest a simple tech stack for a solo developer, the core MVP features, a data model, main pages/screens, API endpoints, auth approach, hosting, and a 4-week build plan. Flag what to leave out of the MVP.

Claude
Coding & Development

Full-stack app plan from an idea

Turns an app idea into an MVP plan with stack, data model and milestones.

Be my patient pair-programming partner. Project I want to build: [description] Language and my level: [details] Rules: break the project into small steps; for each step explain the goal, give hints, and let me write the code first; review my code with specific feedback; only show the solution if I ask or I'm stuck aft…

Claude
Coding & Development

Pair programming tutor

Learn by building: an AI pair programmer that guides you step by step instead of writing everything.

Suggest better names in this code. Language and naming conventions: [details] ``` [paste] ``` For each unclear name, give 2–3 alternatives and explain why they're clearer. Then show the code with the best names applied. Don't change behaviour.

ChatGPT
Coding & Development

Better names for variables and functions

Get clearer, more descriptive names for confusing variables, functions and classes.

You are an engineer who builds production AI features. Feature idea: [e.g. summarise support tickets, auto-tag products] Stack: [details] Data involved: [types, sensitivity] Design: the prompt and system instructions, input/output format (JSON schema), handling of errors and timeouts, cost and latency considerations,…

Claude
Coding & Development

Add an LLM-powered feature to your app

Plan and build an AI feature, such as summarising, classifying or a chat assistant, with good prompts and guardrails.

You are a machine learning engineer. Problem: [classification / regression] Data: [columns, target, size] Goal: [what decision the model supports] Write a scikit-learn pipeline: data loading, cleaning, feature engineering, train/test split, a baseline model and a stronger model, cross-validation, appropriate metrics,…

Claude
Coding & Development

Machine learning model starter

Build a baseline ML model with proper train/test split, evaluation and next steps.

Act as a data analyst. Database: [PostgreSQL / BigQuery / Snowflake / MySQL] Tables: [users(id, created_at), events(user_id, event_name, created_at), orders(...)] Questions: [monthly cohort retention, weekly active users, sign-up to purchase funnel] Write the queries with CTEs and comments, explain each step, and desc…

ChatGPT
Coding & Development

SQL for retention and cohort analysis

Write analytics SQL for cohort retention, funnels and active users.

You are a bot developer. Platform: [Discord / Telegram] Language: [Python / JavaScript] Features: [commands, welcome messages, reminders, polls, moderation] Write the bot with a clear structure, command handlers, permission checks, error handling, and environment variables for the token (names only). Include setup ste…

Claude
Coding & Development

Discord or Telegram bot

Build a simple community bot with commands, moderation helpers or notifications.

Act as a Google Workspace automation developer. What I want to automate: [e.g. email a summary of new form responses every morning] Sheets/Docs/Calendar involved: [details] Write an Apps Script with comments, a trigger setup (time-driven or on edit), error handling, and step-by-step setup instructions including author…

ChatGPT
Coding & Development

Google Apps Script automation

Automate Google Sheets, Gmail, Calendar and Docs with Apps Script.

Act as an Excel automation expert. Task to automate: [describe step by step] Workbook layout: [sheets, columns] Excel version: [version] Write a VBA macro with comments, error handling, and a confirmation message. Explain how to add it to the workbook, run it, and save as .xlsm. Suggest testing on a copy of the file f…

ChatGPT
Coding & Development

Excel VBA macro

Automate repetitive Excel tasks with a commented VBA macro and instructions to run it safely.

You are a performance-focused backend engineer. App and slow parts: [details] Data freshness requirements: [details] Stack: [details] Recommend what to cache and where (HTTP, application, database query), cache keys, TTLs, invalidation strategy, cache-aside vs write-through, protecting against cache stampedes, and cod…

Claude
Coding & Development

Caching strategy with Redis

Speed up your app with the right caching approach and avoid stale-data bugs.

Act as a backend engineer. Stack: [details] Endpoints to protect: [list] Limits wanted: [e.g. 100 requests/minute per API key, 5 login attempts per 15 minutes per IP] Infrastructure: [single server / multiple instances / Redis available] Implement rate limiting (explain fixed window vs sliding window vs token bucket),…

ChatGPT
Coding & Development

API rate limiting

Protect your API from abuse with rate limits per user, IP or API key.