Prompt Templates
50+ battle-tested templates for AI coding
Ready-to-use prompt templates that get better results from AI assistants. Organized by task type for quick reference.
Template Categories
🐛 Debugging
12 templates for finding and fixing bugs faster.
🔄 Refactoring
Templates for safe refactors, migrations, and code cleanup.
✅ Testing
Templates for unit/integration tests, edge cases, and regression coverage.
📝 Documentation
Templates for README, docstrings, API docs, and troubleshooting guides.
🔍 Code Review
Templates for review checklists, security review, and actionable feedback.
🧭 Planning
Templates for plans, risk checks, and step-by-step execution.
Quick Start
- Choose a template category above
- Copy the template you need
- Fill in your specific details
- Paste into your AI assistant
- Iterate based on results
Pro Tips
- Be Specific: Add context and constraints
- Provide Examples: Show what you want
- Iterate: Refine based on first response
- Save Winners: Keep templates that work well
🤝 Contribute
Have a great template? Share it →
FAQ
Which prompt template should I use first?
Start with debugging templates because they teach you to provide context, errors, and expected behavior.
How do I customize these templates?
Replace the placeholders with your real code, constraints, and verification steps.
How do I know a prompt worked?
The output should be testable and you should be able to verify it with lint, tests, or a reproducible example.