Replit Agent Prompts
Master full-stack development, API design, database architecture, and debugging with expertly crafted Replit Agent prompts. Build production-ready applications with AI-assisted coding that understands your entire project context.
Full-Stack Development Prompts
Build complete applications from database to frontend with AI assistance. These prompts guide Replit Agent through full-stack architecture decisions, framework selection, and implementation of complex multi-tier systems.
Build a complete task management application with a Node.js Express backend, React frontend with TypeScript, PostgreSQL database, and JWT authentication. Include user registration, task CRUD operations, task filtering by status, due dates, and priority levels. Implement real-time updates using WebSocket connections. Add error handling, input validation on both frontend and backend, password hashing, and CORS security. Structure the project with separate client and server folders, environment-based configuration, and database migrations.
Create a full-stack e-commerce platform with Next.js for the frontend, a Node.js/Express API backend, MongoDB for product and user data, and Stripe integration for payments. Build product listing pages with filtering and search, user authentication with email verification, shopping cart functionality, order management, and admin dashboard for inventory. Include responsive Tailwind CSS styling, form validation, error boundaries in React, rate limiting on API endpoints, and comprehensive error handling throughout.
Develop a collaborative note-taking application using React for the UI, Node.js/Express backend, PostgreSQL for data persistence, and Socket.io for real-time collaboration. Implement user authentication, notebook creation and sharing, rich text editing with formatting support, real-time synchronization across multiple users, permission levels (view, edit, admin), undo/redo functionality, and automatic conflict resolution for concurrent edits. Add markdown support and export to PDF feature.
API Development Prompts
Design and implement scalable APIs with proper authentication, validation, and error handling. These prompts help you create RESTful and GraphQL APIs that integrate seamlessly with your application ecosystem.
Design and implement a RESTful API for a weather application using Node.js/Express that fetches real-time data from OpenWeatherMap API, caches responses using Redis for 30 minutes, implements rate limiting of 100 requests per hour per IP, includes comprehensive error handling with specific HTTP status codes, validates input parameters, and returns structured JSON responses. Add request logging, request ID tracking for debugging, pagination support for historical data, and API documentation using Swagger/OpenAPI specifications.
Build a GraphQL API using Apollo Server that manages a social networking platform. Include queries for fetching user profiles, posts, comments, and followers. Implement mutations for creating posts, adding comments, following users, and updating profiles. Add authentication using JWT tokens, authorization checks for user-specific data, subscription support for real-time post updates, input validation and sanitization, error handling with meaningful messages, and performance optimization with DataLoader for batch loading related data.
Create a microservices API architecture with three independent services: User Service (authentication and profile management), Product Service (catalog and inventory), and Order Service (order processing and tracking). Each service should have its own Express API, database, and environment configuration. Implement service-to-service communication using HTTP or message queues, API Gateway routing, centralized logging, distributed tracing for debugging, and comprehensive error handling across all services with appropriate fallback mechanisms.
Database Design Prompts
Plan and optimize database schemas for your application needs. These prompts guide Replit Agent through designing normalized schemas, planning for scale, and implementing performance optimizations.
Design a database schema for a multi-tenant SaaS application using PostgreSQL. Create tables for organizations, users (with roles), projects, tasks with dependencies, time tracking, and audit logs. Implement proper relationships, foreign keys, and constraints. Use Row-Level Security (RLS) to ensure data isolation between tenants. Create indexes on frequently queried columns, partition large tables by date, and design for scalability. Include migration scripts for schema versioning and provide documentation of relationships, constraints, and performance considerations.
Build a normalized database schema for an e-learning platform with students, instructors, courses, lessons, quizzes, and user progress tracking. Include enrollment management, grading systems, and reporting capabilities. Design for handling thousands of concurrent students accessing course materials. Implement efficient querying for progress dashboards, create views for common reports, optimize for read-heavy operations, use appropriate data types to minimize storage, and plan for backup and recovery strategies.
Create a NoSQL MongoDB schema design for a real-time analytics dashboard platform. Structure collections for events, user sessions, metrics, and aggregated data. Implement TTL (time-to-live) indexes for automatic cleanup of old data, use denormalization strategically for fast queries, design for sharding across multiple servers, and optimize for high-volume inserts and complex aggregation pipeline queries. Include examples of batch processing jobs that transform raw events into insights and handle different data retention policies.
Debugging and Troubleshooting Prompts
Diagnose and fix complex issues across your entire codebase. These prompts leverage Replit Agent\'s project context awareness to identify bottlenecks, memory leaks, and architectural problems with precision.
Debug a Node.js application that has memory leaks causing crashes after 24 hours of operation. The application handles WebSocket connections for real-time data. Help identify the source of memory growth, provide tools and techniques for profiling (heap snapshots, clinic.js), and implement proper cleanup of event listeners and connection timeouts. Include code to log memory usage, identify circular references, and add garbage collection hints. Provide monitoring setup to catch similar issues in production.
Troubleshoot a React frontend that renders slowly and has janky animations despite no CPU-intensive operations. The component tree has deeply nested state updates and unnecessary re-renders. Provide debugging strategies using React DevTools Profiler, identify performance bottlenecks, suggest fixes like useMemo and useCallback, implement code splitting, and add performance monitoring. Explain render batching, concurrent features, and how to measure and optimize performance with Lighthouse.
Diagnose a critical production issue where API requests randomly return 502 Gateway Errors under load. Help identify whether the issue is in the Node.js application (memory leaks, hanging connections, process crashes), the database (connection pool exhaustion, slow queries), or the infrastructure (load balancer, network issues). Provide diagnostic queries, logging setup to capture errors, stress testing commands, and step-by-step troubleshooting methodology to isolate the root cause and implement fixes.