I have a Python script that [describe issue]. Here's the code: [paste code]. Walk me through what's wrong, provide the corrected code, and explain why the bug happened so I can avoid it in the future....
Create a full-stack application scaffold using [frontend framework] and [backend framework]. The app should handle [core feature]. Include folder structure, key file templates, API route definitions, ...
Analyze this SQL query for performance issues: [paste query]. Explain what indexes are missing, suggest query rewrites, and estimate the performance gain. The table has approximately [row count] rows....
Review this REST API design: [describe endpoints]. Check for REST best practices, status code correctness, rate limiting needs, authentication gaps, and pagination strategy. Suggest improvements with ...
Build a React component that [describe functionality]. Use [state management approach]. Include PropTypes or TypeScript interfaces, error handling, loading states, and responsive styling with [CSS app...
Write a comprehensive unit test suite for this [language] function: [paste code]. Cover edge cases, null inputs, boundary values, and expected exceptions. Use [testing framework] syntax....
Write a docker-compose.yml for a [tech stack] application. Include services for app, database, cache, and reverse proxy. Add health checks, volume mounts, environment variable templates, and network i...
Create a [CI tool] pipeline configuration for a [language] project. Include stages for: lint, test, build, security scan, and deploy to [environment]. Add caching for dependencies and parallel job exe...
Create a code review checklist for a [language] pull request. Include categories: functionality, performance, security, readability, testing coverage, and documentation. Add specific questions the rev...
My [language] application has a memory leak. Here's the heap dump summary: [paste data]. Analyze probable causes, suggest diagnostic tools, and recommend fixes. The app runs on [runtime/environment]....
Design an end-to-end ML pipeline for [task type] using [framework]. Include data ingestion, preprocessing, feature engineering, model selection, training, evaluation metrics, and deployment strategy. ...
Create regex patterns for [use case]. Explain what each expression matches and include edge-case examples. Provide optimized versions where possible....
Design a GraphQL architecture for [application]. Include schemas, queries, mutations, and security considerations. Explain why each decision was made....
Create a development blueprint for a browser extension that [goal]. Include file structure, permissions, workflows, and UX flow. Suggest future expansion ideas....
Design an error logging and monitoring strategy for [app/system]. Include severity levels, alert rules, and tracking recommendations. Prioritize production debugging....
Create a testing strategy for [application/module]. Include test coverage priorities, edge cases, and recommended frameworks. Focus on maintainability....
Design a microservices structure for [application]. Include service boundaries, communication methods, and scaling considerations. Explain tradeoffs....
Create a CI/CD pipeline for [project]. Include testing stages, deployment flow, rollback methods, and automation recommendations. Keep security in mind....
Create a caching plan using Redis for [application]. Include cache keys, expiration logic, and invalidation methods. Explain scaling considerations....
Design a real-time messaging system for [application]. Include WebSocket strategy, message persistence, and scaling approach. Cover delivery guarantees....
Build a monitoring plan for [application/infrastructure]. Include metrics, alert thresholds, on-call rules, and runbook structure. Focus on reliability....
Design a cache invalidation approach for [application]. Include expiry rules, event-driven invalidation, and consistency tradeoffs. Avoid stale data....
Create a technical A/B testing implementation for [application]. Include experiment design, flag management, and result analysis. Ensure statistical validity....
Design a logging strategy for [application]. Include log levels, structured format, retention policies, and search recommendations. Support debugging....