smarterweather-api

smarterweather-api is a skill for Cursor from smarterweather/developer. It costs 120 tokens per session (3,302 once invoked), scanned A, original, MIT.

Instructions for writing integrations with Smarter Weather’s REST API, an HTTP service that software can call directly.

In plain words
What is it for?
Use them to build production services that request weather, alerts, geocoding, or storm-track data from your own code.
Why use it?
They cover authentication, supported weather-related endpoints, structured errors, rate limits, and safe handling of API keys.

Skill for Cursor

Written for Cursor: shipped in a Cursor plugin.

Part of the smarterweather plugin — 2 skills shipped together

Good fit Use them to build production services that request weather, alerts, geocoding, or storm-track data from your own code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smarterweather/developer/smarterweather-api
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.

Any agent
npx skills add smarterweather/developer --skill smarterweather-api
Clone the repo
git clone --depth 1 https://github.com/smarterweather/developer

Made for: Cursor.

Or install smarterweather, the plugin that ships this one along with the rest of its 2 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for smarterweather-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/smarterweather/developer/smarterweather-api/github.svg)](https://agentmods.dev/skills/smarterweather/developer/smarterweather-api)
Your own site
<a href="https://agentmods.dev/skills/smarterweather/developer/smarterweather-api"><img src="https://agentmods.dev/badge/skills/smarterweather/developer/smarterweather-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for smarterweather-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/smarterweather/developer/smarterweather-api"><img src="https://agentmods.dev/badge/skills/smarterweather/developer/smarterweather-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 120 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,302 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00120 $0.03302
Opus 5.5 $0.00048 $0.01321
Sonnet 5.5 $0.00024 $0.00660
Haiku 4.5 $0.00012 $0.00330

Measured 4d ago against content hash 9adcc2c3fb09, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

smarterweather-api scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

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

- curl: read only the key, never `source` the file as shell (the last
plugins/smarterweather/skills/smarterweather-api/SKILL.md · 278 lines

How it starts

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

Use the Smarter Weather REST API

The platform offers two surfaces; pick the right one for the user's goal:

Goal Use
Code that runs in production and calls weather endpoints from the user's own service REST API (api.smarterweather.com/v1/*) — this skill
An AI agent that calls weather tools live during a chat session MCP servers — see the smarterweather-mcp skill
One-time onboarding (account, key minting, client config) @smarterweather/mcp-onboarding MCP — see the smarterweather-mcp skill

When in doubt, default to REST for code-generation tasks and MCP for agent-runtime tool calls.

Coverage: Smarter Weather covers the 50 US states and DC only. The US territories (Puerto Rico, the US Virgin Islands, Guam, the Northern Mariana Islands and American Samoa) and other countries are outside it. Every route that takes a point (lat and lon, zip or location) returns 404 outside-coverage for a point outside the 50 states and DC. /v1/alerts and /v1/observations return it for a bounding box that touches no US domain (CONUS, Alaska, Hawaii); a box that touches one may still include area outside the US. /v1/weather/batch reports it per item as outside_coverage, and /v1/point with points and /v1/series/batch mark such points out_of_domain, as they do a point the check could not reach in time (retry it). If the location lookup is unavailable, the check can briefly fail open. Routes keyed by a station, radar site, forecast office or alert id, and nationwide lists, are not filtered by point, so do not treat an empty result as an all-clear. Do not retry an outside-coverage response.

Authentication — required reading

Every Smarter Weather request is authenticated with an API key. Never hard-code keys. Keep the key in the project's .env (mode 0600, gitignored) and read it from the environment in server-side code:

# .env -- written for you by `login` / `trial` below
SMARTERWEATHER_API_KEY=sw_live_...

Load it before the samples below run:

Read the full file on GitHub · 278 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. 4d ago Changed · +42 lines · -17 tokens per session 9adcc2c3fb09
  2. 8d ago Changed · +39 lines 35cbbd41e669
  3. 1mo ago Changed · +4 lines 50824f0d318f
  4. 1mo ago First seen · 193 lines · 137 tokens per session scan A ee38f281b110

Subscribe to this mod's changes

smarterweather-api is a skill published in the GitHub repository smarterweather/developer (1 stars, last pushed yesterday), licensed MIT. It adds 120 tokens to every session and 3,302 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.