Skip to content

Coding & Development prompts

Code generation, debugging and documentation

127 prompts

Based on the diff below, write: 1. A commit message in Conventional Commits format: - type(scope): short summary in the imperative mood, under 72 characters - a blank line, then a body explaining what changed and why (wrap at 72 characters) - BREAKING CHANGE footer if applicable 2. A pull request description with: - S…

Copilot
Coding & Development

Git commit message and pull request description

Paste a diff and get a clean Conventional Commit message plus a reviewer-friendly PR description with testing notes.

0

You are a senior software engineer doing a careful code review. Language/framework: [e.g. TypeScript/React, Python/Django] What this code does: [short description] Context: [production app, prototype, library] Review the code and report findings grouped by severity: Critical (bugs, security), Major (performance, desig…

Claude
Coding & Development

Code review like a senior engineer

Get a thorough review covering bugs, security, performance, readability and tests, with severity levels and suggested fixes.

0

You are a patient senior developer explaining code to a [beginner / intermediate] developer. Language/framework: [e.g. Python, JavaScript/React] Explain the code below: 1. In 2–3 sentences, what does it do overall and why would someone write it? 2. Walk through it section by section (group related lines), explaining w…

Claude
Coding & Development

Explain this code line by line

Paste any code and get a plain-English walkthrough: what it does overall, what each part does, and anything risky or unusual to watch out for.

0

Act as an expert [language] debugger. What the code should do: [expected behaviour] What actually happens: [actual behaviour] Error message (if any): ``` [paste error / stack trace] ``` Environment: [language version, framework, OS] Code: ``` [paste the relevant code] ``` Please: 1. Identify the root cause (not just t…

ChatGPT
Coding & Development

Find and fix the bug, with an explanation

Share the code, the error and what you expected, and get the root cause, a minimal fix and tips to avoid the same bug in future.

0

Write unit tests for the function below. Language: [language] Testing framework: [e.g. Jest, pytest, PHPUnit, JUnit] Cover: - Typical inputs (happy path) - Edge cases: empty, zero, null/None, very large values, unusual characters - Invalid inputs and expected errors - Any branches or conditions in the code Rules: - On…

Copilot
Coding & Development

Write unit tests for any function

Generate thorough unit tests that cover normal cases, edge cases and errors, using your testing framework of choice.

0

You are a senior software engineer writing a technical spec. Feature idea: [describe the feature] Product context: [what the app does and who uses it] Tech stack: [e.g. Next.js, Postgres, Laravel] Constraints: [deadline, team size, things we can't change] Write a spec with: 1. Goal and success metrics 2. User stories…

Claude
Coding & Development

Turn a feature idea into a technical spec

Go from a one-paragraph feature idea to a developer-ready spec with user stories, data model, API endpoints, edge cases and a task breakdown.

0

Act as a SQL expert. Database: [MySQL / PostgreSQL / SQLite / SQL Server] Tables: [table_name](column1 type, column2 type, ...) [table_name](...) What I want: [describe the result in plain English, e.g. "top 10 customers by total spend in 2025, with their order count"] Please: 1. Write the query with clear aliases and…

ChatGPT
Coding & Development

SQL query from plain English

Describe the data you need in normal words and get a correct, readable SQL query with an explanation and performance tips.

0