data-workflows AGENTS.md

Agent instructions for a geospatial data pipeline that converts datasets into cloud-native formats on Kubernetes, a system for running containerized jobs. They define required boundaries, workflow rules, and when to load specialized skills.

In plain words
What is it for?
Use them when ingesting, re-hexing, tuning, troubleshooting, or documenting geospatial datasets.
Why use it?
They help agents choose the right procedure, preserve the canonical storage and publishing workflow, and avoid unsafe processing decisions.

Instructions file for CodexOpenCode

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/boettiger-lab/data-workflows/agents-md
Clone the repo
git clone --depth 1 https://github.com/boettiger-lab/data-workflows

Made for: Codex, OpenCode.

Per session 8,147 This file is loaded in full into every session.
When invoked 8,147 The same file — it is already loaded in full.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.08147 $0.08147
Opus 5 $0.04074 $0.04074
Sonnet 5 $0.01629 $0.01629
Haiku 4.5 $0.00815 $0.00815

Measured 2d ago against content hash 975a5968a52f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

data-workflows AGENTS.md scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl -s https://data-requests.nrp-nautilus.io/api/requests | python3 -m json.tool

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- Read: `curl https://s3-west.nrp-nautilus.io/<bucket>/stac-collection.json`
AGENTS.md · 492 lines

How it starts

The opening of the file, as written. The whole thing — 492 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Instructions: Dataset Processing

You work in data-workflows, which uses cng-datasets to convert geospatial data into cloud-native formats on Kubernetes. This file carries the boundaries you must never cross and the shape of the pipeline; the procedural detail lives in skills that load on demand.

Skills — load the one that matches what you are doing

These are .claude/skills/<name>/SKILL.md in this repo. They work in Claude Code and opencode alike (both read .claude/skills/), and they are plain markdown, so any agent can read the file directly if it has no skill support.

skill load it when
stac-authoring writing or editing any stac-collection.json or dataset README (Steps 5–6)
raster-hexing ingesting or re-hexing a GeoTIFF/COG — resolution, reducer, mosaicking
hex-tuning a hex job OOMs, or choosing native/parent H3 resolutions and chunk sizes
job-troubleshooting a job fails, hangs, or a published parquet will not read
dataset-recipes starting an ingest that resembles a worked example

Everything below is always in force, skill or no skill.

⛔ HARD BOUNDARY: Scoping decisions live in the GitHub issue, NEVER in memory

Every decision that defines what a dataset task delivers — spatial extent (full upstream coverage vs. a regional clip), H3 resolution, reducer, source product/version, target bucket and naming, acceptance criteria — MUST be written into the GitHub issue before you act on it. Sessions are disposable: the laptop dies, agent memory is wiped, a different agent picks up the task. The issue is the single source of truth that survives all of that. Treat yourself like any professional developer — nobody is expected to carry scope "in their head," and you must not rely on agent memory (~/.claude/.../memory) for scope. Memory is for how you work, never what a task delivers.

  • Before building: if the issue does not state the extent, resolution, and acceptance criteria explicitly, the issue is underspecified. Stop, propose the scope, get agreement, and edit the issue to record it (gh issue edit / a scoping comment) before running cluster jobs. A vague label like "the wyoming group" is not a scope.
  • When scope changes mid-task (e.g. "extend to the full upstream extent, not the regional clip"): update the issue body in the same turn you learn it — don't just remember it.
  • When the user tells you a fact only they hold — a dataset's origin, why a licence is what it is, who contributed something, what an upstream field means — write it into the issue in the same turn, before using it. These facts are unrecoverable: nobody can re-derive them from the data, so a fact left in session context is destroyed when the session ends, and the next agent asks the same question again. If you are about to ask the user something, first search the repo, git history, and the issues for the answer: being asked twice is the symptom that the first answer was never recorded (#579).
  • Never infer scope from the bucket name, an existing clipped COG, or a prior build's resolution. Those are artifacts of how an earlier (possibly wrong) pass happened to run, not statements of intent.
  • A reviewer (human or agent) must be able to read the issue alone and know exactly what to build. If you found yourself reconstructing scope from code, S3 layout, or memory, that is the signal the issue needs updating.

Read the full file on GitHub · 492 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 492 lines · 8,147 tokens per session scan C 975a5968a52f

Subscribe to this mod's changes

data-workflows AGENTS.md is an instructions file published in the GitHub repository boettiger-lab/data-workflows (5 stars, last pushed 2d ago), licensed BSD-3-Clause. It adds 8,147 tokens to every session, about $0.0407 per session on Opus 5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.