orcaflex-model-generator-mergeobject
Sub-skill of orcaflex-model-generator: _merge_object() (+2).
Best use case
orcaflex-model-generator-mergeobject is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Sub-skill of orcaflex-model-generator: _merge_object() (+2).
Teams using orcaflex-model-generator-mergeobject should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/mergeobject/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How orcaflex-model-generator-mergeobject Compares
| Feature / Agent | orcaflex-model-generator-mergeobject | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Sub-skill of orcaflex-model-generator: _merge_object() (+2).
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# _merge_object() (+2)
## _merge_object()
Combines typed Pydantic fields with pass-through properties:
```python
@staticmethod
def _merge_object(obj: GenericObject) -> dict[str, Any]:
merged = dict(obj.properties) # 1. Start from properties bag
explicitly_set = obj.model_fields_set # 2. Track what was explicitly set
for py_field, ofx_key in TYPED_FIELD_MAP.items():
value = getattr(obj, py_field, None)
if value is not None:
merged[ofx_key] = value # 3. Non-None typed fields override
elif py_field in explicitly_set:
merged[ofx_key] = value # 4. Explicitly-set None preserved
# 5. Priority keys first (Name, Category, ShapeType, etc.)
ordered = {}
for key in _PRIORITY_KEYS:
if key in merged:
ordered[key] = merged.pop(key)
ordered.update(merged)
return ordered
```
## Section Ordering (_SECTION_ORDER)
Critical: OrcaFlex validates references sequentially. Sections must appear in dependency order:
```
General → VariableData → ExpansionTables
→ RayleighDampingCoefficients, FrictionCoefficients, LineContactData
→ LineTypes, VesselTypes, ClumpTypes, StiffenerTypes, SupportTypes
→ Vessels, Lines, Shapes, 6DBuoys, 3DBuoys, Constraints, Links, Winches
→ MultibodyGroups, BrowserGroups, Groups
```
## Priority Keys (_PRIORITY_KEYS)
Mode-setting properties must appear before dependent properties within each object:
```python
_PRIORITY_KEYS = [
"Name", "Category", "ShapeType", "Shape", "BuoyType",
"Connection", "LinkType", "Geometry", "WaveType",
"DegreesOfFreedomInStatics",
]
```Related Skills
interactive-report-generator
Generate interactive HTML reports with Plotly visualizations from data analysis results. Supports dashboards, charts, and professional styling.
OrcaFlex Specialist Skill
```yaml
orcaflex-reporting-fixture-proof-pattern
Build and extend fixture-backed OrcaFlex reporting proof paths in digitalmodel using stable metadata baselines, normalized HTML snapshots, and reusable reporting test helpers.
digitalmodel-worktree-test-execution-with-shared-venv
Run digitalmodel tests from isolated worktrees without uv editable-dependency failures by using the main repo's existing virtualenv and PYTHONPATH.
digitalmodel-orcawave-orcaflex-proof-workflows
Class-level digitalmodel OrcaWave/OrcaFlex readiness, semantic-proof, fixture-proof, and closeout workflows.
digitalmodel-code-explorer
Fast orientation guide for the digitalmodel codebase, with module lookup, source-to-test mapping, and targeted inspection patterns to avoid repeated bulk-reading of digitalmodel/src and tests.
orcawave-orcaflex-readiness-audit
Audit the real readiness of digitalmodel OrcaWave/OrcaFlex spec-driven workflows by reconciling workspace-hub issues, source/tests, semantic-equivalence boundaries, and wiki synthesis gaps.
digitalmodel-orcawave-orcaflex-workflow
Current-state workflow for navigating and extending digitalmodel OrcaWave/OrcaFlex capabilities across code, tests, issues, queue tooling, and licensed-machine boundaries.
orcawave-orcaflex-semantic-proof-wave-closeout
Close out an OrcaWave/OrcaFlex semantic-proof wave after a PR merges, split unrelated CI blockers, and seed the next semantic-proof issue wave without duplicating existing issues.
segment-anything-model
Foundation model for image segmentation with zero-shot transfer. Use when you need to segment any object in images using points, boxes, or masks as prompts, or automatically generate all object masks in an image.
orcawave-to-orcaflex
Integration specialist for converting OrcaWave diffraction results to OrcaFlex vessel types. Handles hydrodynamic database generation, RAO import, viscous damping addition, and coordinate system transformations.
orcaflex-yaml-gotchas
Production-proven OrcaFlex YAML traps and solutions covering dormant properties, boolean mismatches, section ordering, Pydantic integration, and section name aliases.