Agent skill
orcaflex-yaml-gotchas-execution-validating-generated-yaml
Sub-skill of orcaflex-yaml-gotchas: Execution: Validating Generated YAML.
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-yaml-gotchas/execution-validating-generated-yaml
SKILL.md
Execution: Validating Generated YAML
Execution: Validating Generated YAML
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}
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
gsd-complete-milestone
Archive completed milestone and prepare for next version
gsd-reapply-patches
Reapply local modifications after a GSD update
gsd-verify-work
Validate built features through conversational UAT
gsd-thread
Manage persistent context threads for cross-session work
clinical-trial-protocol
Generate clinical trial protocols for medical devices or drugs through a modular, waypoint-based architecture with research-only and full protocol modes.
single-cell-rna-qc
Performs quality control on single-cell RNA-seq data (.h5ad or .h5 files) using scverse best practices with MAD-based filtering and comprehensive visualizations.
Didn't find tool you were looking for?