Core Python library for astronomy and astrophysics workflows that need Astropy APIs, including units/quantities, coordinates, FITS I/O, tables, time systems, WCS, and cosmology.
SkillScore92Maintained
Automatic
◆Research pack
Last verified 9/8/2026
What it changes
Passed 23 of 25 test cases with the skill, and 18 of 25 without it.
Without skill72%
With skill92%
Checks it passed that the model alone missed
Uses t.loc.with_index('b')[2] for table index lookup
Provides command uv pip install with astropy[recommended]==7.2.0
Recommends using numpy.iterable instead of astropy.utils.isiterable
and 3 more in the full report
5 fixed18 passed either way2 still failing0 broke
Pass-rate lift
+20 pp
Tokens
+154%
Agent turns
0%
Response time
-26%
Model gemini-3.6-flashMeasured 9/8/2026v2 · latest is v323 of 25 cases passed with skill
Tokens, turns and time describe resource use, not a dollar price.
This benchmark measured an earlier version of the skill.
See it in action
One of 5 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 5
Prompt
Write the exact terminal command using `uv` to perform a reproducible install of stable Astropy release 7.2.0 including popular optional packages for plotting and common scientific workflows.
What was checked, without and with the skill
Checked
Without skill
With skill
Provides command uv pip install with astropy[recommended]==7.2.0
Missed
Passed
case-12 · gemini-3.6-flash · 9/8/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md372 lines9 files
Astropy
Overview
Astropy is the core Python package for astronomy, providing essential functionality for astronomical research and data analysis. Use astropy for coordinate transformations, unit and quantity calculations, FITS file operations, cosmological calculations, precise time handling, tabular data manipulation, and astronomical image processing.
When to Use This Skill
Use astropy when tasks involve:
Converting between celestial coordinate systems (ICRS, Galactic, FK5, AltAz, etc.)
Working with physical units and quantities (converting Jy to mJy, parsecs to km, etc.)
Reading, writing, or manipulating FITS files (images or tables)
Cosmological calculations (luminosity distance, lookback time, Hubble parameter)
Precise time handling with different time scales (UTC, TAI, TT, TDB) and formats (JD, MJD, ISO)
WCS transformations between pixel and world coordinates
Astronomical constants and calculations
Quick Start
Targets Astropy 8.0.1. Numerical and small synthetic file examples were executed;
blocks using observation/catalog filenames, online services or a GUI are illustrative
and require those inputs. See review evidence and sources.
import astropy.units as u
from astropy.coordinates import SkyCoord
from astropy.time import Time
from astropy.io import fits
from astropy.table import Table
from astropy.cosmology import Planck18
# Units and quantities
distance = 100 * u.pc
distance_km = distance.to(u.km)
# Coordinates
coord = SkyCoord(ra=10.5*u.degree, dec=41.2*u.degree, frame='icrs')
coord_galactic = coord.galactic