Agent skill

orcaflex-file-conversion-yaml-structure-validation

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

Stars 4
Forks 4

Install this agent skill to your Project

npx add-skill https://github.com/vamseeachanta/workspace-hub/tree/main/.claude/skills/_archive/engineering/marine-offshore/orcaflex-file-conversion/yaml-structure-validation

SKILL.md

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.*

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results