# Orcaflex File Conversion YAML Structure Validation

> Sub-skill of orcaflex-file-conversion: YAML Structure Validation (+1).

- Skill: `vamseeachanta/orcaflex-file-conversion-yaml-structure-validation` (Agent Skill)
- Install (CLI): `npx skillmds@latest add vamseeachanta/orcaflex-file-conversion-yaml-structure-validation`
- Raw SKILL.md: https://api.skillmd.com/api/skills/vamseeachanta/orcaflex-file-conversion-yaml-structure-validation/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: vamseeachanta (https://skillmd.com/u/vamseeachanta)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/vamseeachanta/orcaflex-file-conversion-yaml-structure-validation

---


# YAML Structure Validation (+1)

## YAML Structure Validation


The converter validates:
- File is readable YAML
- Contains OrcaFlex-specific sections (General, Environment, etc.)
- File size is reasonable (> 100 bytes)
- No corruption during conversion

## Round-Trip Validation


```python
def validate_round_trip(original_dat: Path):
    """Validate .dat → .yml → .dat conversion."""
    import OrcFxAPI

    # Convert to YAML
    yml_file = original_dat.with_suffix('.yml')
    model1 = OrcFxAPI.Model(str(original_dat))
    model1.SaveData(str(yml_file))


*See sub-skills for full details.*

