$npx -y skills add ma-compbio-lab/SkillFoundry --skill gbif-dataset-search-starterUse this skill to query the official GBIF dataset-search API and summarize a small biodiversity dataset result set.
| 1 | # GBIF Dataset Search Starter |
| 2 | |
| 3 | Use this skill to query the official GBIF dataset-search API and summarize a small biodiversity dataset result set. |
| 4 | |
| 5 | ## What it does |
| 6 | |
| 7 | - Searches GBIF dataset metadata with a free-text query. |
| 8 | - Returns compact dataset summaries including dataset keys, titles, DOI, license, and publishing country. |
| 9 | - Supports canonical-asset fallback for the main smoke query when the live API is transiently unavailable. |
| 10 | |
| 11 | ## When to use it |
| 12 | |
| 13 | - You need a runnable starter for `Biodiversity dataset discovery`. |
| 14 | - You want a lightweight biodiversity-metadata search step before downstream occurrence or phylogenetics workflows. |
| 15 | |
| 16 | ## Example |
| 17 | |
| 18 | ```bash |
| 19 | python3 skills/ecology-evolution-and-biodiversity/gbif-dataset-search-starter/scripts/run_gbif_dataset_search.py \ |
| 20 | --query puma \ |
| 21 | --out scratch/gbif-datasets/puma_datasets.json |
| 22 | ``` |
| 23 | |
| 24 | ## Verification |
| 25 | |
| 26 | - Skill-local tests: `python3 -m unittest discover -s skills/ecology-evolution-and-biodiversity/gbif-dataset-search-starter/tests -p 'test_*.py'` |
| 27 | - Repository smoke: `python3 -m unittest tests.smoke.test_phase31_frontier_leaf_conversion_skills -v` |