Model-agnostic, harness-agnostic skills for working with Dark Energy Spectroscopic Instrument (DESI) data and analysis workflows.
This repository follows a deliberately small structure: plain text, short runnable helpers, inspectable assumptions, and no hidden framework lock-in. Each skill is a directory that an AI coding agent, notebook assistant, terminal agent, or human can read directly.
skills/
desi-data-access/
desi-redshift-catalogs/
desi-spectra-analysis/
desi-targeting-photometry/
desi-large-scale-structure/
desi-vacs/
desi-qso/
desi-lya/
desi-galaxy-samples/
desi-nersc/
docs/
skill-format.md
sources.md
scripts/
install_skills.py
list_skills.py
validate_skills.py
tests/
check_paths.sh # every DESI path named in the skills exists (NERSC)
smoke.sh # run each helper script on small real files (NERSC)
prompts.md # manual skill-routing checks
.claude-plugin/ # Claude Code plugin + marketplace
plugin.json # portable plugin manifest (Codex)
.agents/plugins/ # Codex marketplace
.antigravity-plugin/ # Antigravity plugin manifest
gemini-extension.json # Gemini CLI extension
The portable contract is:
SKILL.mdis required.SKILL.mdfrontmatter hasnameanddescription(required) pluslicenseand, where useful,compatibility(seedocs/skill-format.md).references/contains optional detailed domain notes.scripts/contains optional runnable helpers.assets/contains optional templates and static files (e.g. example batch scripts or config files)- Harness-specific adapters belong outside the core skill contract.
Any harness can use these skills by loading the relevant SKILL.md and, only
when needed, the referenced files under that skill's references/ directory.
desi-data-access: choose access method, release, path, and download scope for public and internal collaboration DESI data.desi-redshift-catalogs: work with zcatalog files, redshift quality cuts, and unique-target selections.desi-spectra-analysis: read, inspect, plot, and interpret DESI spectra and coadds.desi-targeting-photometry: reason about DESI targets, target bits, Legacy Surveys photometry, and cross-matching.desi-large-scale-structure: use DESI LSS catalogs, randoms, weights, mocks, and clustering-ready products.desi-vacs: locate, version-match, join, and cite DESI value-added catalogs.desi-qso: work with DESI quasar targets, catalogs, and tracer-QSO samples.desi-lya: work with DESI Lyman-alpha forest products and samples.desi-galaxy-samples: define and check DESI galaxy tracer samples (BGS, LRG, ELG, LRG+ELG): target bits, redshift ranges, success cuts, LSS files.desi-nersc: work at NERSC: Slurm jobs and QOS, accounts, filesystems, DESI environments, and login-vs-compute rules.
List skills:
python3 scripts/list_skills.pyValidate repository structure:
python3 scripts/validate_skills.pyAt NERSC, check that every DESI path the skills name still exists, and run each helper script on small real files (both are light enough for a login node):
bash tests/check_paths.sh
bash tests/smoke.shtests/prompts.md lists prompts for checking by hand that agents pick the
right skill.
| Tool | User-level folder | Project-level folder |
|---|---|---|
| OpenAI Codex | ~/.agents/skills |
.agents/skills |
| Claude Code | ~/.claude/skills |
.claude/skills |
| Google Antigravity (App, IDE, CLI) | ~/.gemini/config/skills |
.agents/skills |
| Claude apps (claude.ai, desktop, mobile) | uploaded in Customize > Skills (see below) | — |
| Gemini CLI (replaced by Antigravity CLI in June 2026) | ~/.gemini/skills or ~/.agents/skills |
.gemini/skills or .agents/skills |
The repository is also a plugin for Claude Code, Codex, and Antigravity, and
an extension for Gemini CLI. A plugin install copies the skills into the
tool's own cache; update it through the tool rather than with git pull.
Pick either a plugin or the install script below for a given tool, not
both, or the tool will see every skill twice.
Claude Code (inside a session; skills are then named desi-skills:<skill>):
/plugin marketplace add desihub/desi-skills
/plugin install desi-skills@desi-skills
or from a shell: claude plugin marketplace add desihub/desi-skills then
claude plugin install desi-skills@desi-skills. Update with
claude plugin marketplace update desi-skills and
claude plugin update desi-skills@desi-skills.
Codex:
codex plugin marketplace add desihub/desi-skills
codex plugin add desi-skills@desi-skills
codex plugin marketplace upgrade # later, to pick up new versionsAntigravity CLI (from a clone of this repository):
git clone https://github.com/desihub/desi-skills.git
agy plugin install ./desi-skillsGemini CLI (if you still use it; Antigravity CLI replaced it in June 2026):
gemini extensions install https://github.com/desihub/desi-skills
gemini extensions update desi-skills # laterUpload each skill as a ZIP of its folder (the folder name must stay the skill name), in Customize > Skills > + > Create skill > Upload a skill. Code execution must be enabled (Settings > Capabilities). From a clone:
mkdir -p dist && cd skills && for s in desi-*; do zip -qr ../dist/$s.zip $s; doneThe apps have no NERSC or DESI filesystem access, so the helper scripts that
read /dvs_ro only work at NERSC; desi-nersc is of little use there.
Skills enabled in the Claude apps also load in Claude Code (signed in with the
same account, v2.1.273+, listed under "claude.ai sync"). If you also install
them for Claude Code, disable one copy (syncClaudeAiSkills: false, or don't
upload them) to avoid duplicates.
The manifests are .claude-plugin/ (Claude Code), plugin.json and
.agents/plugins/marketplace.json (Codex), .antigravity-plugin/plugin.json
(Antigravity), and gemini-extension.json (Gemini CLI). Keep their
version fields equal and bump them together for a release;
scripts/validate_skills.py checks this.
Symlink every skill into the user-level folders:
python3 scripts/install_skills.pyDefaults: --targets agents,claude (plus antigravity if ~/.gemini exists),
--scope global, --method symlink. Symlinks pick up git pull in this
checkout automatically.
python3 scripts/install_skills.py --targets all # agents, claude, antigravity
python3 scripts/install_skills.py --scope local --project-dir /path/to/project
python3 scripts/install_skills.py --method copy # copies instead of symlinks
python3 scripts/install_skills.py --dry-run # preview only
python3 scripts/install_skills.py --uninstall # remove desi-* symlinks from any checkoutUpgrading from the old installer. Earlier versions installed into
~/.codex/skills and ~/.gemini/skills. Current Codex no longer reads
~/.codex/skills, and Antigravity CLI reads both ~/.gemini/skills and
~/.gemini/config/skills, so it would list each skill twice. Run
python3 scripts/install_skills.py --uninstall once to remove the old
symlinks, including ones into another clone of this repo and ones left
dangling by renamed skills, then install again. Real directories and copies
are never removed. If anything is still in the way, the installer lists it and
installs nothing.
Renamed skills. desi-bgs, desi-lrg, and desi-elg were merged into
desi-galaxy-samples. If you installed the old names, run
python3 scripts/install_skills.py --uninstall and then install again so the
old symlinks are removed.
If you don't want Claude Code to prompt for permission to read reference files each time it uses a skill in a new session, you can use permission settings to pre-approve the paths.
The cleanest fix is to add read permissions for your skills directory and repo in your settings file. In your .claude/settings.json (project-level) or ~/.claude/settings.json (user-level), add allow permissions for the project-level or user-level skills directory AND the repository. Here is an example user-level ~/.claude/settings.json:
{
"model": "sonnet",
"theme": "dark",
"permissions": {
"allow": [
"Read(//path/to/home/.claude/skills/**)",
"Read(//path/to/repo/desi-skills/**)"
]
}
}Adjust the glob to wherever your skills actually live. If your skills are user-level, you might use an absolute path like Read(//home/you/.claude/skills/**). This tells Claude Code it never needs to ask before reading anything under that directory, so reference file access becomes silent. Note the double-slash is intentional and tells Claude code that it is an absolute path. Because it first looks at the skills link and then resolves it to the true repository location, you need to have both to avoid Read requests.
The skill text is plain Markdown and has no Python dependency. Helper scripts
that inspect FITS catalogs or plot spectra use optional packages listed in
requirements-scripts.txt.
DESI public data are released under CC BY 4.0 and require the appropriate DESI
release citation and acknowledgments in derived work. See
docs/sources.md and the references inside individual skills for official DESI
links.
The skill text and helper scripts in this repository are MIT licensed. DESI data, documentation, and upstream software remain under their own licenses and citation requirements.
Both Anthropic's Claude and OpenAI's GPT-5.5 were used in the development of this repository.