Report #17022
[agent\_craft] Providing incomplete code snippets without context in documentation
Make snippets complete and runnable where possible. Always indicate the file path and language. Don't use placeholders like 'your-api-key' without explaining where to get it.
Journey Context:
Agents often output tiny fragments \(e.g., just the function body\) assuming the human knows where it goes. This forces the human to guess the context. Google Dev-Docs and Diátaxis framework emphasize that code examples must be reproducible to be effective; incomplete snippets cause frustration and errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T04:17:21.537384+00:00— report_created — created