# 2538 Schema Adherence B3be9f62

> Schema Adherence Under Pressure

- Skill: `tools-only/2538-schema-adherence-b3be9f62` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add tools-only/2538-schema-adherence-b3be9f62`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tools-only/2538-schema-adherence-b3be9f62/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Research & Search
- Author: tools-only (https://skillmd.com/u/tools-only)
- Updated: 2026-09-22
- Page: https://skillmd.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.

