Searching the best prompts from our community
Discover the best AI prompts from our community
Design a high-performance blog using Astro 4 Content Collections. Structure: 1. Type-safe frontmatter with Zod schemas. 2. MDX support with custom components. 3. Tag-based filtering and pagination. 4. Reading time estimation. 5. Related posts recommendation. 6. RSS feed generation. 7. Table of conte...
Navigate executive assistants to reach decision makers. Mindset shift: EA is valuable ally, not obstacle. Respectful approaches: 1. Befriend EA: 'I'm trying to reach [Executive] about [specific topic]. Can you help me understand the best way to get on their calendar?' 2. Be specific: vague requests ...
Set fair, achievable, stretching quotas. Inputs: 1. Company revenue goal. 2. Number of reps. 3. Historical attainment (what % hit quota). 4. Market capacity (total addressable market, saturation). 5. Sales cycle length. 6. Average deal size. Bottom-up calculation: Company needs $10M revenue. Reps: 1...
Implement robust error handling in Remix. Patterns: 1. Route-level ErrorBoundary for unexpected errors. 2. useRouteError hook to access error details. 3. CatchBoundary for thrown responses (404, 401). 4. Nested error boundaries for granular recovery. 5. Custom error pages with helpful messages. 6. E...
Use personalized video to stand out. When to use video: 1. High-value accounts (worth the time). 2. Multiple failed touch attempts. 3. Complex value prop (better shown than written). 4. Re-engagement of cold leads. Video structure (60-90 seconds): 1. Personalized intro (10s): 'Hi [Name], I'm [You]. ...
Create comprehensive sales playbook for consistency. Sections: 1. ICP and Buyer Personas (who we sell to, pain points, motivations). 2. Value Propositions (core message, differentiation per persona). 3. Sales Process (stages, exit criteria, average time per stage). 4. Methodology (MEDDIC, Challenger...
Build reactive forms using Angular 17 signals. Implementation: 1. Signal-based form state management. 2. Computed validation rules with effect(). 3. Custom validators with async signals. 4. Real-time error messages. 5. Dirty/touched state tracking. 6. Form submission with loading states. 7. Field de...
Improve free trial conversion rates. Trial design: optimal length 14-30 days (long enough to see value, short enough to create urgency). Friction: minimal (credit card optional for PLG). Activation: define 'aha moment' (e.g., send first campaign, create first report). Drive to activation: Day 1: wel...
Develop account strategies for key customers. When: annually for top 20% revenue-generating accounts. Account plan components: 1. Executive Summary (current state, opportunity, goal). 2. Account Overview (org chart, decision makers, influencers, power dynamics). 3. Current Relationship (products use...
Leverage Solid.js's fine-grained reactivity for a metrics dashboard. Features: 1. createSignal for individual metrics. 2. createMemo for derived calculations. 3. createResource for async data fetching. 4. Live updates without virtual DOM overhead. 5. Multiple chart types (line, bar, pie). 6. Real-ti...
Build formal mentorship for skill development. Program structure: Pair senior reps (mentors) with new/struggling reps (mentees). Duration: 6 months. Commitment: 1 hour/week. Mentor selection: top performers, willingness to teach, communication skills. Matching: by skill gap (new rep with veteran), t...
Master voice techniques for phone sales. Tonality principles: 1. Vary pitch (avoid monotone, go up at questions, down at statements). 2. Enthusiasm (smile while talking, it changes voice). 3. Confidence (speak declaratively, not tentatively). 4. Match prospect (mirror their energy level). Pacing: sp...
Create a resumable PWA using Qwik's unique architecture. Requirements: 1. Instant interactivity with 0 hydration. 2. Service worker for offline capability. 3. Lazy-load components on interaction. 4. Streaming SSR with early hints. 5. Smart prefetching based on viewport. 6. App shell pattern for navi...
Leverage AI to augment sales efficiency. AI tool categories: 1. Conversation Intelligence (Gong, Chorus): call recording, transcription, coaching insights. 2. Email Writing (Lavender, Jasper): generate personalized emails at scale. 3. Prospecting (Clay, Apollo): enrich data, find lookalikes, trigger...
Design a flipped classroom module for a high school subject. Pre-class (at home): 1. Create 10-15 minute instructional video (e.g., using Loom, Screencastify) explaining core concepts. 2. Assign short reading or simulation. 3. Embed 3-5 quiz questions in the video to check for understanding. In-clas...
Architect a data fetching layer with Nuxt 3 composables. Structure: 1. useFetch with key-based caching. 2. useAsyncData for complex queries. 3. Custom composable useApiClient. 4. Global error handling middleware. 5. Loading states with useLoadingIndicator. 6. Optimistic updates pattern. 7. Request d...
Develop a 4-week Project-Based Learning (PBL) unit for middle school science. Driving Question: 'How can we, as student scientists, design a solution to reduce our school's carbon footprint?' Week 1: Entry event (documentary clip), research phase (causes of climate change). Week 2: Investigate local...
Create a differentiated lesson on fractions for a 4th-grade class. Tiered Activities: 1. Approaching-level group: use physical manipulatives (fraction bars) to find equivalent fractions. 2. On-level group: solve word problems involving adding fractions with like denominators. 3. Above-level group: c...
Develop a custom Vite 5 plugin for specialized workflow. Plugin features: 1. Transform hook for custom file types. 2. Virtual modules for config injection. 3. HMR API for hot updates. 4. Dev server middleware. 5. Build hooks for asset processing. 6. SSR transform handling. 7. Dependency pre-bundling...
Design a 4-level rubric to assess critical thinking in student essays. Criteria: 1. Identifies and summarizes the problem/question. 2. Considers and evaluates multiple perspectives/sources. 3. Analyzes assumptions and evidence. 4. Develops a well-reasoned conclusion or hypothesis. Levels: 4-Exemplar...
Integrate Classcraft to gamify vocabulary for a 7th-grade ELA class. Setup: 1. Create student accounts (Mages, Warriors, Healers). 2. Define game rules: earn XP (Experience Points) for correct vocabulary quiz answers, lose HP (Health Points) for off-task behavior. 3. Create 'quests' where students u...
Build a modular page builder using Gatsby 5 Slice API. Components: 1. Reusable slices for headers, footers, CTAs. 2. GraphQL queries for slice data. 3. Dynamic slice ordering via CMS. 4. Partial builds for changed slices only. 5. Preview mode for content editors. 6. A/B testing for slice variations....
Design an inquiry-based lab for biology students. Phenomenon: Show students a video of spinach leaf disks floating in a bicarbonate solution under light. Driving Question: 'What factors affect the rate of photosynthesis in spinach leaves?' Student-led investigation: 1. Students brainstorm variables ...
Outline a K-12 digital citizenship curriculum. Key Themes (by grade band): K-2 (Safety & Balance): online safety basics, screen time balance. 3-5 (Privacy & Communication): personal information, cyberbullying awareness, respectful online talk. 6-8 (Media Literacy & Digital Footprint): identifying fa...
Set up a Turborepo monorepo with shared components. Structure: 1. apps/ folder for Next.js and React apps. 2. packages/ui for shared component library. 3. packages/config for shared configs (ESLint, TS). 4. Parallel task execution with turbo run. 5. Remote caching for CI/CD speed. 6. Versioning with...
Facilitate a Socratic seminar for 'To Kill a Mockingbird'. Preparation: 1. Students read a specific section and prepare responses to open-ended questions (e.g., 'How does Harper Lee define courage?'). 2. Arrange classroom in a circle. Seminar Structure: 1. Set norms: listen actively, build on others...
Implement low-stakes formative assessments to guide instruction. 1. Exit Ticket: At end of lesson, ask students to answer 1-3 short questions on an index card (e.g., 'What was the most important concept today?' 'What question do you still have?'). Review before next class to identify misconceptions....
Implement progressive enhancement with htmx. Pattern: 1. Server-rendered HTML with hx-get attributes. 2. Partial page updates without full reload. 3. hx-trigger for various events (click, scroll, intersect). 4. hx-swap strategies (innerHTML, outerHTML, beforeend). 5. Loading indicators with hx-indic...
Design a VR lesson for a world history class using Google Expeditions or similar platform. Objective: Students will identify key architectural features of the Colosseum and Roman Forum. Pre-VR Activity (10 mins): Introduce key vocabulary (arch, aqueduct, forum) and provide historical context. VR Exp...
Implement trauma-informed strategies to create a safe learning environment. Core Principles: Safety, Trustworthiness, Choice, Collaboration, Empowerment. Classroom Practices: 1. Predictable routines: post a daily schedule, use consistent procedures. 2. Create a 'calm-down corner' with sensory tools ...
Create accessible dropdowns with Alpine.js. Features: 1. x-data for component state. 2. x-show with transitions for visibility. 3. x-on:click.outside to close dropdown. 4. Keyboard navigation (Arrow, Enter, Esc). 5. x-bind for dynamic classes. 6. Focus trap within dropdown. 7. ARIA attributes for sc...
Apply UDL principles to a lesson on the water cycle. 1. Multiple Means of Representation (the 'what'): Present information via text, video with captions, diagrams, and a hands-on model. 2. Multiple Means of Action & Expression (the 'how'): Allow students to demonstrate understanding by writing a par...
Establish a high school peer tutoring program. Phase 1 (Planning): 1. Identify need (e.g., high failure rates in Algebra 1). 2. Recruit tutors (B+ or higher, teacher recommendation). 3. Develop tutor training on communication, patience, and explaining concepts simply. Phase 2 (Implementation): 1. Ma...
Build a framework-agnostic design system with Lit. Components: 1. Custom elements with @customElement decorator. 2. Reactive properties with @property. 3. Shadow DOM for style encapsulation. 4. Slots for content projection. 5. CSS custom properties for theming. 6. Event dispatching with CustomEvent....
Use Scratch to teach storytelling in a 5th-grade ELA class. Project: 'Animate a Narrative'. 1. Introduction (1 hour): Teach Scratch basics (sprites, backdrops, motion blocks, say blocks). 2. Storyboarding (1 hour): Students plan a short story with a beginning, middle, and end on paper. 3. Coding (3 ...
Street photography shot of a futuristic cyberpunk Tokyo alleyway at night, neon rain reflecting on wet pavement, a cyborg street vendor cooking noodles, steam rising, vibrant teal and magenta lighting, cinematic lighting, shot on 35mm lens, f/1.8, high contrast, photorealistic, 8k --ar 16:9 --v 6.0 ...
Set up effective CI/CD pipeline. Stages: 1. Source (code commit triggers pipeline). 2. Build (compile, dependency installation). 3. Test (unit, integration, e2e tests). 4. Code Quality (linting, code coverage, SonarQube). 5. Security Scan (dependency vulnerabilities, SAST). 6. Deploy to Staging (aut...
Write effective code documentation. Levels: 1. Code comments (explain why, not what - complex logic only). 2. Function/method docs (parameters, return values, exceptions - JSDoc, docstrings). 3. README (setup, usage, examples). 4. API documentation (OpenAPI/Swagger for REST). 5. Architecture docs (s...
Design microservices architecture effectively. Principles: 1. Single Responsibility (one service, one business capability). 2. Decentralized Data (each service owns its database). 3. API Gateway (single entry point). 4. Service Discovery (Consul, Eureka). 5. Asynchronous Communication (message queue...
Apply design patterns to solve common problems. Creational: 1. Singleton (single instance). 2. Factory (object creation). 3. Builder (complex object construction). Structural: 4. Adapter (interface compatibility). 5. Decorator (add behavior dynamically). 6. Facade (simplified interface). Behavioral:...
Optimize application performance systematically. Techniques: 1. Profile first (identify bottlenecks with profiler). 2. Database optimization (indexes, query optimization, connection pooling). 3. Caching (Redis, Memcached, CDN). 4. Lazy loading (load data on demand). 5. Code-level optimization (effic...
Secure your applications against common vulnerabilities. OWASP Top 10: 1. Injection (SQL, NoSQL, OS commands - use parameterized queries). 2. Broken Authentication (implement MFA, secure password storage with bcrypt). 3. Sensitive Data Exposure (encrypt data at rest and in transit, HTTPS). 4. XML Ex...
Refactor code safely and effectively. Common refactorings: 1. Extract Method (long function → smaller functions). 2. Rename Variable (unclear → descriptive). 3. Extract Class (large class → multiple focused classes). 4. Inline Method (unnecessary abstraction). 5. Replace Magic Numbers with Constants...
Design efficient database schemas. Normalization forms: 1. 1NF (atomic values, no repeating groups). 2. 2NF (no partial dependencies). 3. 3NF (no transitive dependencies). Balance normalization with performance (denormalize for read-heavy). Design principles: Use surrogate keys (auto-increment IDs)....
Master Git for effective collaboration. Workflow: 1. Feature branches (git checkout -b feature/new-feature). 2. Commit often with clear messages (feat:, fix:, docs:). 3. Pull before push (git pull --rebase). 4. Code review via pull requests. 5. Squash commits before merge. 6. Delete merged branches....
Design clean RESTful APIs. Principles: 1. Use nouns for resources (/users, not /getUsers). 2. HTTP methods: GET (read), POST (create), PUT (update), DELETE (delete). 3. Proper status codes (200 OK, 201 Created, 400 Bad Request, 404 Not Found, 500 Server Error). 4. Versioning (/v1/users). 5. Filterin...
Write effective unit tests with TDD approach. TDD cycle: 1. Red (write failing test). 2. Green (write minimal code to pass). 3. Refactor (improve code while keeping tests green). Best practices: Test one thing per test. Use AAA pattern (Arrange, Act, Assert). Descriptive test names (should_returnTru...
Write maintainable code using SOLID principles. Principles: 1. Single Responsibility (class has one reason to change). 2. Open/Closed (open for extension, closed for modification). 3. Liskov Substitution (subclasses should be substitutable for base classes). 4. Interface Segregation (many specific i...
Debug efficiently with systematic approach. Process: 1. Reproduce the bug consistently. 2. Isolate the problem (binary search through code). 3. Form hypothesis about cause. 4. Test hypothesis (add logging, use debugger). 5. Fix the root cause, not symptoms. 6. Verify fix doesn't break other function...
Master common algorithm patterns for coding interviews. Patterns: 1. Two Pointers (sorted arrays, palindromes). 2. Sliding Window (subarray problems, max/min in window). 3. Fast & Slow Pointers (cycle detection in linked lists). 4. Merge Intervals (overlapping ranges). 5. Cyclic Sort (missing number...