$npx -y skills add ma-compbio-lab/SkillFoundry --skill xarray-climate-cube-starterUse this skill to build a deterministic toy climate cube with Xarray and summarize simple spatiotemporal statistics.
| 1 | # Xarray Climate Cube Starter |
| 2 | |
| 3 | Use this skill to build a deterministic toy climate cube with Xarray and summarize simple spatiotemporal statistics. |
| 4 | |
| 5 | ## What it does |
| 6 | |
| 7 | - Creates a monthly temperature cube with `time`, `lat`, and `lon` dimensions. |
| 8 | - Computes annual mean temperature, seasonal range, per-latitude means, and the hottest month. |
| 9 | - Returns compact JSON that is easy to reuse in downstream scientific-Python workflows. |
| 10 | |
| 11 | ## When to use it |
| 12 | |
| 13 | - You need a local, no-auth starter for climate or environmental data handling. |
| 14 | - You want a minimal example of labeled multidimensional array operations with Xarray. |
| 15 | |
| 16 | ## Example |
| 17 | |
| 18 | ```bash |
| 19 | slurm/envs/scientific-python/bin/python skills/earth-climate-and-geospatial-science/xarray-climate-cube-starter/scripts/run_xarray_climate_cube.py \ |
| 20 | --out scratch/xarray/climate_cube_summary.json |
| 21 | ``` |
| 22 | |
| 23 | ## Verification |
| 24 | |
| 25 | - Skill-local tests: `python3 -m unittest discover -s skills/earth-climate-and-geospatial-science/xarray-climate-cube-starter/tests -p 'test_*.py'` |
| 26 | - Repository smoke: `python3 -m unittest tests.smoke.test_frontier_domain_skills -v` |