Transforms prototype code into production-ready implementations with error handling, validation, testing, and documentation.
You are a senior developer who takes prototype code and makes it production-ready. Transform this code snippet into a complete, production-ready implementation. [PASTE PROTOTYPE/SNIPPET CODE] Context: - Target environment: [PRODUCTION / INTERNAL TOOL] - Framework: [TECH STACK] - Must integrate with: [EXISTING SYSTEMS] - Performance requirements: [IF ANY] - Scale expectations: [USERS / REQUESTS] Transform into: **Production-Ready Code** ```[language] // Complete implementation with: // - Proper error handling // - Input validation // - Logging // - Documentation // - Types (if applicable) // - Edge case handling ``` **Changes Made** | Prototype | Production | Rationale | |-----------|------------|----------| | Hardcoded value | Config/env | Flexibility | | console.log | Proper logger | Observability | **Error Handling** ```[language] // Custom error types // Try-catch boundaries // Error recovery // User-friendly messages ``` **Validation Layer** ```[language] // Input validation // Schema validation // Sanitization ``` **Configuration** ```[language] // Externalized config // Environment-specific values // Feature flags ``` **Logging & Observability** ```[language] // Structured logging // Metrics // Tracing ``` **Tests** ```[language] // Unit tests // Integration tests // Edge case tests ``` **Security Review** - Vulnerabilities addressed - Hardening applied - Secrets handling **Performance Considerations** - Bottlenecks addressed - Caching applied - Async where beneficial **Documentation** - JSDoc/docstrings - README updates - API documentation **Deployment Checklist** - [ ] Environment variables documented - [ ] Database migrations (if needed) - [ ] Feature flag setup - [ ] Monitoring configured - [ ] Rollback plan
You are a senior developer who takes prototype code and makes it production-ready. Transform this code snippet into a complete, production-ready implementation. [PASTE PROTOTYPE/SNIPPET CODE] Context: - Target environment: [PRODUCTION / INTERNAL TOOL] - Framework: [TECH STACK] - Must integrate with: [EXISTING SYSTEMS] - Performance requirements: [IF ANY] - Scale expectations: [USERS / REQUESTS] Transform into: **Production-Ready Code** ```[language] // Complete implementation with: // - Proper error handling // - Input validation // - Logging // - Documentation // - Types (if applicable) // - Edge case handling ``` **Changes Made** | Prototype | Production | Rationale | |-----------|------------|----------| | Hardcoded value | Config/env | Flexibility | | console.log | Proper logger | Observability | **Error Handling** ```[language] // Custom error types // Try-catch boundaries // Error recovery // User-friendly messages ``` **Validation Layer** ```[language] // Input validation // Schema validation // Sanitization ``` **Configuration** ```[language] // Externalized config // Environment-specific values // Feature flags ``` **Logging & Observability** ```[language] // Structured logging // Metrics // Tracing ``` **Tests** ```[language] // Unit tests // Integration tests // Edge case tests ``` **Security Review** - Vulnerabilities addressed - Hardening applied - Secrets handling **Performance Considerations** - Bottlenecks addressed - Caching applied - Async where beneficial **Documentation** - JSDoc/docstrings - README updates - API documentation **Deployment Checklist** - [ ] Environment variables documented - [ ] Database migrations (if needed) - [ ] Feature flag setup - [ ] Monitoring configured - [ ] Rollback plan
This prompt is released under CC0 (Public Domain). You are free to use it for any purpose without attribution.
Explore similar prompts based on category and tags
Conducts thorough code reviews covering security, performance, maintainability, and best practices with specific fix suggestions.
Creates comprehensive Architecture Decision Records with options analysis, decision matrices, and consequence documentation.
Analyzes complex error stack traces to identify root causes and provide specific code fixes.
Identifies security vulnerabilities with fixes, OWASP analysis, and comprehensive hardening recommendations.