Structured output: three gates
Prompt format, API schema and protocol validation each cover a different failure. Valid JSON is not the same as correct content.
Tools · English edition
6 method guides and 24 task patterns. Each pattern states input, output, checkpoint and failure branch; no universal template, no promised effect.
This is an index of 6 method guides and 24 reusable task patterns. It does not promise “one prompt for everything”; each case lists input, expected output, a checkpoint and a failure branch. Test with your own input before copying.
Prompt format, API schema and protocol validation each cover a different failure. Valid JSON is not the same as correct content.
A larger window still dilutes attention. Put static instructions first, retrieve on demand, compress and keep notes; spend tokens on high-signal content.
Injection exploits the blurry line between data and instructions. Delimiters, guardrails and least privilege each block one layer, with costs and failure modes.
Split a prompt into role, instruction, delimiter, examples and reasoning. Each block has a job, a placement and a common failure.
Change with a baseline and a measurement: human comparison, meta-prompting, automatic search or a generate-evaluate loop. Each has a cost.
An eval flywheel: label failure modes, build an automatic scorer, calibrate an LLM judge, then compare each prompt change.
The case table covers code, documents, data, meetings, research, translation, safety and tables. Each row states what the output should contain and what to check; none of them claims a measured effect.
| Case | Output and checkpoint |
|---|---|
| Report outline | Outline plus evidence needed for each section; no unsupported filler. |
| Table formula | Formula, assumptions and a hand-worked example; do not pretend the sheet was run. |
| Test cases | Case table covering normal, boundary and invalid input; do not claim execution. |
| Code review checklist | Issue list tied to diff lines; no style-preference ranking. |
| Multi-table merge | Merged table plus a conflict log; conflicts are never silently overwritten. |
| Reproduction checklist | Data, code, environment and metric checks; write “not reproduced” when true. |
| Slide briefing | Title, bullets, source and checkpoint per slide; no exaggerated effect. |
| Meeting actions | Action table; items without an owner or date are marked unconfirmed. |
| Sensitive-field redaction | Redacted text plus a field log; do not guess unmarked fields. |
| Eval rubric | Dimensions and observable criteria; no total-score ranking. |
| Log triage | Triage table with evidence lines; do not assert the root cause directly. |
| Terminology-consistent translation | Translation plus glossary; unlisted terms are marked for review, not invented. |
| Contract clause review | Clause checklist; flag only what the text supports, with no legal conclusion. |
| Literature screening | Screening table with reasons from title and abstract only; do not invent full-text conclusions. |
| Citation-by-citation check | Claim–citation table; unsupported or mismatched citations are flagged. |
| Email drafting | Draft only from the supplied facts; tone is a parameter, not an excuse to invent. |
| Layered long-document summary | Overview, section points and open questions; each point carries a paragraph locator. |
| Evidence table | Claim–evidence–condition table; claims without a source are marked unsupported. |
| Refactor plan | Steps, verification points and rollback conditions; no performance promise. |
| API contract | Request/response schema plus error table; undefined items are marked unknown. |
| Bug reproduction steps | Environment, steps, expected/actual and missing information; no guessed root cause. |
| JSON field validation | Schema plus validation report; valid format is not factual correctness. |
| PDF table extraction | Rows from supplied table text and schema; mark cells that cannot be confirmed. |
| SQL explanation | Semantic explanation, index checks and risks; do not pretend EXPLAIN was run. |