How do I build AI prompts for developers?
Choose from 8 developer templates (code review, unit tests, API docs, data analysis, commit messages, SQL queries, refactoring, code explanation), customize with reusable {{variables}}, and export in 5 formats — plain text, system+user, OpenAI API, Anthropic API, or Gemini API. Everything runs in your browser.
Template: Code Review Language: TypeScript Focus: security, performance Code: [paste code here]
You are a senior TypeScript engineer
performing a security and performance
code review.
Review this code for:
1. Security vulnerabilities (injection,
XSS, auth issues)
2. Performance bottlenecks
3. Best practices violations
Code:
```typescript
{{code}}
```
Provide findings as a numbered list
with severity (critical/warning/info).Build structured prompts with reusable templates, variables, and multi-format output for OpenAI, Anthropic, and Gemini APIs. All processing happens in your browser.
Prompt Sections
Variables (use {{name}} in prompts)
{{}}={{}}=Output Format
Output Preview
[SYSTEM] You are an expert code reviewer. Analyze the provided code for bugs, performance issues, security vulnerabilities, and adherence to best practices. Be specific and actionable in your feedback. [USER] ## Role You are an expert TypeScript code reviewer with 10+ years of experience. ## Context Review the following TypeScript code from a web application project. ## Task Analyze this code for: 1. Bugs and logical errors 2. Performance issues 3. Security vulnerabilities 4. Best practice violations 5. Readability improvements ## Output Format For each issue found, provide: - **Severity**: Critical / Warning / Info - **Line**: The affected code - **Issue**: What's wrong - **Fix**: How to fix it
Variable Quick-Fill
Tips & Best Practices
Structure prompts with clear sections: role, context, task, format
The most effective prompts follow a consistent structure: (1) Role — who the AI should be, (2) Context — background information, (3) Task — exactly what to do, (4) Format — how to structure the output. This reduces ambiguity and improves response quality.
Vague instructions produce vague outputs — be specific about format
Saying 'summarize this code' gives unpredictable results. Saying 'explain what this function does in 2-3 sentences, then list its parameters as a markdown table with name, type, and description columns' gives consistent, usable output.
Include examples in your prompt for consistent output formatting
Few-shot prompting (including 2-3 example input/output pairs) dramatically improves format consistency. Show the AI exactly what good output looks like, and it will follow the pattern. This is more effective than lengthy format instructions.
Never include secrets or credentials in prompt templates
Prompt templates are often stored in version control, shared across teams, or sent to third-party API providers. Never embed API keys, database credentials, or internal URLs in your prompts. Reference them via environment variables instead.
Frequently Asked Questions
How do I write effective prompts for AI coding assistants?
What is the difference between system prompts and user prompts?
How do I format prompts for different AI APIs?
Related Generate Tools
Regex Generator
Generate regex patterns by describing what you need — 60+ curated patterns, visual composer, live tester, and pattern explanations
Git Command Builder
Build git commands visually with an interactive builder — branching, merging, rebasing, stashing, tags, and 80+ cheat sheet entries
CSP Header Builder
Build Content Security Policy headers visually with framework presets, security analysis, and multi-format output for Nginx, Apache, Vercel, Netlify
Code Screenshot Generator
Create beautiful code screenshots with 8 themes, syntax highlighting, customizable backgrounds, and window chrome — free Carbon/Ray.so alternative