Model the supplied data and behavior with safe, readable types.
Replace the bracketed fields with your information before using a prompt.
Start the task
Act as a software engineer.
Task — Model the supplied data and behavior with safe, readable types.
Context — [describe the situation and intended audience].
Required information — Repository excerpts, runtime, versions, requirements, constraints and expected behavior.
Source material — [paste the relevant facts, text, data or documentation].
Constraints — [length, format, dates, budget, terminology and requirements].
Deliver — Types and implementation with validation at untrusted boundaries.
Use the supplied facts. Identify missing information before relying on it. Preserve names, figures, units and qualifications. Mark assumptions and use placeholders for facts that need confirmation. Ask focused questions if a missing fact would materially change the result.
Improve a draft
Review the following draft as a software engineer.
Original task — Model the supplied data and behavior with safe, readable types.
Required deliverable — Types and implementation with validation at untrusted boundaries.
Audience and constraints — [paste the requirements].
Source material — [paste the facts or references].
Draft — [paste the draft].
Requested changes — [describe the improvement].
Check factual support, completeness, clarity and format. Return the revised draft and a short list of material changes. Mark unresolved questions and retain verified facts.
Check the result
Evaluate this result against the supplied requirements.
Task — Model the supplied data and behavior with safe, readable types.
Expected deliverable — Types and implementation with validation at untrusted boundaries.
Requirements and evidence — [paste the brief and sources].
Result — [paste the output].
Return a table of requirement, evidence in the result, any issue and suggested correction. Check calculations, citations, consistency and missing inputs where relevant. Finish with the specific items a human should verify before using the result.