Skip to content
Back to skills

Execution Validating Generated Yaml

ASecurity

'Sub-skill of orcaflex-yaml-gotchas: Execution: Validating Generated

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
developmentpythongoapi

Works with

  • api

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill execution-validating-generated-yaml --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Execution Validating Generated Yaml?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Execution Validating Generated Yaml
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-execution-validating-generated-yaml/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-execution-validating-generated-yaml)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: orcaflex-yaml-gotchas-execution-validating-generated-yaml
description: 'Sub-skill of orcaflex-yaml-gotchas: Execution: Validating Generated
  YAML.'
version: 1.0.0
category: engineering
type: reference
scripts_exempt: true
---

# Execution: Validating Generated YAML

## Execution: Validating Generated YAML


```python
import OrcFxAPI

def validate_yaml_round_trip(yaml_path):
    """Load YAML into OrcFxAPI and check for errors."""
    model = OrcFxAPI.Model()
    try:
        model.LoadData(yaml_path)
        return {"valid": True, "errors": []}
    except OrcFxAPI.OrcaFlexError as e:
        error_msg = str(e)
        errors = [error_msg]

        # Diagnose common YAML gotchas
        if "Change not allowed" in error_msg:
            errors.append("Likely dormant property issue — check mode-setting property order")
        if "not a valid" in error_msg and "name" in error_msg.lower():
            errors.append("Reference to undefined object — check section ordering")
        if "alias" in error_msg.lower():
            errors.append("YAML aliases not supported — use NoAliasDumper")

        return {"valid": False, "errors": errors}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.