openaq-data-fetch
Skill11 starsChanged 3 months agoMITView on GitHub
Discover bounded OpenAQ air-quality monitoring locations and retrieve raw, hourly, or daily measurements for one known sensor through the Tiangong CLI. Use when a task needs OpenAQ location, provider, sensor, parameter, license, coverage, or time-series context; do not use for arbitrary API paths, S3 archive downloads, AQI calculation, health or regulatory decisions, forecasting, source attribution, or cross-sensor analysis.
- Reads credentials
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-paper-downloadSkill
- airnow-hourly-obs-fetchSkill
- ai-tech-fulltext-fetchSkill
- ai-tech-rss-fetchSkill
- ai-tech-summarySkill
- apply-environmental-thinkingSkill
- bluesky-cascade-fetchSkill
- convert-image-to-jpgSkill
- dify-knowledge-base-searchSkill
- dify-knowledge-base-uploadSkill
- document-granular-decomposeSkill
- domain-onboardingSkill
- eceee-news-fulltext-fetchSkill
- email-imap-appendSkill
- email-imap-fetchSkill
- email-imap-full-fetchSkill
- email-smtp-sendSkill
- epa-eis-records-fetchSkill
- federal-register-doc-fetchSkill
- fetch-abstract-to-kbSkill
- fetch-meta-from-kbSkill
- fetch-meta-to-kbSkill
- figshare-data-downloadSkill
- gdelt-doc-searchSkill
- gdelt-events-fetchSkill
- gdelt-gkg-fetchSkill
- gdelt-mentions-fetchSkill
- gdelt-web-ngrams-searchSkill
- github-contribution-period-analysisSkill
- nasa-firms-fire-fetchSkill
- notebooklmSkill
- open-meteo-air-quality-fetchSkill
- open-meteo-flood-fetchSkill
- open-meteo-historical-fetchSkill
- regulationsgov-attachments-fetchSkill
- regulationsgov-comment-detail-fetchSkill
- regulationsgov-comments-fetchSkill
- remove-similar-imageSkill
- river-outfall-status-visualizerSkill
- sustainability-fulltext-fetchSkill
- sustainability-rss-fetchSkill
- sustainability-summarySkill
- synology-file-stationSkill
- tiangong-auto-researchSkill
- tiangong-auto-research-workbuddySkill
- tiangong-kb-course-fulltext-fetchSkill
- tiangong-kb-course-searchSkill
- tiangong-kb-edu-searchSkill
- tiangong-kb-esg-searchSkill
- tiangong-kb-ingestSkill
- tiangong-kb-patent-searchSkill
- tiangong-kb-report-searchSkill
- tiangong-kb-sci-searchSkill
- tiangong-kb-textbook-searchSkill
- tsinghua-graduate-thesisSkill
- usbr-project-records-fetchSkill
- usbr-rise-fetchSkill
- use-thuenv-presentation-styleSkill
- usgs-water-iv-fetchSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. About 0 are common, 6 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 8
Use the CLI-owned openaq.air-quality capability.
- Distinctive: line 16
Use the caller- or workspace-resolved stable CLI.
- Very specific: line 19
Run data describe with that same CLI.
- Very specific: line 22
Ensure OPENAQ_API_KEY is present in the CLI process environment, then run the default static doctor.
- Very specific: line 31
Use the returned Discovery Metadata to confirm current ownership, coverage, granularity, source-specific quality and license limits, …
- Very specific: line 39
Use search-locations when the relevant sensor ID is not yet known.
- Very specific: line 43
Use fetch-sensor-measurements only after selecting one trusted sensor ID.
- Very specific: line 49
Do not invent or pass an API path.
- Distinctive: line 78
Do not silently widen spatial or provider filters, turn a bounded search into a global scan, combine center with bounding box, geocode a …
- Distinctive: line 84
Use the selected sensor's exact ID and an explicit granularity and time window.
- Distinctive: line 85
Do not merge sensors, convert units, or switch granularity inside this atomic call.
- Distinctive: line 123
Treat location, owner, provider, instrument, monitor, sensor, and coverage fields as provider-dependent metadata, not proof of …
- Very specific: line 126
Keep raw, hourly, and daily granularities explicit.
- Very specific: line 135
Treat partial as incomplete page or record coverage.
- Very specific: line 137
Treat blocked as no usable business result.
- Distinctive: line 142
Do not calculate AQI, make health or regulatory claims, infer pollution sources, forecast conditions, interpolate space, correct …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
OpenAQ Data Fetch
Use the CLI-owned openaq.air-quality capability. This Skill supplies intent
routing and result-use boundaries only; the CLI owns source discovery,
input/output schemas, API-key injection, pagination, limits, validation, and
receipts.
Before running
- Read
references/tiangong-data-requirement.json. - Use the caller- or workspace-resolved stable CLI. The requirement declares compatible capability and operation contract majors; it does not select a package build.
- Run
data describewith that same CLI. Continue only when the capability ID and required contract majors match, and copy the exact current capability/operation versions from that response into the run request. - Ensure
OPENAQ_API_KEYis present in the CLI process environment, then run the default static doctor. Never place the key in argv, request JSON, a Skill-local file, logs, or output.
tiangong-ai data describe openaq.air-quality --json
tiangong-ai data doctor openaq.air-quality --jsonUse the returned Discovery Metadata to confirm current ownership, coverage,
granularity, source-specific quality and license limits, selection hints,
provides, and doesNotProvide. Do not substitute facts remembered from an
older Skill revision. A blocked static doctor means the required logical
credential is unavailable; stop instead of bypassing the CLI.
Choose one operation
- Use
search-locationswhen the relevant sensor ID is not yet known. Supply at least one explicit country, provider, parameter, license, monitor, mobile, center-radius, or bounding-box filter. Inspect provider, monitor status, parameter, license, and coverage metadata before choosing a sensor. - Use
fetch-sensor-measurementsonly after selecting one trusted sensor ID. Chooserawfor upstream-reported observations orhourly/dailyfor OpenAQ's precomputed aggregates, and use an explicit RFC3339 window of no more than 366 days. Daily records use the sensor location's local-day boundaries; preserve the returned period instead of treating them as UTC calendar days.
Do not invent or pass an API path. Do not use this Skill to list or download
OpenAQ S3 archive objects; bulk files require a separately governed
content/download workflow. search-locations returns metadata attached to
bounded location results; it is not a global country, provider, parameter,
license, instrument, or sensor catalog.
Prepare a location request
Build a tiangong.data.run-request.v1 envelope and replace the version
placeholders with the exact versions from the same data describe response. This example searches a
bounded country/parameter combination; use the current input schema from
data describe for other supported filters.
{
"schemaVersion": "tiangong.data.run-request.v1",
"capabilityId": "openaq.air-quality",
"capabilityVersion": "<describe.manifest.capabilityVersion>",
"operationId": "search-locations",
"operationVersion": "<describe.manifest.operations[1].operationVersion>",
"input": {
"countryCode": "NL",
"parameterIds": [2],
"pageSize": 250,
"sortOrder": "asc"
}
}Do not silently widen spatial or provider filters, turn a bounded search into a global scan, combine center with bounding box, geocode a place name, or infer that every returned sensor has continuous data for the desired time window.
Prepare a measurement request
Use the selected sensor's exact ID and an explicit granularity and time window. Do not merge sensors, convert units, or switch granularity inside this atomic call.
{
"schemaVersion": "tiangong.data.run-request.v1",
"capabilityId": "openaq.air-quality",
"capabilityVersion": "<describe.manifest.capabilityVersion>",
"operationId": "fetch-sensor-measurements",
"operationVersion": "<describe.manifest.operations[0].operationVersion>",
"input": {
"sensorId": 1001,
"granularity": "hourly",
"startDateTime": "2026-03-01T00:00:00Z",
"endDateTime": "2026-03-07T23:59:59Z",
"pageSize": 1000
}
}Run
tiangong-ai data run openaq.air-quality search-locations \
--input /absolute/path/to/location-request.json --json
tiangong-ai data run openaq.air-quality fetch-sensor-measurements \
--input /absolute/path/to/measurement-request.json --jsonEach command emits a tiangong.data.run-result.v1 envelope. Preserve its
contract, warnings, errors, and receipt with data when handing the
result to another workflow.
Result boundaries
- Preserve OpenAQ attribution and every original provider's license and attribution metadata. OpenAQ's terms do not replace source-specific terms.
- Treat location, owner, provider, instrument, monitor, sensor, and coverage fields as provider-dependent metadata, not proof of regulatory-network status or measurement quality.
- Keep raw, hourly, and daily granularities explicit. Do not mix raw upstream
records with OpenAQ aggregates without an explicit analytical method, and
retain
flagInfo, aggregate summary, coverage interval, and period fields. - Preserve provider nulls. A null value, period, coordinate, summary member, or
coverage object is a valid unavailable field, not proof of zero, clean data,
absence of pollution, or a failed request. Inspect
flagInfo.hasFlagsseparately from nullability. - Interpret daily aggregates in the selected location's timezone and preserve their returned period; do not relabel them as UTC calendar-day averages.
- Treat
partialas incomplete page or record coverage. Report missing pages and provider errors with the usable records. - Treat
blockedas no usable business result. Surface credential, input, endpoint, rate-limit, or provider errors instead of bypassing limits, switching endpoints, or calling the old scripts. - Report page/record-limit truncation. A truncated or empty result is not proof that no monitors or pollution observations exist.
- Do not calculate AQI, make health or regulatory claims, infer pollution sources, forecast conditions, interpolate space, correct calibration, convert units, or claim completeness from this result alone.
- Cross-sensor comparison, recurring monitoring, source fusion, statistical inference, bulk archive acquisition, and research evidence admission belong to the caller or Auto Research, not this atomic Skill.
Reference
references/tiangong-data-requirement.json: stable capability requirement; it is not a package lock.
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
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.

