Searching the best prompts from our community
Most saved prompts this week
Manage state simply with Zustand. Implementation: 1. create() store with actions. 2. Minimal boilerplate vs Redux. 3. No providers needed. 4. Middleware for persistence. 5. Devtools integration. 6. Slices pattern for large stores. 7. Immer for mutations. 8. TypeScript support. Use selectors to preve...
Design a systematic literature review following PRISMA guidelines. Protocol steps: 1. Define research question using PICO framework (Population, Intervention, Comparison, Outcome). 2. Develop search strategy: identify 3-5 databases (PubMed, Scopus, Web of Science), create Boolean search terms, set i...
Create reliable and valid survey instruments. Design process: 1. Literature review to identify existing validated scales. 2. Define constructs clearly, create item pool (3-5 items per construct). 3. Expert review panel (5-7 subject matter experts) for content validity. 4. Pilot testing with 30-50 pa...
Design robust RCT with appropriate statistical power. Study design: 1. Define primary outcome clearly (e.g., change in depression score). 2. Choose randomization method (simple, block, stratified). 3. Blinding strategy (single, double, triple-blind where possible). 4. Control group selection (placeb...
Design rigorous case study research following Yin's approach. Types: 1. Single case (critical, unique, revelatory). 2. Multiple case (literal replication, theoretical replication). Design elements: 1. Research questions: 'how' and 'why' questions best suited for case studies. 2. Propositions: theore...
Maximize internal validity through experimental control. Threats to internal validity (Campbell & Stanley): 1. History: external events during study. Control: randomization, brief study duration. 2. Maturation: natural changes over time. Control: control group, random assignment. 3. Testing: effects...
Implement charts quickly with Chart.js. Chart types: 1. Line charts for trends. 2. Bar charts for comparisons. 3. Pie/Doughnut for proportions. 4. Radar for multi-axis data. 5. Scatter for correlations. 6. Mixed chart types. 7. Responsive and accessible. 8. Plugin system for customization. Use react...
Conduct ethnographic fieldwork using systematic observation. Preparation: 1. Gain access through gatekeepers, obtain necessary permissions. 2. Build rapport gradually, explain researcher role and boundaries. 3. Develop observation protocol: what to observe, when, how to record. Data collection: 1. P...
Design appropriate sampling strategy and calculate required sample size. Sampling methods: 1. Probability sampling: simple random, systematic, stratified, cluster sampling. 2. Non-probability sampling: convenience, purposive, snowball, quota sampling. 3. Mixed methods: sequential explanatory require...
Design the UI for an AI-powered code generator. Elements: 1. Prompt input field with history and suggestions. 2. Preview window with mobile/desktop viewport toggle. 3. 'Code' tab with syntax highlighting. 4. Version history sidebar. 5. Modern glassmorphism effects and subtle radial gradients in the ...
Leverage digital technologies for innovative research approaches. Online surveys: 1. Platform selection: Qualtrics, SurveyMonkey, REDCap for secure data. 2. Mobile optimization: responsive design for smartphone completion. 3. Engagement features: progress bars, interactive elements, gamification. 4....
Build data-driven product roadmap using RICE scoring methodology. RICE = Reach × Impact × Confidence ÷ Effort. Reach: number of users affected per quarter (estimate based on analytics). Impact: revenue/engagement boost (3=massive, 2=high, 1=medium, 0.5=low). Confidence: certainty in estimates (100%=...
Systematically gather and analyze customer feedback for product insights. Collection channels: 1. In-app feedback widgets (Hotjar, UserVoice). 2. Post-interaction surveys (after support, purchase, feature use). 3. Regular customer interviews (monthly with different segments). 4. Feature request boar...
Debug LLM applications with LangSmith. Features: 1. Trace every LLM call. 2. View chain execution steps. 3. Latency and token analysis. 4. Error tracking and debugging. 5. Dataset creation from logs. 6. Evaluation and testing. 7. Feedback collection. 8. Cost monitoring. Essential for production LLM ...
Conduct thorough market research to validate product opportunities. Research methodology: 1. Primary research: direct customer interviews, surveys, focus groups. 2. Secondary research: industry reports, competitor analysis, market data. 3. Observational research: user behavior analytics, ethnographi...
Facilitate design thinking workshops using Stanford d.school 5-stage process. Stage 1 - Empathize (45 min): User interviews, empathy maps, persona creation. Use affinity mapping to cluster insights. Stage 2 - Define (30 min): Problem statement using 'How Might We' format. Point of view: '[User] need...
Apply color psychology principles for effective visual communication. Color associations: 1. Red: energy, urgency, passion (call-to-action buttons, sale notifications). 2. Blue: trust, stability, professionalism (finance, healthcare, tech). 3. Green: growth, nature, money (environmental brands, fina...
Design a comprehensive database backup strategy. Components: 1. Automated daily full backups. 2. Incremental backups every 6 hours. 3. Point-in-time recovery capability. 4. Offsite backup storage (S3 Glacier). 5. Encryption at rest and in transit. 6. Backup verification and integrity checks. 7. Docu...
Develop content marketing strategy. Framework: 1. Audience personas and pain points. 2. Content pillars for expertise. 3. Editorial calendar with consistency. 4. SEO-optimized blog posts. 5. Internal linking structure. 6. Content upgrades and lead magnets. 7. Repurposing across channels. 8. Performa...
Master visual composition using mathematical principles and design rules. Golden Ratio (1:1.618): 1. Golden rectangle: most pleasing proportional relationship. 2. Golden spiral: natural flow for eye movement through design. 3. Application: crop photos, position focal points, create balanced layouts....
Craft effective UX copy and microcopy that guides users and reduces friction. Microcopy audit: 1. Error messages: clear explanation of problem + actionable solution. 2. Button labels: specific action verbs (Download Report vs. Click Here). 3. Form instructions: contextual help, inline validation fee...
Manage creative project budgets effectively with strategic resource allocation and cost control. Budget breakdown structure: 1. Personnel costs (50-60%): creative director, designers, copywriters, project manager hourly rates. 2. Production costs (25-35%): photography, video production, illustration...
Present creative work persuasively using storytelling techniques that drive approval and buy-in. Presentation structure: 1. Context setting: restate brief, objectives, target audience (2 minutes). 2. Strategic foundation: creative approach rationale, insights that drove concept (3 minutes). 3. Creat...
Design a comprehensive user research interview protocol. Structure: 1. Introduction and rapport building (5 min). 2. Background questions (user context, current workflow). 3. Behavioral questions (tell me about a time...). 4. Pain point exploration (what frustrates you?). 5. Solution validation (pro...
Generate leads with webinars. Funnel structure: 1. Registration page with compelling promise. 2. Email sequence (reminders, prep content). 3. Live webinar with value delivery. 4. Pitch product/service naturally. 5. Q&A for objection handling. 6. Replay for registrants who missed. 7. Follow-up sequen...
Write compelling grant proposals that secure funding through systematic approach. Proposal components: 1. Executive summary (1-2 pages): project overview, funding request, expected impact. 2. Statement of need: problem definition with supporting data and statistics. 3. Project description: goals, ob...
Master academic writing with proper research methodology and citation practices. Paper structure: 1. Abstract: 150-300 words summarizing purpose, methods, results, conclusions. 2. Introduction: background, literature review, thesis statement, research questions. 3. Methodology: research design, data...
Translate complex scientific concepts for general audiences while maintaining accuracy. Science communication principles: 1. Plain language: replace jargon with everyday terms or explain technical vocabulary. 2. Analogy and metaphor: relate complex concepts to familiar experiences. 3. Narrative stru...
Optimize database performance with indexes. Strategies: 1. Index foreign keys. 2. Composite indexes for multi-column queries. 3. Covering indexes to avoid table lookups. 4. Partial indexes for filtered queries. 5. Monitor query plans (EXPLAIN). 6. Avoid over-indexing (write performance). 7. Index se...
Implement caching with Redis. Patterns: 1. Cache-aside (lazy loading). 2. Write-through (update cache on write). 3. Write-behind (async cache updates). 4. Cache invalidation strategies. 5. TTL for automatic expiration. 6. Key naming conventions. 7. Data structures (strings, hashes, lists, sets). 8. ...
Create a clickable prototype from wireframes to high-fidelity. Process: 1. Start with low-fidelity sketches (paper or Balsamiq). 2. Create mid-fidelity wireframes in Figma (structure, layout). 3. Add content and copy (real, not lorem ipsum). 4. Apply design system (colors, typography, components). 5...
Guide email preference updates. Instructions: 1. Provide link to preference center. 2. Explain different email categories (promotional, transactional, newsletters). 3. Allow granular control over frequency. 4. Offer digest options instead of unsubscribe. 5. Respect unsubscribe requests immediately. ...
Detect and prevent memory leaks. Techniques: 1. Use browser DevTools memory profiler. 2. Heap snapshots comparison. 3. Clear event listeners on cleanup. 4. Unsubscribe from observables. 5. Clear timers and intervals. 6. Weak references for caches. 7. Avoid global variables accumulation. 8. Monitor p...
Automate server configuration and application deployment using Ansible for consistent, repeatable infrastructure management. Ansible architecture: 1. Control node: Ansible installation, inventory management, playbook execution. 2. Managed nodes: SSH access, Python installation, no agent required. 3....
Implement secure container image management with vulnerability scanning, signing, and policy enforcement. Registry security: 1. Private registries: Harbor, AWS ECR, Google Container Registry with RBAC access control. 2. Image signing: Docker Content Trust, Notary for image authenticity verification....
Implement comprehensive backup and disaster recovery automation for business continuity and data protection. Backup strategies: 1. 3-2-1 rule: 3 copies of data, 2 different media types, 1 offsite location. 2. Recovery objectives: RTO (Recovery Time Objective) <4 hours, RPO (Recovery Point Objective)...
Design and implement multi-cloud architecture for vendor independence, geographic distribution, and improved reliability. Multi-cloud benefits: 1. Vendor independence: avoid lock-in, negotiate better pricing, access best-of-breed services. 2. Geographic coverage: global presence, data sovereignty co...
Calculate customer lifetime value. Formula: Average Order Value × Purchase Frequency × Customer Lifespan. Approaches: 1. Historical (actual data). 2. Predictive (cohort analysis). 3. Segment by customer type. 4. Factor in churn rate. 5. Include gross margin. 6. Discount future cash flows (NPV). 7. T...
Reduce customer churn. Strategies: 1. Identify at-risk customers (engagement signals). 2. Proactive outreach before churn. 3. Improve onboarding experience. 4. Regular customer success check-ins. 5. Feature adoption programs. 6. Win-back campaigns. 7. Cancel flow optimization (save offers). 8. Addre...
Conduct M&A due diligence. Checklist: 1. Financial (3+ years statements, audit). 2. Legal (contracts, litigation, IP). 3. Commercial (customers, retention, pipeline). 4. Technical (code quality, tech debt, security). 5. Team (org chart, key person risk). 6. Operations (scalability, dependencies). 7....
Code qualitative data systematically. Process: 1. Familiarize with data (read transcripts multiple times). 2. Generate initial codes (open coding, line-by-line). 3. Organize codes into categories (axial coding). 4. Identify themes and patterns (selective coding). 5. Create codebook with definitions ...
Barista-level rosetta latte art. Requirements: properly textured microfoam (glossy, no bubbles). Steps: 1. Pull espresso shot (18g in, 36g out, 27 seconds). 2. Steam milk to 140-150°F with tight microfoam. 3. Pour high and slow to fill cup 2/3. 4. Lower pitcher, increase flow rate. 5. Wiggle pitcher...
Traditional Greek moussaka assembly. Layer 1: Fried sliced eggplant (salted 30 min first). Layer 2: Meat sauce (ground lamb with cinnamon, tomato, red wine). Layer 3: Roasted potato slices. Layer 4: Béchamel sauce (butter, flour, milk, nutmeg, egg yolks). Bake: 350°F for 45 minutes until golden. Res...
Pack efficiently for any trip with minimalist approach. Strategy: 1. Choose versatile clothing (neutral colors, mix-and-match). 2. Roll clothes to save space and reduce wrinkles. 3. Use packing cubes for organization. 4. Wear bulkiest items on plane. 5. Limit shoes to 2-3 pairs. 6. Travel-size toile...
Craft a helpful out-of-stock response. Include: 1. Apologize for unavailability. 2. Explain reason (high demand, seasonal, discontinued). 3. Provide restock date if known. 4. Offer waitlist/notification signup. 5. Suggest similar products with comparison. 6. Highlight benefits of alternatives. 7. Of...
Monetize food blog effectively. Revenue streams: 1. Display ads (Mediavine, AdThrive at 50k sessions). 2. Affiliate links (Amazon Associates, brand partnerships). 3. Sponsored posts ($500-5000 depending on traffic). 4. Digital products (meal plans, ebooks). 5. Online courses (recipe development). Gr...
Request customer feedback effectively. Message should: 1. Thank them for being a customer. 2. Explain why feedback matters. 3. Estimate time to complete (keep it short). 4. Assure anonymity if applicable. 5. Highlight how feedback drives improvements. 6. Offer incentive if appropriate (discount, ent...
Master SPIN methodology for complex B2B sales. Structure: Situation Questions (5 mins): understand current setup, tech stack, team size. Problem Questions (10 mins): uncover pain points, bottlenecks, missed opportunities. Implication Questions (5 mins): quantify impact of unsolved problems, budget i...
Handle accessibility requests. Response: 1. Thank them for bringing it to attention. 2. Ask about specific needs. 3. Explain current accessibility features. 4. Provide alternative access methods. 5. Offer personalized assistance. 6. Commit to improvements where needed. 7. Provide direct contact for ...
Handle data privacy requests. Process: 1. Acknowledge request within required timeframe. 2. Verify customer identity securely. 3. Explain what data you hold. 4. Provide data export in readable format. 5. Process deletion requests per policy. 6. Confirm completion of request. 7. Explain data retentio...