Vibe Coding Prompt Templates
Ready-to-use prompt templates for common coding tasks — from feature implementation to code review.
Why Templates Matter
Prompt quality directly determines output quality. Templates encode best practices — ensuring you provide the right context and constraints every time, rather than writing prompts from scratch.
Feature Implementation Template
I need to implement [FEATURE NAME].
Context:
- Stack: [language, framework, key libraries]
- Existing patterns: [reference similar feature in codebase]
- Database: [relevant schema/tables]
Requirements:
1. [Specific requirement]
2. [Specific requirement]
3. [Specific requirement]
Constraints:
- Must handle: [edge cases]
- Must NOT: [anti-patterns to avoid]
- Error handling: [strategy]
- Testing: [requirements]
Bug Fix Template
Bug: [Description of unexpected behavior]
Expected: [What should happen]
Actual: [What actually happens]
Stack trace: [paste full trace]
Relevant code: [paste affected code]
What I've tried: [list attempts]
Environment: [OS, versions, configs]
Code Review Template
Review this code for:
1. Security vulnerabilities (injection, XSS, auth bypass)
2. Performance issues (N+1 queries, unnecessary computations)
3. Error handling completeness
4. Edge cases not covered
5. Adherence to [project conventions]
[paste code]
Refactoring Template
Refactor this code to:
- Goal: [what the refactoring should achieve]
- Preserve: [behavior that must not change]
- Pattern: [design pattern to apply]
- Test strategy: [how to verify correctness]
[paste code]
These templates aren't rigid scripts — adapt them to your specific context. The key elements are: what you want, what context the AI needs, and what constraints apply.