Agent skill

Seawater Sound Speed Calculation

by InternScience in InternScience/scp

Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.

MITAuto-check passed

Install Seawater Sound Speed Calculation

skills CLI
$ npx skills add InternScience/scp --skill seawater-sound-speed-calculation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install InternScience/scp seawater-sound-speed-calculation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/InternScience/scp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/seawater-sound-speed-calculation .claude/skills/seawater-sound-speed-calculation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
seawater-sound-speed-calculation
GitHub stars
170
Used in
1 other repo
Token cost
~1.5k tokens
SKILL.md length
210 words
Files
1
Skills in repo
73
Repo updated
First seen
Licence
MIT

At a glance

Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.

  • Works in 2 steps: MCP Server Definition → Sound Speed Calculation Workflow
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Seawater Sound Speed Calculation is an agent skill from InternScience/scp. Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The licence is MIT.

Example prompts

  • “/seawater-sound-speed-calculation”

Requirements

  • Python 3

Workflow steps

2 steps, taken from the step headings in SKILL.md.

  1. MCP Server Definition
  2. Sound Speed Calculation Workflow

What it can do on your machine

Read from SKILL.md and the folder at commit cea5398. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Seawater Sound Speed Calculation loads about 1.5k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 210 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from InternScience/scp at commit cea5398, republished under its MIT licence (© InternScience). 210 words, ~1,502 tokens.

Download SKILL.mdSave it as .claude/skills/seawater-sound-speed-calculation/SKILL.md (or your agent's skills folder).
name
seawater-sound-speed-calculation
description
Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.
license
MIT license
metadata.skill-author
PJLab

Seawater Sound Speed Calculation

Usage

1. MCP Server Definition
python
import asyncio
import json
from mcp.client.streamable_http import streamablehttp_client
from mcp import ClientSession

class OceanClient:
    """OceanGSW-Tool MCP Client"""

    def __init__(self, server_url: str, api_key: str):
        self.server_url = server_url
        self.api_key = api_key
        self.session = None

    async def connect(self):
        """Establish connection and initialize session"""
        try:
            self.transport = streamablehttp_client(
                url=self.server_url,
                headers={"SCP-HUB-API-KEY": self.api_key}
            )
            self.read, self.write, self.get_session_id = await self.transport.__aenter__()
            self.session_ctx = ClientSession(self.read, self.write)
            self.session = await self.session_ctx.__aenter__()
            await self.session.initialize()
            return True
        except Exception as e:
            print(f"✗ connect failure: {e}")
            return False

    async def disconnect(self):
        """Disconnect from server"""
        try:
            if self.session:
                await self.session_ctx.__aexit__(None, None, None)
            if hasattr(self, 'transport'):
                await self.transport.__aexit__(None, None, None)
        except Exception as e:
            print(f"✗ disconnect error: {e}")

    def parse_result(self, result):
        """Parse MCP tool call result"""
        try:
            if hasattr(result, 'content') and result.content:
                content = result.content[0]
                if hasattr(content, 'text'):
                    return json.loads(content.text)
            return str(result)
        except Exception as e:
            return {"error": f"parse error: {e}", "raw": str(result)}
2. Sound Speed Calculation Workflow

This workflow calculates sound speed in seawater using thermodynamic equations.

Workflow Steps:

  1. Calculate Absolute Salinity - Convert practical salinity to absolute salinity
  2. Calculate Conservative Temperature - Convert in-situ temperature to conservative temperature
  3. Calculate Sound Speed - Compute speed of sound in seawater

Implementation:

python
## Initialize client
client = OceanClient(
    "https://scp.intern-ai.org.cn/api/v1/mcp/34/OceanGSW-Tool",
    "<your-api-key>"
)

if not await client.connect():
    print("connection failed")
    exit()

## Input: Seawater properties
input_params = {
    'SP': [35.0, 5.0],           # Practical salinity (PSU)
    't': [15.0, 10.0],           # In-situ temperature (°C)
    'p': [1000.0, 1000.0],       # Pressure (dbar)
    'lon': [120.0, 165.0],       # Longitude (degrees East)
    'lat': [30.0, 45.0]          # Latitude (degrees North)
}

## Step 1: Calculate absolute salinity (SA)
result = await client.session.call_tool(
    "gsw_example_absolute_salinity",
    arguments={
        "SP": input_params['SP'],
        'p': input_params['p'],
        'lon': input_params['lon'],
        'lat': input_params['lat']
    }
)

result_data = client.parse_result(result)
SA_result = result_data["st"]
print("Absolute Salinity:")
for i, sa in enumerate(SA_result):
    print(f"  SP={input_params['SP'][i]} → SA={sa:.4f} g/kg")

## Step 2: Calculate conservative temperature (CT)
result = await client.session.call_tool(
    "gsw_example_conservative_temperature",
    arguments={
        "SA": SA_result,
        't': input_params['t'],
        'p': input_params['p']
    }
)

result_data = client.parse_result(result)
CT_result = result_data["st"]
print("\nConservative Temperature:")
for i, ct in enumerate(CT_result):
    print(f"  t={input_params['t'][i]}°C → CT={ct:.4f}°C")

## Step 3: Calculate sound speed
result = await client.session.call_tool(
    "gsw_example_sound_speed",
    arguments={
        "SA": SA_result,
        'CT': CT_result,
        'p': input_params['p']
    }
)

result_data = client.parse_result(result)
sound_speed_result = result_data["st"]["sound_speed"]

print("\nSound Speed Results:")
for i, speed in enumerate(sound_speed_result):
    print(f"{i+1}. SA={SA_result[i]:.2f} g/kg, CT={CT_result[i]:.2f}°C, p={input_params['p'][i]} dbar")
    print(f"   Sound speed: {speed:.2f} m/s\n")

await client.disconnect()
Tool Descriptions

OceanGSW-Tool Server:

  • gsw_example_absolute_salinity: Calculate absolute salinity

    • Args:
      • SP (list): Practical salinity (PSU)
      • p (list): Pressure (dbar)
      • lon (list): Longitude (degrees East)
      • lat (list): Latitude (degrees North)
    • Returns: Absolute salinity (g/kg)
  • gsw_example_conservative_temperature: Calculate conservative temperature

    • Args:
      • SA (list): Absolute salinity (g/kg)
      • t (list): In-situ temperature (°C)
      • p (list): Pressure (dbar)
    • Returns: Conservative temperature (°C)
  • gsw_example_sound_speed: Calculate sound speed

    • Args:
      • SA (list): Absolute salinity (g/kg)
      • CT (list): Conservative temperature (°C)
      • p (list): Pressure (dbar)
    • Returns: Sound speed (m/s)
Input/Output

Input:

  • SP: Practical salinity (0-42 PSU typical range)
  • t: In-situ temperature (-2 to 40°C)
  • p: Sea pressure (0-11000 dbar)
  • lon: Longitude (-180 to 180°E)
  • lat: Latitude (-90 to 90°N)

Output:

  • Sound speed in m/s (typically 1400-1600 m/s in ocean)
Use Cases
  • Underwater acoustics and sonar systems
  • Ocean circulation modeling
  • Submarine navigation
  • Marine seismic surveys
  • Oceanographic research
Performance Notes
  • Standards: TEOS-10 (Thermodynamic Equation of Seawater)
  • Accuracy: ±0.02 m/s
  • Execution time: <1 second for batch calculations

© InternScience, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/seawater-sound-speed-calculation of InternScience/scp.

Open the folder on GitHubat commit cea5398

Used in 2 other repositories

We found 2 copies of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in InternScience/scp, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Seawater Sound Speed Calculation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Seawater Sound Speed Calculation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Seawater Sound Speed Calculation this skillInternScience/scp1701 repos~1.5kAutomated safety check: PassMIT
Speedsickn33/agentic-awesome-skills47k2 repos~447Automated safety check: PassMIT
Mock Best Practicesthedaviddias/Front-End-Checklist74k—~425Automated safety check: PassMIT
Soundhashgraph-online/awesome-codex-plugins1.3k—~2.4kAutomated safety check: PassApache-2.0
Interactivity Best Practicesremotion-dev/remotion63k—~181Automated safety check: PassCustom licence
Eol Resistor Calculatorsickn33/agentic-awesome-skills47k1 repos~3.5kAutomated safety check: PassMIT

Similar skills

  • Speed

    sickn33/agentic-awesome-skills

    Launch RSVP speed reader for text

    47k GitHub starsUsed in 2 repos~447 tokens
    Auto-check passed
  • Mock Best Practices

    thedaviddias/Front-End-Checklist

    A skill your agent uses when reviewing CI coverage, automated checks, or test strategy related to Follow mocking best practices.

    74k GitHub stars~425 tokensUpdated 4 days ago
    Testing & QAAuto-check passed
  • Sound

    hashgraph-online/awesome-codex-plugins

    Make a game's sound effects and synthesized music on the creator's own computer, free, with no provider or account — a set of effects (jump, coin, hit, explosion, win, lose, UI) rendered from…

    1.3k GitHub stars~2.4k tokensUpdated yesterday
    Game DevelopmentAuto-check passed
  • Interactivity Best Practices

    remotion-dev/remotion

    Official

    Best practices for writing Remotion animations that stay intuitive for agents and editable in Remotion Studio Visual Mode.

    63k GitHub stars~181 tokensUpdated yesterday
    Media & CreativeAuto-check passed
  • Eol Resistor Calculator

    sickn33/agentic-awesome-skills

    Calculates and validates end-of-line (EOL, SEOL, DEOL, TEOL) resistor loops for intrusion alarm panels (Honeywell, DSC, Paradox, Bosch) with wire gauge drop and state tables.

    47k GitHub starsUsed in 1 repo~3.5k tokens
    Auto-check passed
  • Dotnet Best Practices

    github/awesome-copilot

    Official

    Ensure .NET/C code meets best practices for the solution/project.

    40k GitHub starsUsed in 2 repos~808 tokens
    DevelopmentAuto-check passed

More from InternScience/scp

All 73 skills in this repo
  • Given an rsID, query multiple databases (dbSNP, FAVOR, GWAS Catalog, ClinVar, gnomAD, PharmGKB, ClinGen) for comprehensive annotation.

    170 GitHub starsUsed in 1 repo~2.2k tokens
    Auto-check passed
  • Calculate atmospheric parameters including Coriolis parameter, geostrophic wind, heat index, potential temperature, and dewpoint for meteorology and climate science.

    170 GitHub starsUsed in 1 repo~2.1k tokens
    Auto-check passed
  • Biomedical Web Search

    InternScience/scp

    Search biomedical literature and web content using Tavily search engine for research and clinical information.

    170 GitHub starsUsed in 1 repo~598 tokens
    Auto-check passed
  • Calculate buoyancy forces and acceleration for fluid mechanics and hydrodynamics analysis.

    170 GitHub starsUsed in 1 repo~540 tokens
    Auto-check passed
  • Capacitance Calculation

    InternScience/scp

    Calculate electrical capacitance from geometric parameters and dielectric properties for circuit design.

    170 GitHub starsUsed in 1 repo~537 tokens
    Auto-check passed
  • Chembl Molecule Search

    InternScience/scp

    Search ChEMBL database for molecule information by name to retrieve bioactivity data and chemical structures.

    170 GitHub starsUsed in 1 repo~757 tokens
    Auto-check passed

Questions about Seawater Sound Speed Calculation

What does Seawater Sound Speed Calculation do?

Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox. Seawater Sound Speed Calculation is an agent skill from InternScience/scp. Calculate sound speed in seawater from practical salinity, temperature, and pressure using the Gibbs Seawater Oceanographic Toolbox.

How do I install Seawater Sound Speed Calculation in Claude Code?

Run `npx skills add InternScience/scp --skill seawater-sound-speed-calculation -a claude-code`. Or copy the skill folder (skills/seawater-sound-speed-calculation in InternScience/scp) into .claude/skills/seawater-sound-speed-calculation in your project. Claude Code loads it when a task matches its description.

How do I install Seawater Sound Speed Calculation in Codex?

Run `npx skills add InternScience/scp --skill seawater-sound-speed-calculation -a codex`. Or copy the skill folder (skills/seawater-sound-speed-calculation in InternScience/scp) into .agents/skills/seawater-sound-speed-calculation in your project. Codex loads it when a task matches its description.

Can I use Seawater Sound Speed Calculation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add InternScience/scp --skill seawater-sound-speed-calculation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/seawater-sound-speed-calculation, .gemini/skills/seawater-sound-speed-calculation, .github/skills/seawater-sound-speed-calculation and .opencode/skills/seawater-sound-speed-calculation in your project.

What does Seawater Sound Speed Calculation need to run?

SKILL.md names no scripts, command-line tools or credentials: Seawater Sound Speed Calculation is instructions for the agent only. Our summary lists: Python 3.

Does Seawater Sound Speed Calculation access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Seawater Sound Speed Calculation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Seawater Sound Speed Calculation use?

Seawater Sound Speed Calculation is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Seawater Sound Speed Calculation use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Seawater Sound Speed Calculation?

Skills that share tags, products or a category with Seawater Sound Speed Calculation: Speed (sickn33/agentic-awesome-skills, 47k stars), Mock Best Practices (thedaviddias/Front-End-Checklist, 74k stars), Sound (hashgraph-online/awesome-codex-plugins, 1.3k stars) and Interactivity Best Practices (remotion-dev/remotion, 63k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Seawater Sound Speed Calculation?

InternScience (a GitHub organization) maintains it in InternScience/scp, which has 170 GitHub stars. The repository holds 73 skills in this directory. The repository was last updated on June 3, 2026.

Source: InternScience/scp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.