Code & technical prompts - Expertly crafted for optimal AI performance
Thorough code analysis with improvement recommendations
Perform a comprehensive code review for the following [LANGUAGE] code. Analyze for: 1) Code quality and readability, 2) Potential bugs and edge cases, 3) Performance optimizations, 4) Security vulnerabilities, 5) Best practices adherence. Provide specific suggestions with code examples.
Create comprehensive system architecture designs
Design a scalable system architecture for [SYSTEM TYPE] handling [NUMBER] daily users. Include: 1) High-level architecture diagram, 2) Database schema design, 3) API design specifications, 4) Caching strategy, 5) Load balancing approach, 6) Failure scenarios and mitigation.
Algorithm optimization with complexity analysis
Optimize the following algorithm for better time/space complexity. Current approach: [DESCRIBE CURRENT APPROACH]. Analyze the Big O complexity and provide at least two optimized versions with complexity analysis. Include code implementation and benchmark considerations.
Professional API documentation with examples
Generate comprehensive API documentation for the following endpoints. Include for each endpoint: 1) HTTP method and path, 2) Request parameters with types, 3) Response format and status codes, 4) Authentication requirements, 5) Example requests and responses, 6) Error handling.
SQL query optimization with performance analysis
Analyze and optimize the following SQL query for [DATABASE TYPE]. Identify: 1) Missing indexes, 2) Query performance bottlenecks, 3) Better join strategies, 4) Query rewriting opportunities. Provide the optimized query with explanation of improvements and expected performance gains.