DEVELOPMENT WORKBOOK
API integration prompts
Work through 14 api integration tasks. Open a brief to see its worked example, customise the variables and copy the completed prompt.
← All categoriesResume a paginated harvest Intermediate
Persist a cursor only after processing its whole page.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Persist a cursor only after processing its whole page.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. A restart recovers the remaining items without duplicate writes.
Worked example
Input: page two fails halfway. Passing result: A restart recovers the remaining items without duplicate writes.
Common mistakes
- Treating the normal path as sufficient without checking this case: page two fails halfway.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: A restart recovers the remaining items without duplicate writes.
- For “Resume a paginated harvest”, show the smallest evidence a second reviewer would need before sign-off.
Normalise currency minor units Intermediate
Use declared currency precision instead of assuming two decimals.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Use declared currency precision instead of assuming two decimals.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The displayed value is GHS 12.50 and the stored integer stays 1250.
Worked example
Input: GHS 12.50 arrives as 1250 minor units. Passing result: The displayed value is GHS 12.50 and the stored integer stays 1250.
Common mistakes
- Treating the normal path as sufficient without checking this case: GHS 12.50 arrives as 1250 minor units.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The displayed value is GHS 12.50 and the stored integer stays 1250.
- For “Normalise currency minor units”, show the smallest evidence a second reviewer would need before sign-off.
Interpret asynchronous exports Intermediate
Follow a job status resource until a terminal state.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Follow a job status resource until a terminal state.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The user sees progress rather than an empty download.
Worked example
Input: export accepted but still processing. Passing result: The user sees progress rather than an empty download.
Common mistakes
- Treating the normal path as sufficient without checking this case: export accepted but still processing.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The user sees progress rather than an empty download.
- For “Interpret asynchronous exports”, show the smallest evidence a second reviewer would need before sign-off.
Respect provider retry windows Intermediate
Delay a queued refresh according to the advertised retry interval.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Delay a queued refresh according to the advertised retry interval.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The adapter schedules no refresh before that interval.
Worked example
Input: retry allowed in 90 seconds. Passing result: The adapter schedules no refresh before that interval.
Common mistakes
- Treating the normal path as sufficient without checking this case: retry allowed in 90 seconds.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The adapter schedules no refresh before that interval.
- For “Respect provider retry windows”, show the smallest evidence a second reviewer would need before sign-off.
Handle optional response fields Intermediate
Distinguish absent properties from explicit nulls.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Distinguish absent properties from explicit nulls.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The adapter preserves existing text only for the omitted property.
Worked example
Input: nickname omitted versus nickname null. Passing result: The adapter preserves existing text only for the omitted property.
Common mistakes
- Treating the normal path as sufficient without checking this case: nickname omitted versus nickname null.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The adapter preserves existing text only for the omitted property.
- For “Handle optional response fields”, show the smallest evidence a second reviewer would need before sign-off.
Validate imported coordinates Intermediate
Check axis order and reject out-of-range locations.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Check axis order and reject out-of-range locations.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The map adapter swaps explicitly documented axes before display.
Worked example
Input: provider sends longitude first. Passing result: The map adapter swaps explicitly documented axes before display.
Common mistakes
- Treating the normal path as sufficient without checking this case: provider sends longitude first.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The map adapter swaps explicitly documented axes before display.
- For “Validate imported coordinates”, show the smallest evidence a second reviewer would need before sign-off.
Resolve out-of-order status events Intermediate
Use versions so older updates cannot replace newer ones.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Use versions so older updates cannot replace newer ones.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. Stored status remains at version 8.
Worked example
Input: version 8 delivered before version 7. Passing result: Stored status remains at version 8.
Common mistakes
- Treating the normal path as sufficient without checking this case: version 8 delivered before version 7.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: Stored status remains at version 8.
- For “Resolve out-of-order status events”, show the smallest evidence a second reviewer would need before sign-off.
Translate provider status codes Intermediate
Map known codes and preserve unknown ones for review.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Map known codes and preserve unknown ones for review.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The UI reports unknown status without marking the job complete.
Worked example
Input: new upstream status PAUSED_REVIEW. Passing result: The UI reports unknown status without marking the job complete.
Common mistakes
- Treating the normal path as sufficient without checking this case: new upstream status PAUSED_REVIEW.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The UI reports unknown status without marking the job complete.
- For “Translate provider status codes”, show the smallest evidence a second reviewer would need before sign-off.
Negotiate a conditional refresh Intermediate
Reuse cached content when the provider says it is unchanged.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Reuse cached content when the provider says it is unchanged.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The adapter retains the existing list and updates its check timestamp.
Worked example
Input: cached district list and a not-modified response. Passing result: The adapter retains the existing list and updates its check timestamp.
Common mistakes
- Treating the normal path as sufficient without checking this case: cached district list and a not-modified response.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The adapter retains the existing list and updates its check timestamp.
- For “Negotiate a conditional refresh”, show the smallest evidence a second reviewer would need before sign-off.
Batch address lookups Intermediate
Return per-item outcomes when part of a batch fails.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Return per-item outcomes when part of a batch fails.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. Two results display while the unresolved town remains identifiable.
Worked example
Input: three towns; second town not found. Passing result: Two results display while the unresolved town remains identifiable.
Common mistakes
- Treating the normal path as sufficient without checking this case: three towns; second town not found.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: Two results display while the unresolved town remains identifiable.
- For “Batch address lookups”, show the smallest evidence a second reviewer would need before sign-off.
Handle a removed endpoint version Intermediate
Separate a retired API version from ordinary downtime.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Separate a retired API version from ordinary downtime.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The adapter surfaces a migration action instead of retrying indefinitely.
Worked example
Input: version 1 returns a retirement notice. Passing result: The adapter surfaces a migration action instead of retrying indefinitely.
Common mistakes
- Treating the normal path as sufficient without checking this case: version 1 returns a retirement notice.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The adapter surfaces a migration action instead of retrying indefinitely.
- For “Handle a removed endpoint version”, show the smallest evidence a second reviewer would need before sign-off.
Stitch daily exchange snapshots Intermediate
Tie conversions to the quoted date rather than the download date.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Tie conversions to the quoted date rather than the download date.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The receipt cites Friday as its rate date.
Worked example
Input: Friday quote downloaded Monday. Passing result: The receipt cites Friday as its rate date.
Common mistakes
- Treating the normal path as sufficient without checking this case: Friday quote downloaded Monday.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The receipt cites Friday as its rate date.
- For “Stitch daily exchange snapshots”, show the smallest evidence a second reviewer would need before sign-off.
Model uncertain payment callbacks Intermediate
Keep a verified settlement separate from an unconfirmed user redirect.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Keep a verified settlement separate from an unconfirmed user redirect.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The order remains pending until a trusted status check confirms settlement.
Worked example
Input: browser returns before provider confirmation. Passing result: The order remains pending until a trusted status check confirms settlement.
Common mistakes
- Treating the normal path as sufficient without checking this case: browser returns before provider confirmation.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The order remains pending until a trusted status check confirms settlement.
- For “Model uncertain payment callbacks”, show the smallest evidence a second reviewer would need before sign-off.
Constrain file import responses Intermediate
Read declared size and type before accepting an attachment.
Recommended tools: OpenAI Codex or Claude Code
Complete prompt
Implement an adapter using local synthetic responses for {{project}}. Read declared size and type before accepting an attachment.
Use this case: {{scenario}}. Clarify any missing policy before choosing defaults. Deliver an adapter contract, fixture and error-handling example. Keep credentials out of examples; document timeout and retry behaviour.
Acceptance criterion: {{criterion}} Explain how a reviewer can independently check it.Expected output
An adapter contract, fixture and error-handling example. The adapter reports unsupported content without parsing it as CSV.
Worked example
Input: archive arrives where CSV was expected. Passing result: The adapter reports unsupported content without parsing it as CSV.
Common mistakes
- Treating the normal path as sufficient without checking this case: archive arrives where CSV was expected.
- Reporting a pass without evidence for the acceptance criterion.
Follow-up prompts
- Construct a contrasting case in which this result should not hold: The adapter reports unsupported content without parsing it as CSV.
- For “Constrain file import responses”, show the smallest evidence a second reviewer would need before sign-off.