Skip to content

Coding & Development prompts

Code generation, debugging and documentation

127 prompts

Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.

ChatGPT
Coding & Development

React custom hook

A reusable custom hook with clean state management.

0

My [framework] app has these needs: [describe shared state, server data, forms]. Recommend a state management approach (e.g. built-in state, Context, Zustand, Redux Toolkit, React Query), explain why, and show the setup with one example feature.

ChatGPT
Coding & Development

State management setup

Chooses and sets up state management for a frontend app.

0

Write a pandas script to clean this CSV: [describe columns and problems, e.g. mixed date formats, duplicates, missing values, inconsistent names]. Log each cleaning step, keep a summary of rows changed, and save a clean file.

ChatGPT
Coding & Development

Python data cleaning script

Cleans messy CSV data into an analysis-ready table.

0

Write Python code using [matplotlib/plotly] to visualise [data description] as [chart type]. Add a clear title, labelled axes, readable fonts, sensible colors, annotations for key points, and save as PNG.

ChatGPT
Coding & Development

Chart from data with Python

Readable, well-labelled charts from your data.

0

My page breaks on mobile: [describe problem, e.g. horizontal scroll, overlapping elements]. Here's the HTML/CSS: [paste]. Find the cause, fix it with mobile-first CSS, and explain how to test on different screen sizes.

ChatGPT
Coding & Development

Mobile responsive bug fixes

Fixes layouts that break on small screens.

0

Write a WordPress plugin that [feature, e.g. adds a custom post type with a shortcode]. Follow WordPress coding standards, sanitise inputs, escape outputs, use nonces for forms, and include activation/deactivation hooks.

ChatGPT
Coding & Development

WordPress custom plugin

A small, secure WordPress plugin for a custom feature.

0

Create a Shopify Online Store 2.0 section in Liquid for [feature, e.g. a featured collection slider with badges]. Include schema settings so merchants can customise text, colors and blocks, responsive CSS, and accessibility.

ChatGPT
Coding & Development

Shopify Liquid section

A customisable Shopify theme section.

0

Set up a [Supabase/Firebase] backend for [app]. Include the data model, authentication, row-level security or security rules so users only access their own data, example queries from the client, and storage for user uploads.

ChatGPT
Coding & Development

Firebase or Supabase backend setup

Sets up auth, database and security rules for a small app.

0

Create a code review checklist for a team working in [stack]. Cover correctness, readability, tests, security, performance, error handling, logging, documentation and style. Add tips for giving kind, actionable review comments.

ChatGPT
Coding & Development

Code review checklist for a team

A practical checklist for consistent code reviews.

0

Build a minimal web chatbot in [stack] that calls the [AI provider] API. Include a chat UI, conversation history, a system prompt for [use case], streaming responses, API key stored in environment variables, and basic rate limiting.

ChatGPT
Coding & Development

Build a simple AI chatbot with an API

A minimal chatbot app that calls an AI model API.

0

Outline and code a simple RAG prototype in Python that answers questions from [documents]. Cover loading and chunking documents, creating embeddings, storing them in [vector store], retrieving relevant chunks, building the prompt, and citing sources in answers.

Claude
Coding & Development

Retrieval-augmented generation (RAG) prototype

Answers questions from your own documents using embeddings.

0

Write a system prompt and code in [language] that makes an LLM extract [fields] from [input type] as valid JSON matching this schema: [schema]. Include validation, a retry if parsing fails, and handling for missing data.

ChatGPT
Coding & Development

Prompt for structured JSON output from an LLM

Reliably gets valid JSON from an AI model in your app.

0