Library
Prompts & Workflows
Production-ready prompts curated by the SYNTHESE team — copy and use instantly.
Loading…
Library
Production-ready prompts curated by the SYNTHESE team — copy and use instantly.
Get an expert-level code review with actionable refactoring suggestions.
Act as a senior software engineer conducting a code review. Review the code below and provide: 1. **Summary** — What the code does in 1–2 sentences. 2. **Issues Found** — List bugs, anti-patterns, security risks, and performance concerns (ranked by severity: Critical / Medium / Low). 3. **Refactored Version** — Provide the improved code with inline comments explaining key changes. 4. **Tests to Add** — List 3–5 unit test cases to cover edge cases. ``` [PASTE CODE HERE] ``` Language: [LANGUAGE]
Design a complete REST API endpoint spec with request/response schemas.
You are a senior backend engineer. Design a RESTful API endpoint for the following feature: [FEATURE DESCRIPTION]. Output: 1. Endpoint — METHOD /path 2. Description — What it does in one sentence. 3. Request Headers — Required auth/content-type headers. 4. Request Body (JSON schema with field names, types, and validation rules). 5. Success Response (HTTP status + JSON schema). 6. Error Responses (list of error codes and messages). 7. Example cURL request. Framework/Language preference: [e.g., Node.js/Express, Python/FastAPI]
Diagnose and rewrite slow SQL queries with expert-level explanations.
Act as a senior database administrator and SQL performance expert. Analyze and optimize the following SQL query. ```sql [PASTE QUERY HERE] ``` Database: [PostgreSQL / MySQL / SQLite / other] Table sizes (approximate): [e.g., users: 2M rows, orders: 10M rows] Provide: 1. Diagnosis — Explain what is causing the slowness (full table scan, missing index, N+1, etc.). 2. Optimized Query — Rewrite the query for maximum performance. 3. Indexes to Create — Exact CREATE INDEX statements to add. 4. Explanation — Why each change improves performance.