Code Review & Development Prompts for Freelancers
AI-powered code reviews, debugging assistance, documentation generation, and client-facing technical explanations. These prompts help freelance developers work faster and deliver higher-quality code. Works with GitHub Copilot, ChatGPT, or Claude.
How to use: Click any highlighted text to edit it, then click Copy Prompt.
Advertisement
1. Code Review (Security + Performance)
Review this code for security vulnerabilities, performance issues, and best practices.
Language/Framework: Node.js / Express API
Code context: This is an API endpoint that handles user authentication and returns a JWT token
```
[PASTE YOUR CODE HERE]
```
Review for:
1. Security vulnerabilities (SQL injection, XSS, CSRF, insecure auth)
2. Performance issues (N+1 queries, memory leaks, blocking operations)
3. Error handling (missing try/catch, unhandled promises)
4. Code style and readability
5. Edge cases not handled
For each issue found:
- Severity: Critical / Warning / Suggestion
- Explain WHY it's a problem (not just what's wrong)
- Provide a fixed code snippet
- Rate overall code quality: 1-10
2. Debugging Assistant
Help me debug this issue.
Language/Framework: React / TypeScript
What should happen: When a user clicks the "Save" button, the form data should be submitted to the API and a success toast should appear
What actually happens: The form submits but the success toast never appears, and the console shows "TypeError: Cannot read property 'message' of undefined"
Error message: TypeError: Cannot read property 'message' of undefined at handleSubmit (Form.tsx:45)
Relevant code:
```
[PASTE RELEVANT CODE]
```
Steps I've already tried: 1) Checked that the API returns a response, 2) Added console.log to handleSubmit — it fires, 3) Checked network tab — API call succeeds with 200
Help me:
1. Identify the most likely root cause
2. Explain why the error occurs
3. Provide the fix with code
4. Suggest how to prevent similar issues in the future
3. Technical Documentation Generator
Generate technical documentation for a codebase I'm handing off to a client.
Project: A custom WordPress plugin for managing real estate listings
Tech stack: PHP, WordPress API, MySQL, JavaScript, REST API
Main features: Custom post type for listings, advanced search with filters, Google Maps integration, IDX feed import, lead capture forms
Generate:
1. README.md with: project overview, installation steps, configuration, folder structure
2. API documentation for 5 main endpoints (list, create, update, delete, search)
3. Database schema overview (key tables and relationships)
4. Environment variables and configuration guide
5. Troubleshooting section (common issues and fixes)
6. Deployment checklist
Requirements:
- Write for a mid-level developer who hasn't seen this codebase
- Include code examples where helpful
- Use markdown formatting
- Be specific, not vague
Advertisement
4. Client-Facing Technical Explanation
Explain a technical concept to a non-technical client.
Concept to explain: Why their website needs an SSL certificate and HTTPS, and why I'm recommending they upgrade their shared hosting to a VPS for better performance
Client's technical level: Business owner with no technical background — uses "the Google" and calls the browser "the internet"
Context: They asked why their website is showing "Not Secure" in the browser and why it loads slowly
Requirements:
- Use analogies and everyday language (no jargon)
- Explain the "why it matters to their business" not just the technical what
- Include the cost/benefit so they can make a decision
- Suggest specific action items
- Under 200 words
- Tone: patient, helpful teacher
- Do NOT be condescending
5. Technical Proposal / Architecture
Write a technical proposal for a freelance development project.
Client's request: Build a custom CRM for a real estate agency with 15 agents
Requirements: Contact management, deal pipeline, email integration, reporting dashboard, mobile-friendly, role-based access
My recommended approach: Next.js frontend, Supabase backend (PostgreSQL + Auth), hosted on Vercel, with SendGrid for email
Budget range: $15,000 - $20,000
Write a technical proposal including:
1. Executive summary (non-technical, for the decision maker)
2. Proposed architecture (with diagram description)
3. Technology choices with justification (why this stack)
4. Feature breakdown (MVP vs Phase 2)
5. Timeline (phased with milestones)
6. Hosting and maintenance costs (monthly ongoing)
7. Risks and mitigations
- 600-800 words
- Balance technical detail with business language
6. Unit Test Generator
Generate comprehensive unit tests for this function.
Language: TypeScript
Testing framework: Jest
Function to test:
```
[PASTE YOUR FUNCTION HERE]
```
Generate tests covering:
1. Happy path (expected inputs → expected outputs)
2. Edge cases (empty inputs, null, undefined, boundary values)
3. Error cases (invalid inputs, API failures)
4. Type checking (wrong types passed)
For each test:
- Descriptive test name (describe what it tests, not how)
- Arrange → Act → Assert pattern
- Include mock setup if needed
- Comments explaining the test's purpose
Code Faster with GitHub Copilot
AI pair programming that writes code, generates tests, and explains complex codebases. $10/month.