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.
Results for “data”
55 prompts
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.
Review and rewrite this page's HTML for SEO and accessibility: semantic elements, heading order, meta title and description, Open Graph tags, canonical link, structured data for [type], and image alt text. HTML: [paste HTML]
SEO-friendly HTML structure
Semantic HTML and meta tags that help search engines.
Explain [data structure, e.g. a hash map / heap / trie] for a [level] developer. Include a text diagram, how operations work with time complexity, a clean implementation in [language], and when to use it in real projects.
Data structure explanation with code
Explains a data structure with visuals and an implementation.
Implement [infinite scroll / cursor pagination] for a list of [items] in [framework] calling [API]. Handle loading and error states, avoid duplicate requests, preserve scroll position, and include the backend query for cursor pagination.
Outline a quarterly business review presentation for [client]. Include goals recap, results with metrics [data], wins, challenges and how we addressed them, insights and recommendations, next-quarter plan, and asks from the client.
Quarterly business review deck
A client QBR outline that shows value and plans next steps.
Review this Google Ads search terms report for a campaign selling [product]. Identify irrelevant terms to add as negatives, high-performing terms to add as exact match keywords, and themes for new ad groups. Present as tables. Report: [paste data]
Google Ads search terms review
Finds wasted spend and new keywords from a search terms report.
Estimate TAM, SAM and SOM for [product] in [market/region]. Use a bottom-up approach, state every assumption clearly, show the math, give a range rather than one number, and list which assumptions I should verify with real data.
Create a checklist to make [website/brand] more likely to be cited by AI search tools and chat assistants. Cover clear entity information, structured data, concise answer-first content, original data, authoritative mentions, FAQ formatting and freshness. Prioritise actions for a small team.
AI search optimisation (GEO) checklist
Helps your content appear in AI search answers and chatbots.
Teach me [statistics concept, e.g. standard deviation / hypothesis testing] using a small realistic dataset about [topic I care about]. Show the data, calculate step by step, explain what the result means in plain English, and give me a similar dataset to try.
Learn statistics with real data
Learn stats concepts using a dataset you care about.
Help me write a lab report for an experiment on [topic]. Aim: [aim]. Method: [brief steps]. Results: [data]. Write it with sections for Title, Abstract, Introduction, Method, Results (with a suggested table/graph), Discussion (explain trends, sources of error, improvements) and Conclusion. Use formal scientific langua…
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…
SQL for retention and cohort analysis
Write analytics SQL for cohort retention, funnels and active users.