**Opus**: Maintains output format even with unusual or challenging inputs. Degrades gracefully. **Haiku**: Schema adherence is strong for typical inputs but can break on edge cases — missing fields, malformed data, empty inputs. **Mitigation**: Demonstrate edge cases in examples AND specify fallback. ``` If a required field is missing, output the field with value "N/A". Never omit fields from the schema. If input is empty, output the complete schema with all values "N/A". ``` Critical: includ...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of 2538 Schema Adherence B3be9f62?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/tools-only-2538-schema-adherence-b3be9f62)
# Schema Adherence Under Pressure
**Opus**: Maintains output format even with unusual or challenging
inputs. Degrades gracefully.
**Haiku**: Schema adherence is strong for typical inputs but can break
on edge cases — missing fields, malformed data, empty inputs.
**Mitigation**: Demonstrate edge cases in examples AND specify fallback.
```
If a required field is missing, output the field with value "N/A".
Never omit fields from the schema.
If input is empty, output the complete schema with all values "N/A".
```
Critical: include at least one edge-case example in the few-shot set.
Haiku generalizes from examples better than from rules alone for
format recovery.