Skip to content

Coding & Development prompts

Code generation, debugging and documentation

127 prompts

Act as an algorithms tutor. Problem: [paste problem statement] Language: [language] Explain: 1. The problem in simple words with a small example 2. A brute-force approach and its complexity 3. The key insight that leads to the optimal approach 4. Step-by-step walkthrough on the example 5. Clean, commented code 6. Time…

ChatGPT
Coding & Development

Coding challenge explained step by step

Understand algorithm problems: intuition, brute force, optimal approach, complexity and clean code.

0

Act as a senior mobile developer. Framework: [React Native with Expo / Flutter] Screen: [e.g. login, product list, profile, settings] Features: [list] Data: [static / API endpoint] Design style: [minimal, iOS-like, Material] Write the screen with: - Clean component structure - Loading, error and empty states - Form va…

ChatGPT
Coding & Development

Mobile app screen in React Native or Flutter

Generate a polished mobile screen with navigation, state and platform-friendly UI.

0

You are a web accessibility specialist. Review the HTML/CSS below against WCAG 2.2 AA. Check: semantic structure and headings, alt text, form labels and errors, keyboard navigation and focus, colour contrast, link and button names, ARIA usage, motion and media. For each issue: severity, the WCAG criterion, who it affe…

Claude
Coding & Development

Accessibility review of a web page

Check HTML for accessibility problems against WCAG and get prioritised fixes with corrected code.

0

[Attach a screenshot or design image] You are a front-end developer. Recreate this design as HTML and CSS. Requirements: - Semantic HTML5 and accessible markup (alt text, labels, contrast) - Responsive: mobile first, with breakpoints at [e.g. 640px, 1024px] - Styling with [plain CSS with variables / Tailwind] - Match…

Claude
Coding & Development

Turn a screenshot or design into HTML and CSS

Upload a mockup or screenshot and get responsive, semantic HTML and CSS that matches it closely.

0

Explain this error in plain English and help me fix it. Language/framework: [e.g. Python 3.12 / Node 20 / Laravel] What I was doing: [action] Error: ``` [paste error and stack trace] ``` Relevant code: ``` [paste code] ``` Please give: 1. What the error means 2. The most likely cause (and other possible causes) 3. The…

ChatGPT
Coding & Development

Explain an error message and fix it

Paste a confusing error or stack trace and get a plain-English explanation, the likely cause and a fix.

0

Add documentation to the code below. Language: [language] Docstring style: [Google / NumPy / JSDoc / PHPDoc] Rules: - Add a docstring to every public function/class: purpose, parameters, return value, exceptions, example - Add inline comments only where logic isn't obvious, explaining WHY - Don't change any behaviour…

Copilot
Coding & Development

Add clear comments and docstrings

Document existing code with helpful docstrings and comments that explain the why, not just the what.

0

Act as a Python developer. Website: [URL or type of site] Data to extract: [fields] Pages: [single page / pagination / list of URLs] Output: [CSV / JSON] Write a script using requests + BeautifulSoup (or Playwright if the page needs JavaScript) that: - Respects robots.txt and adds a delay between requests - Sets a cle…

ChatGPT
Coding & Development

Python web scraper

Build a polite, robust web scraper that extracts structured data and saves it to CSV or JSON.

0

You are a browser extension developer. Extension idea: [what it does] Where it runs: [all sites / specific domains] UI: [popup, options page, sidebar] Data to store: [settings, lists] Create a Manifest V3 extension with: 1. manifest.json with minimal permissions 2. popup.html/js/css 3. content script and/or service wo…

Claude
Coding & Development

Chrome extension starter

Generate a working Manifest V3 Chrome extension with popup, content script and storage for your idea.

0

Act as a Linux/macOS command-line expert. OS and shell: [macOS zsh / Ubuntu bash / Windows WSL] Task: [e.g. find all .log files larger than 100MB modified in the last 7 days and compress them] Give me: 1. The command 2. A breakdown of each flag and part 3. A dry-run version that shows what would happen without changin…

ChatGPT
Coding & Development

Shell commands and Bash one-liners

Describe a terminal task and get the command, what each part does and a safer alternative where relevant.

0

You are an API technical writer. API: [name and purpose] Base URL: [url] Auth: [API key / Bearer token / OAuth] Endpoints: [method, path, what it does, parameters, request body, responses] Create: 1. An OpenAPI 3.0 YAML spec with schemas, examples and error responses 2. A getting-started guide (auth, first request wit…

Claude
Coding & Development

API documentation in OpenAPI format

Turn your endpoints into a complete OpenAPI 3 spec plus human-friendly docs with examples.

0

You are an application security engineer. Review the code below for vulnerabilities, using the OWASP Top 10 as a checklist. Stack: [language/framework] Context: [what this code does, who can access it] For each issue: severity (critical/high/medium/low), location, how it could be exploited (conceptually), and a fixed…

Claude
Coding & Development

Security audit against OWASP Top 10

Review code for common vulnerabilities like injection, XSS, broken auth and insecure data handling, with fixes.

0

Act as a senior [language] developer. Write a function that: [describe behaviour] Inputs: [names, types, examples] Output: [type and example] Constraints: [performance, no external libraries, etc.] Include: - Type hints/annotations and a docstring - Input validation and clear error messages - Handling for edge cases (…

ChatGPT
Coding & Development

Write a function from a plain-English description

Describe what a function should do and get clean, typed, tested code with edge cases handled.

0