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.
Coding & Development prompts
Code generation, debugging and documentation
127 prompts
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.
State management setup
Chooses and sets up state management for a frontend app.
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.
Python data cleaning script
Cleans messy CSV data into an analysis-ready table.
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.
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.
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.
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.
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.
Firebase or Supabase backend setup
Sets up auth, database and security rules for a small app.
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.
Code review checklist for a team
A practical checklist for consistent code reviews.
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.
Build a simple AI chatbot with an API
A minimal chatbot app that calls an AI model API.
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.
Retrieval-augmented generation (RAG) prototype
Answers questions from your own documents using embeddings.
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.
Prompt for structured JSON output from an LLM
Reliably gets valid JSON from an AI model in your app.