Coding & Development
Prompts for debugging, code review, documentation, API design, and test generation.
▸
API Documentation Generator
Generate clean API documentation from code or specs
🟢 GPT
⭐ Claude
PolishGenerate API documentation for [API NAME]. For each endpoint include: (1) HTTP method and path, (2) Description of what it does, (3) Request parameters with types and required/optional, (4) Request body schema with examples, (5) Response schema with examples, (6) Error codes and meanings, (7) Authentication requirements. Format as Markdown.
Review this code and provide feedback on: (1) Bugs or logic errors, (2) Security vulnerabilities, (3) Performance issues, (4) Readability and naming, (5) Missing error handling, (6) Test coverage gaps. For each issue: explain the problem, show the fix, and rate severity (critical, important, minor). [PASTE CODE]
Write a migration script for [CHANGE]. Include: up migration, down migration (rollback), data preservation, validation queries, estimated execution time. Include safety checks.
▸
Debug This Error
Diagnose and fix a runtime error from logs or stack traces
🟢 GPT
⭐ Claude
⚡ M365
PolishDebug this error: [PASTE ERROR MESSAGE OR STACK TRACE]. (1) Explain what the error means in plain English, (2) Identify the most likely root cause, (3) Provide a fix with code, (4) Explain why the fix works, (5) Suggest how to prevent this error in the future. Language: [LANGUAGE — Python / JavaScript / C# / PowerShell].
▸
Error Handling Pattern
Design robust error handling for an application component
🟢 GPT
⭐ Claude
PolishDesign error handling for [COMPONENT — API endpoint / background job / file processor / user form] in [LANGUAGE]. Include: (1) Input validation, (2) Try-catch structure, (3) Specific exception types to handle, (4) Logging strategy, (5) User-friendly error messages, (6) Retry logic for transient failures, (7) Graceful degradation. Show complete code.
▸
PowerShell Script from Description
Generate a PowerShell script from a plain English task description
⚡ M365
⭐ GPT
🟠 Claude
PolishWrite a PowerShell script that [DESCRIBE TASK — e.g. finds all inactive users in Entra ID who have not signed in for 90 days and exports them to CSV]. Include: (1) Required modules and permissions, (2) Parameter block with defaults, (3) Error handling with try-catch, (4) Progress output, (5) CSV or report output, (6) Comments explaining each section. Target: PowerShell 7+.
Generate a README.md for [PROJECT NAME]. Include: (1) Project description and purpose, (2) Features list, (3) Quick start guide with installation steps, (4) Usage examples with code snippets, (5) Configuration options, (6) Contributing guidelines, (7) License information, (8) Badge suggestions (build status, coverage, version). Based on: [DESCRIBE THE PROJECT].
▸
Refactoring Suggestions
Get specific refactoring recommendations for cleaner code
🟢 GPT
⭐ Claude
PolishAnalyse this code and suggest refactoring improvements: [PASTE CODE]. Focus on: (1) Reducing complexity, (2) Removing duplication, (3) Improving naming, (4) Applying [PATTERN — SOLID principles / DRY / design patterns], (5) Breaking large functions into smaller ones. Show before and after code for each suggestion.
▸
Regex Pattern Builder
Build and explain a regular expression for a specific pattern
⭐ GPT
🟠 Claude
PolishBuild a regex pattern that matches [DESCRIBE WHAT YOU NEED — e.g. email addresses / phone numbers / dates in DD/MM/YYYY format / URLs]. Provide: (1) The regex pattern, (2) A plain English explanation of each part, (3) Test cases that should match, (4) Test cases that should NOT match, (5) Any edge cases to watch for. Language: [LANGUAGE].
Design a REST API for [PURPOSE]. Include: resource naming, endpoints with methods, request/response schemas, authentication, errors, pagination, rate limiting, versioning.
Write a SQL query that [DESCRIBE WHAT YOU NEED — e.g. finds all customers who ordered more than 3 times in the last month but have not ordered in the last 7 days]. Database: [TYPE — SQL Server / PostgreSQL / MySQL]. Tables: [LIST TABLE NAMES AND KEY COLUMNS]. Include: the query, explanation of each clause, and performance considerations.
Write unit tests for this [LANGUAGE] code: [PASTE CODE]. Include: (1) Happy path tests, (2) Edge cases (null, empty, boundary values), (3) Error handling tests, (4) Tests for each public method. Use [FRAMEWORK — Jest / pytest / xUnit / NUnit]. Include descriptive test names that explain what is being tested.
No prompts match your filters.
Your Prompt Engineering Toolkit
💬 Got feedback? Share it here →