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.
Results for “aria”
48 prompts
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.
Review this React component for accessibility issues: semantic elements, labels, keyboard navigation, focus management, ARIA usage, color contrast notes and screen reader announcements. Return a fixed version with comments. Component: [paste code]
Web accessibility fixes in React
Fixes common accessibility problems in React components.
Show how to add Stripe Checkout to a [framework] app for [product type: one-time / subscription]. Include server code to create a session, redirect handling, a webhook endpoint that verifies signatures and fulfils orders, and test-mode steps. Use environment variables for keys.
Add a dark mode toggle to my site built with [stack]. Use CSS variables, respect prefers-color-scheme by default, remember the user's choice, avoid a flash of the wrong theme on load, and keep it accessible.
Write 5 Pinterest ad variations for [product] targeting people planning [occasion/project]. Each with a keyword-rich title under 100 characters, a description under 500 characters, and an idea for the pin image or video.
Write 15 headline and subheadline pairs for a landing page selling [product] to [audience]. Use different angles: outcome, pain, speed, social proof, curiosity, comparison and specificity. Mark the 3 you'd test first and why.
Write 30 slogan options for a [campaign/product] targeting [audience]. Group them by style: benefit-led, emotional, witty/punny, bold and short (3 words max), and question-based. Mark your top 5 with a reason.
Slogan variations for a campaign
Dozens of slogan options in different styles for testing.
Create a social listening keyword list for [brand] in [industry]. Include brand name variations and misspellings, product names, competitor names, industry pain-point phrases, buying-intent phrases and hashtags. Explain what to do when each type is mentioned.
Write 15 standalone X posts on [topic] for [audience]. Mix formats: contrarian takes, mini how-tos, lists, lessons learned and one-line observations. Each under 280 characters, no hashtags, written in a confident, conversational voice.
Write 3 Facebook ad variations for [business] in [city] promoting [offer]. Each needs a primary text (hook, benefit, social proof, urgency), a headline under 40 characters and a description. Use different angles: problem-solution, testimonial-style and limited-time offer.
Facebook ad copy for local businesses
Scroll-stopping Facebook ad variations for a local offer.
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.
Better names for variables and functions
Get clearer, more descriptive names for confusing variables, functions and classes.