Write a Playwright script in [language] that [task, e.g. logs into a test site, fills a form and downloads a report]. Use robust selectors, waits instead of sleeps, screenshots on failure, and credentials from environment variables.
ChatGPT prompts
931 prompts
Create a backup and restore plan for a [database] used by [app]. Include backup frequency, retention, off-site storage, encryption, an automated backup script, a restore test procedure, and monitoring for failed backups.
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.
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.