Skip to content

Results for “errors”

21 prompts

Explain this stack trace in plain English. Identify where the error actually originates in my code (not library code), the likely cause, and how to fix it. Ask for the relevant code if needed. Stack trace: [paste]

ChatGPT
Coding & Development

Explain a stack trace

Reads a stack trace and points to the real problem.

0

Set up error monitoring for a [stack] app in production. Explain what to capture (errors, context, releases), how to avoid logging sensitive data, alerting rules, and show the integration code for [tool or a generic logger].

ChatGPT
Coding & Development

Error monitoring setup

Catches and reports production errors before users complain.

0

Write a React custom hook called [useSomething] that [purpose, e.g. fetches data with caching / debounces input / tracks window size]. Use TypeScript, handle cleanup and errors, and include usage examples and tests.

ChatGPT
Coding & Development

React custom hook

A reusable custom hook with clean state management.

0

Write a TypeScript client for the [API name] REST API covering [endpoints]. Include typed requests and responses, auth handling, retries with backoff, timeouts, helpful errors, and usage examples.

ChatGPT
Coding & Development

API client SDK wrapper

A typed wrapper around a third-party REST API.

0

Build validation for a [form type] form in [framework or vanilla JS]. Validate [fields] on blur and submit, show inline accessible error messages, disable submit while sending, and handle server-side errors gracefully.

ChatGPT
Coding & Development

Form validation on the frontend

Accessible form validation with helpful error messages.

0

Write a Node.js script that [task, e.g. reads a CSV and calls an API for each row]. Use async/await, limit concurrency to [n], retry failed requests with backoff, log progress, and handle errors without crashing. Include package.json dependencies.

ChatGPT
Coding & Development

Node.js script with async/await

A clean Node.js script with proper async error handling.

0

Write a FastAPI endpoint for [operation, e.g. creating an order]. Use Pydantic models for request and response, validate [fields], return proper status codes, handle errors, and include an example request with curl and a pytest test.

ChatGPT
Coding & Development

Python FastAPI endpoint

A typed FastAPI endpoint with validation and error handling.

0

Write a documentation page for [feature/API/tool] aimed at [audience]. Include an overview, prerequisites, step-by-step setup, a code or configuration example, common errors with fixes, and related links. Use clear headings and second person. Base it on these notes: [notes].

Claude
Writing & Copywriting

Technical documentation page

Clear technical docs with steps, examples and troubleshooting.

0

Here is my homework and my answers for [subject]: [paste]. Check each answer. For incorrect ones, don't give the final answer right away. Point out where my thinking went wrong, give a hint, and let me retry. Then explain the correct method.

ChatGPT
Education & Learning

Explain mistakes in my homework

Finds and explains errors without just giving answers.

0

You are an engineer who builds production AI features. Feature idea: [e.g. summarise support tickets, auto-tag products] Stack: [details] Data involved: [types, sensitivity] Design: the prompt and system instructions, input/output format (JSON schema), handling of errors and timeouts, cost and latency considerations,…

Claude
Coding & Development

Add an LLM-powered feature to your app

Plan and build an AI feature, such as summarising, classifying or a chat assistant, with good prompts and guardrails.

0

Act as a QA-minded backend engineer. Framework and test tool: [e.g. Jest + Supertest, pytest + httpx, PHPUnit] Endpoints: [list with expected behaviour] Auth: [method] Database setup: [test DB, fixtures] Write integration tests covering success cases, validation errors, auth failures and not-found cases, with setup/te…

ChatGPT
Coding & Development

Integration tests for an API

Test your API endpoints end to end, including the database, auth and error responses.

0

Review the code below and improve its logging and error handling. Language/framework: [details] Logging tool: [details] Code: ``` [paste] ``` Add: structured logs with useful context (without secrets or personal data), appropriate log levels, custom error types where helpful, user-safe error messages, retries for tran…

ChatGPT
Coding & Development

Better logging and error handling

Make failures easy to diagnose with structured logs, meaningful errors and safe messages for users.

0