Prompt Library
Battle-tested prompts for common coding tasks. Copy, customize the variables, and use with Claude Code or any AI assistant.
29 prompts found
Next.js Page with Data Fetching
Create a new Next.js App Router page with server-side data fetching
React Component with Props
Generate a typed React component following best practices
REST API Endpoint
Create a complete API endpoint with validation and error handling
Prisma Model with Relations
Add a new model to Prisma schema with proper relations
Investigate Bug
Systematic approach to finding the root cause of a bug
Fix Error Message
Understand and fix a specific error
Debug Performance Issue
Find and fix performance bottlenecks
Extract Reusable Logic
Extract duplicated code into reusable functions or hooks
Simplify Complex Code
Make complex code more readable and maintainable
Improve TypeScript Types
Add or improve TypeScript types for better safety
Write Unit Tests
Create comprehensive unit tests for a function or module
Write Integration Tests
Test how components work together
Improve Test Coverage
Add tests to cover untested code paths
Generate README
Create a comprehensive README for a project or package
Document API Endpoint
Create API documentation for an endpoint
Add JSDoc Comments
Add comprehensive JSDoc comments to functions
Security Review
Review code for security vulnerabilities
General Code Review
Comprehensive code review for quality and best practices
Pull Request Review
Review a pull request for merge readiness
Optimize Database Query
Improve query performance
Create Database Migration
Create a safe database migration
Add API Error Handling
Implement comprehensive error handling for API routes
Add Rate Limiting
Implement rate limiting for API endpoints
Create Form with Validation
Build a form with client and server validation
Make Component Responsive
Add responsive design to a component
Improve Accessibility
Make a component more accessible
Create Dockerfile
Create an optimized Dockerfile for production
Create GitHub Actions Workflow
Set up CI/CD with GitHub Actions
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