Table of Contents
A useful engineering prompt defines the task, supplies evidence, names constraints, and says how the result will be checked. The examples below cover research, documentation, debugging, data analysis, and architecture diagrams. Replace bracketed placeholders with your own approved project context.
Prepare the context before asking
Include relevant versions, environment, expected behavior, actual behavior, and a small reproducible example where possible. Remove credentials, personal data, and confidential material you are not authorized to share. Ask for missing information rather than encouraging guesses.
For example, “fix this timeout” gives little to work with. A better request includes the failing call, timeout setting, sanitized error, recent change, and an expected outcome. Ask for a testable hypothesis before a production change.
Research and comparison
| Use case | Prompt to adapt |
|---|---|
| Cloud migration | Compare AWS, Azure, and Google Cloud for [workload, regions, traffic, budget]. Separate measured requirements from assumptions. Use current official pricing and documentation links, state retrieval dates, and flag unknown compliance requirements for legal review. Do not estimate costs without workload inputs. |
| Real-time collaboration | For [users, latency target, topology], compare SignalR, Socket.IO, and WebRTC by the problem each solves. Identify signaling, persistence, scaling, and failure handling we must supply. Cite official documentation; do not treat them as interchangeable products. |
| Observability | Compare Datadog, New Relic, Prometheus, and OpenTelemetry for [stack and goals]. Distinguish hosted products, monitoring software, and telemetry standards. List collection, storage, visualization, operating effort, and cost inputs separately. |
| Logistics research | Research predictive routing for [fleet and constraints]. Separate documented deployments from vendor marketing. Link primary sources, label evidence gaps, and suggest a small evaluation using our stated success metrics. |
| Compliance discovery | From [jurisdictions, data categories, processing description], list questions for our legal and security teams. Link applicable official regulatory material. Do not declare the system compliant or infer missing obligations. |
Design and documentation
| Use case | Prompt to adapt |
|---|---|
| Design review | Review this design for [goal and constraints]. Return gaps ranked by impact, the relevant section, supporting evidence, and a question or proposed improvement. Preserve stated architecture decisions; label assumptions. |
| API documentation | Using only [code, schema, examples], document endpoints, authentication, parameters, responses, errors, and retry behavior. Mark anything not established by the source as unknown. Include examples that match the schema. |
| On-call runbook | Draft a runbook for [service] from [known alerts and procedures]. Separate read-only diagnosis, approved mitigations, rollback, and escalation. Do not invent commands, permissions, owners, or recovery guarantees. |
| Engineer onboarding | Create an onboarding guide from [team documentation]. Cover tools, approved access requests, local setup, codebase map, and a small first task. Use placeholders for missing links or owners; never invent credentials. |
| Implementation ticket | Turn [specification] into a ticket with problem, scope, exclusions, dependencies, acceptance criteria, and validation. Flag conflicting requirements. Do not add new product behavior without marking it as a proposal. |
Debugging and testing
| Use case | Prompt to adapt |
|---|---|
| Production incident | Review these sanitized logs, metrics, timestamps, and changes for [incident]. Rank hypotheses by supporting evidence. For each, give a read-only check that could confirm or reject it. Separate immediate mitigation from root-cause investigation. |
| Latency investigation | Analyze [latency distributions, load, traces, environment]. Identify missing measurements and possible bottlenecks. Propose one change at a time with a benchmark and rollback condition. Do not claim an optimization works without measurements. |
| Pipeline failure | Given [failed run, last successful run, schema, logs], identify the failing stage and competing explanations. Propose a safe replay plan covering idempotency, duplicate writes, and partial outputs. Mark unsupported conclusions. |
| Monitoring review | Review [metrics, logs, traces, alerts] against [service objectives]. Identify blind spots and noisy signals. Suggest actionable alerts with an owner, diagnostic link, and verification plan; use placeholders for unknown thresholds. |
| Edge-case tests | For [feature contract], propose tests for boundaries, invalid input, timeouts, retries, partial failure, and concurrency. State setup, expected outcome, and the failure each test detects. Avoid duplicating tests that check the same behavior. |
Data analysis and reporting
| Use case | Prompt to adapt |
|---|---|
| Usage trends | Analyze this sanitized CSV using [time field, timezone, user definition]. Check missing values, duplicates, and changes in instrumentation first. Show denominators, summary statistics, and charts. Distinguish correlation from causation. |
| Error rates | Plot errors divided by total requests for each [interval]. Separate counts from rates, identify missing periods, and annotate known changes supplied here. Provide the calculation and avoid inferring a cause from timing alone. |
| Benchmark comparison | Compare [version A] with [version B] using these runs. Check hardware, workload, warm-up, sample counts, and variability. Report latency percentiles, throughput, and failures separately. Flag comparisons that are not like-for-like. |
| Bug prioritization | Rank this bug dataset using the supplied severity, frequency, and affected-user definitions. Show the prioritization rule and missing data. Keep product judgment separate from computed scores; do not invent affected-user counts. |
| Survey themes | Summarize this de-identified survey CSV. Report response count, rating distribution, and recurring themes with short evidence excerpts. Explain how themes were assigned. Do not present a guessed sentiment score as a measured fact. |
Architecture diagrams
| Use case | Prompt to adapt |
|---|---|
| Component map | Create Mermaid source from this supplied component inventory. Show services, stores, and external dependencies with labeled data flows. Mark unknown links explicitly. Do not add components that are absent from the inventory. |
| Service architecture | Diagram [payment, catalogue, profile services] from this specification. Distinguish synchronous requests, events, and ownership of data. Include a short legend and list unclear boundaries before suggesting design changes. |
| CI/CD overview | Create a stakeholder-friendly diagram from our documented pipeline. Show approval gates, automated tests, deployment, and rollback where specified. Label proposed steps separately and omit secrets, internal addresses, and unnecessary implementation detail. |
| ML data flow | Map the supplied pipeline from raw data to inference. Label training versus serving, validation, storage, and feedback. Show where sensitive data is transformed or retained, but do not assume controls that are not documented. |
| User journey | Create a flowchart for [app journey] from these screens and rules. Include decisions, error paths, and recovery steps. Separate UI navigation from backend operations and flag missing requirements. |
Validate the output
Read every generated command and code change before running it. Test in a suitable environment, compare calculations with the source data, and verify citations by opening them. A plausible explanation is a hypothesis until evidence supports it.
For research, say whether current browsing is available and require the model to disclose when it cannot verify a claim. A request for citations alone does not establish that the cited pages exist or support the conclusion.
OpenAI's official prompting guide emphasizes clear scope, context, constraints, and acceptance criteria. For related examples, see prompts for IT teams and writing and checking spreadsheet formulas with ChatGPT.
Reader Comments 0
Sign in with email or Google to join the discussion.