skills/43-wentorai-research-plugins/skills/domains/geoscience/climate-science-guide/SKILL.md
Climate data analysis, modeling workflows, and carbon neutrality research met...
npx skillsauth add brycewang-stanford/Awesome-Agent-Skills-for-Empirical-Research climate-science-guideInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A research skill for analyzing climate data, working with climate model outputs, and conducting carbon-related studies. Covers data sources, standard analytical workflows, and visualization techniques used in climate science publications.
| Dataset | Variables | Resolution | Period | Source | |---------|-----------|-----------|--------|--------| | ERA5 | Temperature, precipitation, wind, etc. | 0.25 deg, hourly | 1940-present | ECMWF/Copernicus | | GPCP | Precipitation | 2.5 deg, monthly | 1979-present | NASA | | HadCRUT5 | Surface temperature anomaly | 5 deg, monthly | 1850-present | Met Office | | NOAA GHCN | Station temperature, precipitation | Point data | 1850-present | NOAA | | CRU TS | Temperature, precipitation, vapor pressure | 0.5 deg, monthly | 1901-present | UEA CRU |
import xarray as xr
def load_cmip6_data(model: str, experiment: str, variable: str,
member: str = 'r1i1p1f1') -> xr.Dataset:
"""
Load CMIP6 model output from a local or cloud archive.
Args:
model: Model name (e.g., 'CESM2', 'UKESM1-0-LL')
experiment: SSP scenario (e.g., 'ssp245', 'ssp585', 'historical')
variable: Variable name (e.g., 'tas', 'pr', 'tos')
member: Ensemble member ID
"""
# Using Pangeo cloud catalog
import intake
catalog = intake.open_esm_datastore(
"https://storage.googleapis.com/cmip6/pangeo-cmip6.json"
)
query = catalog.search(
source_id=model,
experiment_id=experiment,
variable_id=variable,
member_id=member,
table_id='Amon' # Monthly atmospheric data
)
ds = query.to_dataset_dict(zarr_kwargs={'consolidated': True})
key = list(ds.keys())[0]
return ds[key]
import numpy as np
def compute_global_mean_anomaly(ds: xr.Dataset, var: str = 'tas',
baseline: tuple = (1850, 1900)) -> xr.DataArray:
"""
Compute area-weighted global mean temperature anomaly
relative to a baseline period.
"""
# Area weighting by latitude
weights = np.cos(np.deg2rad(ds.lat))
weights = weights / weights.sum()
# Global mean
global_mean = ds[var].weighted(weights).mean(dim=['lat', 'lon'])
# Baseline climatology
baseline_mean = global_mean.sel(
time=slice(str(baseline[0]), str(baseline[1]))
).mean('time')
anomaly = global_mean - baseline_mean
return anomaly
# Usage
# anomaly = compute_global_mean_anomaly(historical_ds)
# anomaly.plot() # produces a time series of temperature anomaly
Track cumulative CO2 emissions against the remaining carbon budget for temperature targets:
def carbon_budget_tracker(cumulative_emissions_gtco2: float,
target_warming: float = 1.5) -> dict:
"""
Estimate remaining carbon budget.
Based on IPCC AR6 estimates.
"""
# IPCC AR6 remaining budget from 2020 (GtCO2)
budgets = {
1.5: {'50pct': 500, '67pct': 400, '83pct': 300},
2.0: {'50pct': 1350, '67pct': 1150, '83pct': 900}
}
budget = budgets[target_warming]
remaining = {prob: val - cumulative_emissions_gtco2
for prob, val in budget.items()}
# At ~40 GtCO2/year current rate
years_left = {prob: max(0, val / 40) for prob, val in remaining.items()}
return {'remaining_budget_GtCO2': remaining, 'years_at_current_rate': years_left}
result = carbon_budget_tracker(cumulative_emissions_gtco2=200, target_warming=1.5)
print(result)
import matplotlib.pyplot as plt
import cartopy.crs as ccrs
def plot_climate_map(data: xr.DataArray, title: str,
cmap: str = 'RdBu_r', vmin: float = None,
vmax: float = None):
"""Publication-quality climate map."""
fig = plt.figure(figsize=(12, 6))
ax = fig.add_subplot(1, 1, 1, projection=ccrs.Robinson())
ax.coastlines(linewidth=0.5)
ax.gridlines(draw_labels=True, linewidth=0.3, alpha=0.5)
im = data.plot(ax=ax, transform=ccrs.PlateCarree(),
cmap=cmap, vmin=vmin, vmax=vmax,
add_colorbar=False)
cbar = plt.colorbar(im, ax=ax, orientation='horizontal',
pad=0.05, shrink=0.7)
cbar.set_label(data.attrs.get('units', ''))
ax.set_title(title, fontsize=14)
plt.tight_layout()
return fig
cftime) for model outputs with non-standard calendarsdevelopment
Conduct rigorous thematic analysis (TA) of qualitative data following Braun and Clarke's (2006) six-phase framework. Use whenever the user mentions 'thematic analysis', 'TA', 'Braun and Clarke', 'qualitative coding', 'identifying themes', or asks for help analysing interviews, focus groups, open-ended survey responses, or transcripts to identify patterns. Also trigger for questions about inductive vs theoretical coding, semantic vs latent themes, essentialist vs constructionist epistemology, building a thematic map, or writing up a qualitative findings section. Covers all six phases, the four upfront analytic decisions, the 15-point quality checklist, and the five common pitfalls. Produces a Word document write-up and an annotated thematic map. Does NOT cover IPA, grounded theory, discourse analysis, conversation analysis, or narrative analysis — use a different method for those.
development
Guide users through writing a systematic literature review (SLR) following the PRISMA 2020 framework. Use this skill whenever the user mentions 'systematic review', 'systematic literature review', 'SLR', 'PRISMA', 'PRISMA 2020', 'PRISMA flow diagram', 'PRISMA checklist', or asks for help writing, structuring, or auditing a literature review that follows reporting guidelines. Also trigger when the user asks about inclusion/exclusion criteria for a review, search strategies for databases like Scopus/WoS/PubMed, study selection processes, risk of bias assessment, or narrative synthesis for a review paper. This skill covers the full PRISMA 2020 checklist (27 items), produces a Word document manuscript in strict journal article format, generates an annotated PRISMA flow diagram, and enforces APA 7th Edition referencing throughout. It does NOT cover meta-analysis or statistical pooling. By Chuah Kee Man.
testing
Performs placebo-in-time sensitivity analysis with hierarchical null model and optional Bayesian assurance. Use when checking model robustness, verifying lack of pre-intervention effects, or estimating study power.
data-ai
Fit, summarize, plot, and interpret a chosen CausalPy experiment. Use after the causal method has been selected, including when configuring PyMC/sklearn models and scale-aware custom priors.