api-integration
Integrate offshore engineering software APIs with mock testing for OrcaFlex, AQWA, and WAMIT
Best use case
api-integration is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Integrate offshore engineering software APIs with mock testing for OrcaFlex, AQWA, and WAMIT
Teams using api-integration 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/api-integration/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How api-integration Compares
| Feature / Agent | api-integration | 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?
Integrate offshore engineering software APIs with mock testing for OrcaFlex, AQWA, and WAMIT
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
# Api Integration
## When to Use This Skill
Use this skill when you need to:
- Integrate with OrcaFlex Python API
- Integrate with ANSYS AQWA or WAMIT
- Create mock APIs for testing without software licenses
- Build automation workflows for marine analysis software
- Develop robust error handling for API calls
- Implement batch processing with external software APIs
- Create abstraction layers over multiple analysis tools
## Core Knowledge Areas
### 1. OrcaFlex API Integration
Working with OrcaFlex Python API:
```python
import os
from pathlib import Path
from typing import Optional, Dict, List, Any
from dataclasses import dataclass
from abc import ABC, abstractmethod
# Mock OrcaFlex API for testing without license
*See sub-skills for full details.*
### 2. Abstract API Interface Pattern
Creating abstraction layer for multiple tools:
```python
class MarineAnalysisAPI(ABC):
"""Abstract base class for marine analysis software APIs."""
@abstractmethod
def create_model(self, config: dict) -> Any:
"""Create new analysis model."""
pass
*See sub-skills for full details.*
### 3. Mock Testing Strategy
Testing without software licenses:
```python
import pytest
from unittest.mock import Mock, patch, MagicMock
from pathlib import Path
class TestOrcaFlexIntegration:
"""Test suite for OrcaFlex integration using mocks."""
*See sub-skills for full details.*
### 4. Error Handling and Retry Logic
Robust error handling for API calls:
```python
import time
from functools import wraps
from typing import Callable, Any, Optional
def retry_on_failure(
max_retries: int = 3,
delay: float = 1.0,
*See sub-skills for full details.*
### 5. Batch Processing with APIs
Automate multiple analyses:
```python
from concurrent.futures import ThreadPoolExecutor, as_completed
from typing import List, Dict
import pandas as pd
class BatchAnalysisRunner:
"""
Run batch analyses using marine analysis APIs.
*See sub-skills for full details.*
## Complete Examples
### Example 1: Multi-Tool Integration Workflow
```python
from pathlib import Path
import numpy as np
def multi_tool_analysis_workflow(
geometry_file: Path,
analysis_config: dict,
output_dir: Path
) -> dict:
"""
*See sub-skills for full details.*
## Resources
### OrcaFlex API
- **Documentation**: OrcFxAPI Python documentation (in OrcaFlex installation)
- **Examples**: OrcaFlex → Examples → Python folder
- **Support**: support@orcina.com
### ANSYS AQWA
- **ANSYS ACT**: Application Customization Toolkit for scripting
- **PyAnsys**: https://github.com/pyansys
- **Documentation**: ANSYS Help → AQWA → Programmer's Guide
### Testing
- **pytest**: https://docs.pytest.org/
- **unittest.mock**: https://docs.python.org/3/library/unittest.mock.html
- **Mock Testing Best Practices**: Various online resources
### Python API Design
- **PEP 8**: Python style guide
- **Design Patterns**: Gang of Four patterns
- **Abstract Base Classes**: Python ABC module documentation
---
**Use this skill for:** Expert API integration with marine analysis software, mock testing strategies, and automation workflows with robust error handling.
## Sub-Skills
- [1. API Availability Checking (+2)](1-api-availability-checking/SKILL.md)Related Skills
library-evaluation-integration
Create evaluation scripts and integration tests for Python scientific libraries in the digitalmodel package. Follows the established pattern from fluids, ht, meshio, sectionproperties, and pygmt evaluations.
clean-worktree-integration-from-dirty-main
Land validated issue work from isolated worktrees when the main checkout is dirty by creating a fresh integration worktree, cherry-picking only implementation commits, re-running combined validation, and preparing push/closeout artifacts.
hermes-ecosystem-integration
Wire Hermes into workspace-hub ecosystem — multi-repo skills, config sync, session export to learning pipeline, memory cross-pollination, skill patch tracking, and cross-machine health checks.
llm-wiki-roadmap-integration
Integrate repo-ecosystem work into an existing llm-wiki / knowledge-roadmap issue without creating duplicate GitHub issues.
mkdocs-integration-with-python-package
Sub-skill of mkdocs: Integration with Python Package (+2).
improve-integration
Sub-skill of improve: Integration.
clean-code-pre-commit-integration
Sub-skill of clean-code: Pre-commit Integration.
agent-teams-work-queue-integration
Sub-skill of agent-teams: Work Queue Integration.
vscode-extensions-git-workflow-integration
Sub-skill of vscode-extensions: Git Workflow Integration (+1).
raycast-alfred-project-switcher-integration
Sub-skill of raycast-alfred: Project Switcher Integration.
raycast-alfred-5-raycast-extension-api-integration
Sub-skill of raycast-alfred: 5. Raycast Extension - API Integration.
docker-1-cicd-pipeline-integration
Sub-skill of docker: 1. CI/CD Pipeline Integration (+2).