agentleFS
boettiger-labboettiger-lab/agent-skills/stac-navigation/SKILL.md

stac-navigation

Skill4 starsChanged 15 days agoBSD-3-ClauseView on GitHub

Use when browsing, querying, or reasoning about what datasets exist in a STAC catalog — especially before concluding a dataset is missing or absent. Triggers include STAC browser URLs, s3 stac-collection.json links, or any question about what data is available in a catalog.

The file

Files
SKILL.md

STAC Catalog Navigation

Core Rule

Never conclude a dataset is missing until you have walked the full tree from the root catalog down.

Stopping at a sub-collection and declaring something absent is the primary failure mode.

Decoding STAC Browser URLs

The STAC Browser URL encodes the underlying JSON endpoint:

https://radiantearth.github.io/stac-browser/#/external/<S3-URL>

Fetch the <S3-URL> part directly. Example:

Browser URL: https://radiantearth.github.io/stac-browser/#/external/s3-west.nrp-nautilus.io/public-data/stac/catalog.json
Fetch:       https://s3-west.nrp-nautilus.io/public-data/stac/catalog.json

Navigation Order

1. Fetch ROOT catalog first
   → Walk ALL child links
   → Then walk into sub-collections as needed

2. If given a sub-collection URL, ALSO fetch its parent link
   → Never reason from a sub-collection alone

A dataset may be a child of the root catalog but NOT linked from a sub-collection — both are valid locations.

NRP Catalog Structure

  • Root: https://s3-west.nrp-nautilus.io/public-data/stac/catalog.json
  • High-seas sub-collection: public-high-seas/stac-collection.json (child of root)
  • High-seas datasets may appear as direct children of the root OR as children of the sub-collection — check both before concluding anything

What to Fetch

Each STAC JSON has a links array. Relevant rel values:

relMeaning
rootTop-level catalog — always fetch this first
parentWalk up if you started mid-tree
childWalk down to find datasets
itemLeaf-level data asset

Common Mistake

"The high-seas sub-collection only shows 4 datasets, so the others must be missing."

Wrong. The root catalog may link those datasets directly. Always check the root.

Quick Checklist

  • Have I fetched the root catalog?
  • Have I listed all child hrefs from the root?
  • Did I check both the root AND any relevant sub-collection?
  • Only after all of the above: conclude a dataset is present or absent

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.