US weather forecast

Fetch National Weather Service forecast evidence through the governed HTTP front, producing a sealed provider packet for downstream weather planning.

Overview

Fetch public National Weather Service forecast evidence through runx HTTP.

It uses the governed HTTP front, not an ad hoc client: the receipt records the NWS endpoint, response status, graph step receipts, and the exact authority surface. No API key is required. The default runner fetches the actual NWS gridpoint forecast; the locate runner discovers the gridpoint for a latitude/longitude.

SKILL.md

NWS Weather

Fetch public National Weather Service forecast evidence through runx HTTP.

It uses the governed HTTP front, not an ad hoc client: the receipt records the NWS endpoint, response status, graph step receipts, and the exact authority surface. No API key is required. The default runner fetches the actual NWS gridpoint forecast; the locate runner discovers the gridpoint for a latitude/longitude.

What this skill does

nws-weather makes read-only calls to api.weather.gov. The locate runner calls /points/{lat},{lon} to discover gridId, gridX, gridY, and forecast URLs. The default forecast runner calls /gridpoints/{office}/{grid_x},{grid_y}/forecast to fetch forecast periods and shapes them into the forecast it returns.

When to use this skill

  • You need real public weather evidence with no credentials.
  • A graph needs to prove a weather data read went through runx's governed HTTP path.
  • You have an NWS office/gridpoint and need the current public forecast.
  • You have latitude and longitude in the United States and need the NWS gridpoint before running the forecast path.

When not to use this skill

  • For locations outside NWS coverage. Return needs_input with the coverage limitation.
  • For emergency, medical, aviation, maritime, evacuation, or life-safety decisions.
  • To notify users, reschedule events, deploy changes, or mutate operations based on weather. Those actions need their own authority gate.
  • To call private networks, untrusted hosts, or non-NWS endpoints.

Procedure

  1. If the caller has only coordinates, run locate with lat and lon.
  2. Extract gridId, gridX, and gridY from the sealed locate output.
  3. Run the default forecast runner with office, grid_x, and grid_y.
  4. Confirm the HTTP status is 2xx and the response contains forecast periods.
  5. Preserve the NWS source URL, generated timestamp, gridpoint, and receipt refs.
  6. Return the shaped forecast; planning prose belongs to the agent that uses it. Do not invent guidance inside this provider fetch.
  7. Return needs_input for malformed coordinates or gridpoints; return needs_more_evidence for NWS outages, missing periods, or stale data.

Edge cases and stop conditions

  • Invalid coordinates: return needs_input; NWS point lookup requires decimal latitude and longitude.
  • Unsupported location: return needs_input; NWS coverage is not global.
  • Provider outage or non-2xx response: return needs_more_evidence and preserve the HTTP status in the receipt.
  • Missing forecast periods: return needs_more_evidence; do not summarize a forecast that is not present.
  • Life-safety use: return refused and direct the user to official weather or emergency channels.
  • Action requested from weather: stop at provider evidence and require the downstream action skill with its own gate and receipt.

Output schema

yaml
decision: ready | needs_input | needs_more_evidence | refused
runtime_path: http
provider: national-weather-service
provider_evidence:
  endpoint: string
  http_status: string
  gridpoint:
    office: string
    grid_x: string
    grid_y: string
  generated_at: string
  forecast_periods: array
receipt_refs: array
stop_conditions: array

Worked example

  1. Run locate for 38.8894,-77.0352.
  2. The sealed NWS points response returns gridId: LWX, gridX: 97, gridY: 71, and a forecast URL.
  3. Run the default forecast runner with office: LWX, grid_x: "97", grid_y: "71".
  4. Hand the sealed forecast JSON to the downstream agent that plans with it.

Inputs

  • office (default runner, required): NWS office id such as LWX.
  • grid_x (default runner, required): NWS grid X coordinate.
  • grid_y (default runner, required): NWS grid Y coordinate.
  • lat (locate runner, required): decimal latitude for point lookup.
  • lon (locate runner, required): decimal longitude for point lookup.

Published execution profile

The execution profile published with 0.1.9, shown as its exact bytes.

Runners
  • forecast
  • locate
Profile digestsha256:f3a44b8ef5a510af81663ba7996f5b31e261bf1f5b9fb39ae8d7dbf178a6828e
skill: nws-weather
version: "0.1.9"
catalog:
  kind: graph
  audience: public
  visibility: public
  role: canonical
  provider: national-weather-service
  execution: read
  completion: provider_readback
  approval: none
  category: data
connectors:
  national-weather-service:
    operations: [forecast.read, points.read]
runners:
  forecast:
    description: Read the National Weather Service forecast for a gridpoint, by its office and grid x and y.
    default: true
    inputs:
      office:
        type: string
        required: true
        description: NWS forecast office id, for example LWX.
      grid_x:
        type: string
        required: true
        description: NWS grid X coordinate.
      grid_y:
        type: string
        required: true
        description: NWS grid Y coordinate.
    result_from: [forecast]
    steps:
      - id: forecast
        operation: national-weather-service/forecast.read
        input:
          office: $input.office
          grid_x: $input.grid_x
          grid_y: $input.grid_y
  locate:
    description: Find the National Weather Service gridpoint for a latitude and longitude, before reading its forecast.
    inputs:
      lat:
        type: string
        required: true
        description: Latitude with no more than four decimal places.
      lon:
        type: string
        required: true
        description: Longitude with no more than four decimal places.
    result_from: [points]
    steps:
      - id: points
        operation: national-weather-service/points.read
        input:
          lat: $input.lat
          lon: $input.lon

harness:
  files: [fixtures/support/composed.graph]
  cases: []

Published package and test evidence.

This exact version passed its recorded harness run: 3 checks passed · 0 failed.

Test result

Harness resultPassed
Tested version0.1.9
Recorded result3 checks passed · 0 failed
Result sourceRun by the Runx registry at publication
Suiterunx-harness
Test recorded
Test recordOpen the recorded run
Inspect receipt referencessha256:cc461fdc4746a03ff390feee69f2cde8509ab55d1bb915eefa1a38204a8e42fcsha256:8376067ef5de94c10d1726d831b331d5f1cde19f0410fdde773f9f0c26615cd0sha256:225d16de3536afeef4672358de4f71c11c9c4a2e2f20b48d42b1ee430a43614d

Package identity

Published revision0.1.9
Content digestsha256:c4049c3a056c89f90abb21b2780d97cd1851c9b093b6163e81f969814eef5881
SKILL.md digestsha256:55212e7a00917d3bf74355903a513c92bcc56af6bdd63b627130b311ba59ac51
Execution profile digestsha256:f3a44b8ef5a510af81663ba7996f5b31e261bf1f5b9fb39ae8d7dbf178a6828e
Publisher identityVerified publisher · runx
Trust tierVerified publisherRunx has verified this publisher. This tier is not a code assessment.
Attestations
  • Publisher · Verifiedrunx · 25 Oct 2026
Source provenanceNot published with this version

Version history

  1. 0.1.9ViewingContent digest sha256:c4049c3a056c89f90abb21b2780d97cd1851c9b093b6163e81f969814eef5881
  2. sha-199f43ba99daContent digest sha256:199f43ba99da9f974564217c43d142ef96d78fcb1d4c5c030bbbcac57e8e1211