Agent skill
orcaflex-monolithic-to-modular-section-mapping
Sub-skill of orcaflex-monolithic-to-modular: Section Mapping (+2).
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-monolithic-to-modular/section-mapping
SKILL.md
Section Mapping (+2)
Section Mapping
The extractor uses three mapping dicts from schema/generic.py:
| Mapping | Purpose | Example |
|---|---|---|
FIELD_TO_SECTION |
spec field → OrcaFlex YAML key | "line_types" → "LineTypes" |
SINGLETON_SECTIONS |
singleton section → field | "FrictionCoefficients" → "friction_coefficients" |
TYPED_FIELD_MAP |
typed field → OrcaFlex prop | "mass" → "Mass" |
Section Name Aliases
OrcaFlex SaveData() exports may use different section names than the API:
| YAML Export Name | API/Internal Name |
|---|---|
Groups |
BrowserGroups |
FrictionCoefficients |
SolidFrictionCoefficients |
The extractor handles both via _SECTION_ALIASES fallback in _extract_singleton().
Object Extraction Strategy
For each object in a list section:
- Keys in
TYPED_FIELD_MAP→ extracted as typed Pydantic fields - All other keys → placed in
propertiesdict (pass-through bag) - Both recombined by builder's
_merge_object()during generation
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?