Prompt Claude for JSON, YAML, and markdown tables, then validate the output. Validation and recovery strategies.
Uploaded markdown content, not a verification of tool compatibility or results. Review the raw text, commands, and permissions before using it. Stars require an account.
name: structured-output
Provide exact schema, say 'Output only valid JSON, no fences.'
Specify columns explicitly.
Say 'List exactly N steps, one sentence each.'
1. JSON.parse()
2. Zod schema validation
3. If invalid, retry with error message
4. Max 2 retries