astropy — Claude Code skill: astronomy with Python
Helps an agent write and debug Astropy code for astronomy data. Use it for coordinate transforms, FITS files, tables, and time calculations.
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a claude-codeWhat astropy does
The skill guides an agent through Astropy tasks: converting celestial coordinates and physical units, reading and writing FITS files, working with tables, handling time scales, and mapping image pixels to world coordinates. It also covers cosmological calculations. This is agent guidance, not the Astropy package itself.
The stated requirements are Python 3.11+, Astropy 8.0.1, and NumPy 2+. SciPy is needed for cosmology, matching, and fitting. Some operations, such as resolving object names and reading FITS data remotely, depend on network access. Those operations will not run offline.
Install it with npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a claude-code. The skill file is placed at ~/.claude/skills/astropy/SKILL.md.
What it helps with
- transform coordinates between ICRS and Galactic
- convert a distance from parsecs to kilometers
- read an image or table from a FITS file
- match and filter entries in an astronomy catalog
- convert observation times between UTC, TAI, and TDB
Example prompts for the agent
- Use Astropy to transform these coordinates from ICRS to Galactic.
- Read
catalog.fitsas a table and filter its rows by this condition. - Convert the observation time from UTC to TDB and explain the calculation.
How to install astropy
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a claude-code2Manually: put the files in place
~/.claude/skills/astropy/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/astropy/
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a codex2Manually: put the files in place
.agents/skills/astropy/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a cursor2Manually: put the files in place
.cursor/skills/astropy/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install K-Dense-AI/scientific-agent-skills astropy2Manually: put the files in place
.github/skills/astropy/SKILL.md1Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a gemini-cli2Platform CLI
gemini skills install https://github.com/K-Dense-AI/scientific-agent-skills --path skills/astropyManually: put the files in place
.devin/skills/astropy/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about astropy
How do I install astropy in Claude Code?
Run npx skills add K-Dense-AI/scientific-agent-skills --skill astropy -a claude-code. The skill file will be at ~/.claude/skills/astropy/SKILL.md.
What does the astropy skill do?
It guides an agent writing or debugging astronomy code that uses Astropy, including work with coordinates, units, FITS files, tables, and time.
What does the astropy skill require?
It requires Python 3.11+, Astropy 8.0.1, and NumPy 2+. SciPy is needed for cosmology, matching, and fitting; some operations also require network access.