Back to skills
SKILL.md
From Specyml File
ASecuritySub-skill of orcaflex-model-generator: From spec.yml file (+3).
- 17 stars
- 0 votes
- 0 copies
- 1 view
- Added September 9, 2026
Security analysis
100/100npx -y skills add vamseeachanta/workspace-hub --skill from-specyml-file --agent claude-codeAre you the author of From Specyml File?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-from-specyml-file)---
name: orcaflex-model-generator-from-specyml-file
description: 'Sub-skill of orcaflex-model-generator: From spec.yml file (+3).'
version: 2.0.0
category: engineering
type: reference
scripts_exempt: true
---
# From spec.yml file (+3)
## From spec.yml file
```python
from digitalmodel.solvers.orcaflex.modular_generator import ModularModelGenerator
gen = ModularModelGenerator(Path("spec.yml"))
gen.generate(Path("output/"))
```
## From in-memory spec
```python
spec = ProjectInputSpec(**spec_dict)
gen = ModularModelGenerator.from_spec(spec)
gen.generate(Path("output/"))
```
## From monolithic (extract + generate)
```python
from digitalmodel.solvers.orcaflex.modular_generator.extractor import MonolithicExtractor
ext = MonolithicExtractor(Path("model.yml"))
spec = ProjectInputSpec(**ext.extract())
gen = ModularModelGenerator.from_spec(spec)
gen.generate(Path("output/"))
```
## With section overrides
```python
result = gen.generate_with_overrides(
output_dir=Path("output/"),
sections=[override_section],
variables={"water_depth": 500},
)
```
Attribution
Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.