💻 Coding & Development Prompts
Code generation, debugging, architecture, and developer workflows
25 prompts
Write a React component that
Create a React component in TypeScript that {functionality}.
Debug this error:
I'm getting this error: '{error}'.
Write a Python script to
Write a Python script that {task}.
Create an API endpoint that
Write a REST API endpoint in {framework} that {functionality}.
Write unit tests for
Write comprehensive unit tests using {framework} for the following function: ```{code}```.
Refactor this code to be more readable:
Refactor this code for readability and maintainability: ```{code}```.
Design a database schema for
Create a PostgreSQL database schema for {application}.
Write a Dockerfile for
Create a production-ready multi-stage Dockerfile for {application}.
Explain this algorithm:
Explain how {algorithm} works in simple terms.
Write a CI/CD pipeline configuration for
Create a GitHub Actions workflow for {project}.
Convert this code from JavaScript to TypeScript:
Convert this JavaScript code to TypeScript with strict typing: ```{code}```.
Write a regular expression that
Create a regex pattern that {requirement}.
Create a system design for
Design a scalable architecture for {system}.
Write a SQL query to
Write a SQL query that {requirement}.
Review this code for security vulnerabilities:
Perform a security review of this code: ```{code}```.
Write documentation for this API:
Create comprehensive API documentation for: ```{code}```.
Optimize this slow function:
This function is running slowly: ```{code}```.
Write a bash script to automate
Create a bash script that automates {task}.
Create a mobile-responsive CSS layout for
Write CSS/Tailwind for a {layout} layout that works on mobile, tablet, and desktop.
Write a GraphQL schema for
Design a GraphQL schema for {application}.
Implement authentication with
Write a complete authentication flow using {provider}.
Write a cron job that
Create a Node.
Explain this code to a junior developer:
Explain the following code to a junior developer: ```{code}```.
Convert this to async/await:
Rewrite this Promise-based code using async/await with proper error handling: ```{code}```.
Write a data migration script for
Create a safe data migration script that {requirement}.