Copy & Customize

Prompt Library

Battle-tested prompts for common coding tasks. Copy, customize the variables, and use with Claude Code or any AI assistant.

Difficulty:

29 prompts found

intermediate
nextjs
react
typescript

Next.js Page with Data Fetching

Create a new Next.js App Router page with server-side data fetching

beginner
react
typescript
components

React Component with Props

Generate a typed React component following best practices

intermediate
api
rest
typescript

REST API Endpoint

Create a complete API endpoint with validation and error handling

intermediate
prisma
database
schema

Prisma Model with Relations

Add a new model to Prisma schema with proper relations

beginner
debugging
investigation

Investigate Bug

Systematic approach to finding the root cause of a bug

beginner
debugging
errors

Fix Error Message

Understand and fix a specific error

advanced
performance
optimization
debugging

Debug Performance Issue

Find and fix performance bottlenecks

intermediate
refactoring
dry
reusability

Extract Reusable Logic

Extract duplicated code into reusable functions or hooks

intermediate
refactoring
readability
maintainability

Simplify Complex Code

Make complex code more readable and maintainable

intermediate
typescript
types
refactoring

Improve TypeScript Types

Add or improve TypeScript types for better safety

intermediate
testing
unit-tests

Write Unit Tests

Create comprehensive unit tests for a function or module

advanced
testing
integration-tests

Write Integration Tests

Test how components work together

intermediate
testing
coverage

Improve Test Coverage

Add tests to cover untested code paths

beginner
documentation
readme

Generate README

Create a comprehensive README for a project or package

intermediate
documentation
api
openapi

Document API Endpoint

Create API documentation for an endpoint

beginner
documentation
jsdoc
comments

Add JSDoc Comments

Add comprehensive JSDoc comments to functions

advanced
security
review
vulnerabilities

Security Review

Review code for security vulnerabilities

intermediate
review
quality

General Code Review

Comprehensive code review for quality and best practices

intermediate
review
pull-request
github

Pull Request Review

Review a pull request for merge readiness

advanced
database
performance
optimization

Optimize Database Query

Improve query performance

intermediate
database
migration

Create Database Migration

Create a safe database migration

intermediate
api
error-handling

Add API Error Handling

Implement comprehensive error handling for API routes

intermediate
api
rate-limiting
security

Add Rate Limiting

Implement rate limiting for API endpoints

intermediate
frontend
forms
validation

Create Form with Validation

Build a form with client and server validation

beginner
frontend
responsive
tailwind

Make Component Responsive

Add responsive design to a component

intermediate
frontend
accessibility
a11y

Improve Accessibility

Make a component more accessible

intermediate
docker
devops
deployment

Create Dockerfile

Create an optimized Dockerfile for production

intermediate
github-actions
ci-cd
devops

Create GitHub Actions Workflow

Set up CI/CD with GitHub Actions

beginner
environment
configuration
secrets

Environment Configuration

Set up environment variables and secrets management

Tips for Using These Prompts

  • Replace all [VARIABLES] with your specific context before using
  • Add project-specific context like file paths and conventions
  • Combine with your AGENTS.md for even better results
  • Save your customized versions as Skills for repeated use