astropy
Skill by sickn33
Astropy is a Python skill for astronomy work. It guides an AI assistant through coordinate transforms, units, FITS files, cosmology, time handling, tables and WCS. It is aimed at astronomers and researchers doing data analysis.
Install astropy
Built from the published package, never by AI.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agentic-awesome-skills/skills/astropy ~/.claude/skills/astropyRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/sickn33/agentic-awesome-skills /tmp/agentic-awesome-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/agentic-awesome-skills/skills/astropy ~/.gemini/antigravity-cli/skills/astropyAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Astropy is a Python package for astronomy. This skill covers coordinate transformations, units and quantities, FITS file operations, cosmological calculations, precise time handling, table operations, and WCS conversions between pixel and world coordinates. It includes short code examples for converting coordinates, reading FITS headers, computing cosmological distances, and cross-matching catalogs.
The skill is aimed at astronomers and researchers doing data analysis in Python. Its bundled reference files are short pointers, so the official Astropy documentation is the main source for detailed procedures. The source notes that AltAz and precise-time transforms can auto-download IERS Earth-orientation data, and that named-object and remote FITS operations are network accesses.
Written from the project's SKILL.md and checked against it.
What it can do
- Units and quantitiesConverts physical quantities between units and handles logarithmic units and equivalencies.
- Coordinate systemsCreates SkyCoord objects, transforms between frames, and matches coordinates to catalogs.
- Cosmological calculationsComputes luminosity distance, lookback time, age and Hubble parameter at a given redshift.
- FITS file handlingReads and writes FITS headers, image data and tables, including memory mapping.
- Table operationsReads and writes tables in several formats and supports joins, grouping and masking.
- Time handlingConverts between time scales and formats such as UTC, TT, TDB, JD and MJD.
- WCS transformationsConverts pixel coordinates to world coordinates and back using FITS headers.
What you need
- Python
- uv for installing the astropy package
Try asking
- Convert RA 10.5 and Dec 41.2 degrees from ICRS to Galactic coordinates
- Compute the luminosity distance and lookback time at z=1.5 using Planck18
- Read the EXPTIME and FILTER keywords from my FITS observation file
Good to know
- Reference files are short pointers, not full local documentation.
- AltAz and precise-time transforms may auto-download IERS data unless auto_download is disabled.
- Cross-matching returns nearest neighbors, not confirmed physical matches.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/astropy/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md12 KB -
references/coordinates.md488 B -
references/cosmology.md393 B -
references/fits.md403 B -
references/tables.md383 B
Show all 8 files
-
references/time.md307 B -
references/units.md439 B -
references/wcs_and_other_modules.md472 B
Alternatives to astropy
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
astropy: common questions
Does the astropy skill need internet access?
Some tasks do. The source says AltAz and precise-time transforms can auto-download IERS data, and named-object and remote FITS operations are network accesses that need task-appropriate authorization.
Is catalog cross-matching guaranteed to find the same object?
No. The source says cross-matching returns nearest neighbors, which may be many-to-one, and not confirmed physical identity, so epochs, proper motion and uncertainty should be checked.
Does the skill include full Astropy documentation?
No. The source says the bundled reference files are short pointers and placeholders, and the official Astropy documentation should be followed for detailed procedures.
How do I install astropy?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is astropy free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is astropy safe to use?
It scores 92 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to astropy?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
