Maximizing Developer Velocity with AI
Modern software engineers use AI prompts to bypass boilerplate coding, design robust database schemas, and refactor legacy codebases into clean architecture.
20 Developer Prompt Templates
- 1. Database Schema & Migration Prompt:
Act as a Senior Database Architect. Design an optimized PostgreSQL relational database schema for an e-commerce subscription platform with users, teams, subscriptions, invoices, and payments. Provide SQL DDL tables with proper foreign keys, unique constraints, composite indexes, cascades, and ENUM types, following database design best practices. - 2. Unit Test Generator:
Act as a senior software quality assurance engineer. Write comprehensive PHPUnit test cases for the following Laravel service class method: [Insert Code Snippet]. Include test cases for happy path execution, boundary validation, invalid input formats, and expected exception throwing, mocking external dependencies. - 3. Legacy Code Refactoring:
Act as a senior software refactoring expert. Refactor the following legacy JavaScript code snippet to use modern ES6+ conventions, clean code principles, descriptive variable names, and single-responsibility principles. Explain the design improvements made. - 4. Docker Multi-Stage Build:
Act as a DevOps engineer. Generate an optimized, secure multi-stage Dockerfile for a Node.js production application using Alpine base images. Ensure it runs as a non-root user, optimizes caching layers, and excludes development dependencies. - 5. Clean Architecture Mapper:
Act as a Software Architect. Map out a directory structure and module definitions for a Go clean architecture web service (containing Domain, Use Case, Repository, Delivery layers). Explain where domain models, DB clients, and HTTP routers live. - 6. TypeScript Interface & Schema:
Act as a frontend architect. Generate TypeScript interfaces and a matching Zod validation schema for a complex user registration payload with nested address, billing information, and array elements. Ensure correct email and password validation rules. - 7. CI/CD GitHub Actions Pipeline:
Act as a DevOps specialist. Write a comprehensive GitHub Actions YAML workflow that runs on push to main. It should spin up PostgreSQL, run database migrations, run unit tests, run linter checks, and deploy to AWS Elastic Beanstalk upon success. - 8. API Endpoint Rate Limiting:
Act as a backend security engineer. Provide a middleware implementation in Express.js/TypeScript that implements redis-backed token bucket rate limiting. Return clean HTTP headers containing rate limit remaining details. - 9. RegEx Pattern Engineer:
Act as an expert computer scientist. Write a secure, optimized regular expression to validate strong passwords (min 8 chars, 1 uppercase, 1 lowercase, 1 number, 1 special char) with zero backtracking vulnerability issues. Provide explanatory notes. - 10. SQL Query Performance Tuning:
Act as a PostgreSQL DBA. Analyze and optimize the following slow query containing multiple subqueries and heavy JOINs: [Insert Query]. Suggest composite indexes, query restructuring, or query plan adjustments to reduce latency. - 11. CSS Grid Responsive Layout:
Act as a CSS wizard. Write clean vanilla CSS utilizing grid layouts to create a responsive dashboard with a sidebar, sticky header, and 4 widgets that seamlessly flow from mobile size to ultra-wide desktop screens. - 12. Zustand State Management:
Act as a React state architect. Create a Zustand store in TypeScript for managing a multi-step user checkout wizard state, including navigation validation checks, state persistence in localStorage, and state reset methods. - 13. Markdown Documentation Writer:
Act as a technical writer. Write a comprehensive README.md file for a developer package containing setup commands, quick start examples, environment variable configurations, and code contribution guidelines. - 14. Custom Artisan Command:
Act as a senior Laravel engineer. Write a custom Artisan command class that processes pending email notifications, uses job dispatch queues, handles logger output, and outputs progress indicators to the terminal console. - 15. Webpack/Vite Config Optimization:
Act as a frontend performance engineer. Optimize the following Vite configuration file to implement code splitting, bundle minification, asset compression, and visual bundle analysis tools. - 16. Kubernetes Pod Deployment:
Act as a Kubernetes architect. Create YAML manifests for a microservice deployment, containing replica limits, readiness/liveness probes, environment variable mappings from ConfigMaps, and cluster service rules. - 17. Cypress End-to-End Test:
Act as an E2E testing specialist. Write a Cypress test script that simulates a user registering an account, verifying their email address, adding a product to the cart, and checking out successfully. - 18. GraphQL Schema Design:
Act as a API developer. Design a GraphQL schema for a blogging network containing User, Post, Comment types, queries for fetching paginated posts, and mutation events for liking posts. - 19. AWS Lambda Serverless Function:
Act as a cloud solutions architect. Write an optimized Node.js AWS Lambda function triggered by an S3 upload that resizes uploaded images, compresses them, and saves metadata into DynamoDB. - 20. Git Rebase Guide:
Act as a Git expert. Write a step-by-step developer tutorial on how to perform an interactive rebase to squash multiple local commits, resolve merge conflicts cleanly, and push updates back to remote repositories.
⚡ Standardize Developer AI Capabilities with RSFlowHub API
Access top LLM reasoning models via RSFlowHub AI Chat API and parse JSON output reliably with JSON Extractor API.
Get Developer API Key →
Elena Rostova Member
1 month agoOWASP security audit prompts caught an unindexed database query and potential SQL injection before our staging deploy. Lifesaver!
Reply to Elena Rostova
Marcus Brody Member
1 month agoCustom debounced search hook in React TypeScript worked out of the box with zero re-render issues. 10/10!
Reply to Marcus Brody
Vikram Patel Member
1 month agoThe Laravel 11 service class extraction prompt is part of our standard pull request workflow now. Kept our controllers super thin!
Reply to Vikram Patel