Original prompt Engineering
Code Snippets
The prompt
Write a minimal snippet for [task] using [runtime]. Include input validation, an example call and the expected result. Explain dependencies and errors without inventing APIs.
Copyable text only. No model runs here, and no source material is uploaded.
When to use it
Draft a small example that makes assumptions and failure behavior explicit.
Prepare the source material
- Language version
- Task description
- Input shape
Review before using the result
Run the snippet in the stated environment and replace synthetic inputs with approved test data only.