marine-carbonate-chemistry
Solves seawater carbonate chemistry with PyCO2SYS for chemical oceanography, ocean acidification, and marine carbon-cycle research.
Install / Use
npx skills add K-Dense-AI/scientific-agent-skills --skill marine-carbonate-chemistryInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Education & ResearchSupported Platforms
Our assessment of marine-carbonate-chemistry
marine-carbonate-chemistry scores 97/100 on our quality scale, 18th of 438 Education & Research skills we index (top 5%).
Its SKILL.md is 9.3 KB long, well organised into 8 sections with 3 code examples: a thorough specification that gives an agent plenty to work with.
With 46,441 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 16 days ago, so marine-carbonate-chemistry is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
marine-carbonate-chemistry compared with similar skills
All 4 of these similar skills score higher than marine-carbonate-chemistry; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| marine-carbonate-chemistry (this skill)by K-Dense-AI | 97 | 46.4k | 16d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 93.2k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 74.6k | today | CLAUDE.md |
| last30days-skillby mvanhorn | 100 | 63.7k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 86.2k | today | MCP Server |
Frequently asked questions
- How do I install marine-carbonate-chemistry?
- Run
npx skills add K-Dense-AI/scientific-agent-skills --skill marine-carbonate-chemistry. The install tabs above show the steps for each supported agent. - Which AI agents does marine-carbonate-chemistry work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is marine-carbonate-chemistry safe to use?
- It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is marine-carbonate-chemistry still maintained?
- The repository was last updated 16 days ago, so marine-carbonate-chemistry is actively maintained.
Skill content
View source on GitHubname: marine-carbonate-chemistry description: Solves seawater carbonate chemistry with PyCO2SYS for chemical oceanography, ocean acidification, and marine carbon-cycle research. Use for paired total alkalinity, dissolved inorganic carbon, pH, or seawater pCO2/fCO2 measurements; carbonate speciation; aragonite and calcite saturation; Revelle factors; lab-to-in-situ temperature and pressure corrections; and measurement uncertainty propagation. Applies to carbonate-system calculations, not general aqueous speciation or air-sea gas-flux estimation. license: MIT compatibility: Requires Python 3.13 with PyCO2SYS 1.8.3.4 and NumPy. Network access is needed only to install packages or obtain external data; bundled calculations run locally without credentials. metadata: version: "1.1" skill-author: K-Dense Inc. upstream-version: "PyCO2SYS 1.8.3.4" last-reviewed: "2026-10-01"
Marine Carbonate Chemistry
Turn two independent seawater carbonate measurements into a reproducible speciation table, mineral saturation estimates, and a record of the calculation assumptions. Targets PyCO2SYS 1.8.3.4, tested with Python 3.13 and NumPy 2.5.3. As reviewed on 2026-10-01, this remains the stable PyPI release. The v2 documentation is for a beta with breaking changes; use the v1 documentation for this pin.
When to use
- Analyze bottle samples, shipboard carbonate measurements, or acidification experiments.
- Calculate total-scale pH, seawater pCO2/fCO2, carbonate ion, aragonite/calcite saturation state, or the Revelle factor from a valid measured pair.
- Convert a system determined at laboratory conditions to specified ocean conditions.
- Quantify how stated measurement uncertainties affect the calculated results.
This workflow concerns seawater carbonate equilibria. Freshwater, porewaters with substantial uncharacterized alkalinity, brines outside the selected calibration range, and reaction/transport models require additional chemistry and validation. Do not infer an air-sea flux or atmospheric carbon removal from a carbonate equilibrium alone.
Establish the measurement contract
Before running a solver, identify the two measured variables, their units, quality flags, and their temperature/pressure basis. Retain a separate source table containing station, depth, timestamps, methods, reference materials, and original QC codes, joined by sample ID. Do not turn missing values or rejected measurements into zero.
| Quantity | Required convention | |---|---| | Total alkalinity (TA), DIC, nutrients | micromol per kg seawater, not per litre or kg water | | Salinity | Practical Salinity, not Absolute Salinity in g/kg | | Temperature | In-situ/measurement temperature in degrees Celsius, not potential or Conservative Temperature | | Pressure | Sea pressure in dbar; surface sample is 0, not 1 atmosphere | | pH | Declared total, seawater, free, or NBS scale, at the declared measurement conditions | | pCO2 / fCO2 | Seawater partial pressure / fugacity in microatm; these are distinct quantities |
TA and DIC remain constant during the solver's temperature/pressure conversion for a
closed sample. pH and gas parameters change. Two inputs measured at different conditions
cannot simply share one temperature value. Establish a consistent measurement basis
first. Temperature correction does not repair sample changes caused by gas exchange,
biology, evaporation, or mineral dissolution/precipitation.
Use two independent carbonate parameters. pCO2 plus fCO2 is not an independent pair. Three or more measurements enable an overdetermination check: solve independent pairs and compare predicted versus measured third parameters, including their uncertainty. Do not average inconsistent solutions to hide a calibration or scale mismatch.
Install
Create a dedicated environment in the user's working directory:
uv venv --python 3.13 .venv
uv pip install --python .venv/bin/python "PyCO2SYS==1.8.3.4" "numpy==2.5.3"
On Windows the environment's interpreter is .venv/Scripts/python.exe. The commands
below use the POSIX interpreter path. Set the shell variable SKILL_DIR to this installed
skill's directory. Keep inputs and generated outputs in the working directory.
Workflow
- Prepare paired measurements. Use the schema in references/input-and-results.md. Resolve units and quality flags before creating the input file. Supply phosphate and silicate explicitly; zero is an assumption to justify, not a missing-data code.
- Choose equilibrium constants. Read references/chemistry-decisions.md for pH scales, carbonic-acid constants, borate, saturation interpretation, and uncertainty limits. Match the study's validated convention and report it. The helper supports carbonic-acid options 10 and 15; other systems require a separately verified direct PyCO2SYS call.
- Solve with
scripts/solve_carbonate.py. It validates the full input table, solves the pair, checks finite outputs and DIC species balance, then writescarbonate.csvandprovenance.jsoninto a new output directory. - Review flags and consistency. Inspect calibration-range and gas-pressure flags, carbonate balance, measured-third-parameter residuals when available, and controls. A successful solve does not validate the sample, constants, or measurement method.
- Report at the intended conditions. Results ending
_outdescribe the supplied output temperature/pressure. Unsuffixed results describe input conditions. Gas results retain the helper's uncorrected hydrostatic gas convention (see below). Include parameter pair, pH scale, units, constants, nutrient assumptions, uncertainty scope, software versions, and excluded/flagged samples with the result table.
Worked example: closed-sample condition correction
The following values are synthetic, not field observations. Save this as samples.csv
in a working directory. The two samples differ only in DIC; the second represents a
fixed-alkalinity CO2-addition comparison. Their measurements are at 25 C and 0 dbar;
results are also requested at 10 C and 1000 dbar.
sample_id,par1,par2,salinity,temperature,pressure,total_phosphate,total_silicate,temperature_out,pressure_out,u_par1,u_par2
baseline,2300,2000,35,25,0,0,0,10,1000,2,2
added_co2,2300,2100,35,25,0,0,0,10,1000,2,2
Run from that working directory:
.venv/bin/python "$SKILL_DIR/scripts/solve_carbonate.py" samples.csv \
--par1-type alkalinity --par2-type dic --k-carbonic 10 \
--output-dir carbonate-results
For the baseline, the tested version gives input-condition total pH 8.045886,
pCO2 396.958 microatm, and aragonite saturation 3.386201. At the specified output
conditions, total pH is 8.241241 and aragonite saturation 2.605691. These rounded
values are regression checks for this exact setup, not universal seawater benchmarks.
With independent 2 micromol/kg uncertainties in TA and DIC only, u_pH_total is about
0.004580. This excludes equilibrium-constant and other input uncertainty.
Both rows carry gas_pressure_correction_disabled_output: the output pH and mineral
saturation include pressure effects, but the reported pCO2/fCO2 do not include the
hydrostatic corrections to CO2 solubility and fugacity. Do not compare those gas values
directly with a pressure-corrected subsurface sensor measurement.
For TA + measured pH, use --par2-type ph --ph-scale total only if the source explicitly
identifies total-scale pH; replace par2 and u_par2 with the measured pH and its absolute
standard uncertainty. A column named merely pH is insufficient to establish its scale.
Uncertainty and interpretation
Optional u_ input columns contain absolute one-standard-deviation uncertainties.
They propagate to total pH, pCO2, and aragonite saturation at each requested condition.
The helper assumes independent errors and treats unlisted inputs/constants as exact.
For covariance, constants uncertainty, or strongly nonlinear uncertainty, follow the
decision guide and validate a tailored propagation instead of calling these outputs a
complete uncertainty budget.
Omega < 1 indicates thermodynamic undersaturation with respect to the named mineral. It does not establish a dissolution rate or an organism's response. A lower pH across unmatched samples is not by itself evidence of an anthropogenic acidification trend.
Sources and validation boundary
- PyCO2SYS v1 arguments, units, settings, and result keys
- Uncertainty propagation
- Upstream validation
- Stable release
- Humphreys et al. (2022), PyCO2SYS v1.8
Repository tests exercise the pinned solver, independent-pair round trips, carbon balance,
pH-scale equivalence, condition correction, Revelle-factor derivatives, gas-pressure
conventions, uncertainty quadrature, CSV errors, and the worked example. The helper calls
the local pyco2.sys Python API; it has no HTTP endpoints or authentication. Tests establish
software behavior, not independent field-data validation; upstream's validation page also
contains historical examples, including a removed pyco2.test interface.
Related Skills
Agent-Reach
93.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
74.6kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
last30days-skill
63.7kAI agent skill that researches any topic across Reddit, X, YouTube, HN, Polymarket, and the web - then synthesizes a grounded summary
Scrapling
86.2k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
