smarterweather-api

smarterweather-api is a skill for Claude Code, Codex from smarterweather/developer. It costs 137 tokens per session (1,768 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 Claude CodeCodex

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 skills/smarterweather/developer/smarterweather-api
Any agent
npx skills add smarterweather/developer --skill smarterweather-api
Clone the repo
git clone --depth 1 https://github.com/smarterweather/developer

Made for: Claude Code, Codex.

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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 137 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,768 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00137 $0.01768
Opus 5 $0.00068 $0.00884
Sonnet 5 $0.00027 $0.00354
Haiku 4.5 $0.00014 $0.00177

Measured 4d ago against content hash ee38f281b110, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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.

### Working example — curl
plugins/smarterweather/skills/smarterweather-api/SKILL.md · 193 lines

How it starts

The opening of the file, as written. The whole thing — 193 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.

Authentication — required reading

Every Smarter Weather request is authenticated with an API key. Never hard-code keys. Read them from the environment:

export SMARTERWEATHER_API_KEY="sw_live_..."

Hard rules:

  • Never paste a key into chat history, prompts, or commit messages.
  • Never commit a key to a repo, even temporarily. Smarter Weather participates in GitHub secret scanning; leaked keys are revoked automatically.
  • Always use sw_test_* prefixed keys in tests, examples, and local dev scaffolds. Production code uses sw_live_*.
  • Keys are minted, rotated, and revoked at https://developers.smarterweather.com/dashboard/api-keys, or by an agent through the onboarding MCP (create_api_key).

REST API

Shape

Item Value
Base URL https://api.smarterweather.com
Versioning Path-based: /v1/*
Auth header Authorization: Bearer $SMARTERWEATHER_API_KEY (the X-API-Key header is not supported)
Response content type application/json; charset=utf-8 (success), application/problem+json (errors)
Machine-readable contract https://developers.smarterweather.com/openapi.yaml

The OpenAPI document above is canonical. If an endpoint is not in it, the endpoint does not exist — don't fabricate.

Working example — TypeScript

const apiKey = process.env.SMARTERWEATHER_API_KEY;
if (!apiKey) {
  throw new Error("SMARTERWEATHER_API_KEY is not set");
}

const res = await fetch(
  "https://api.smarterweather.com/v1/weather?lat=41.88&lon=-87.63",
  {
    headers: {
      Authorization: `Bearer ${apiKey}`,
      Accept: "application/json",
    },
  },
);

if (!res.ok) {
  // Errors are RFC 7807 application/problem+json documents.
  const problem = await res.json().catch(() => ({}));
  throw new Error(
    `SmarterWeather ${res.status}: ${problem?.type ?? "unknown"} - ${problem?.detail ?? res.statusText}`,
  );
}

const weather = await res.json();

Read the full file on GitHub · 193 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 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 137 tokens to every session and 1,768 once invoked, about $0.0007 per session on Opus 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.