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.
npx agentmods add skills/smarterweather/developer/smarterweather-apinpx skills add smarterweather/developer --skill smarterweather-apigit clone --depth 1 https://github.com/smarterweather/developerWrote 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.
[](https://agentmods.dev/skills/smarterweather/developer/smarterweather-api)<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>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.
| Model | Per session | Once 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 |
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 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 usessw_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();
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.
- 4d ago First seen · 193 lines · 137 tokens per session scan A ee38f281b110
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.
Other skills, from other repositories
Contract Testing with Pact
Consumer-driven contract testing skill using Pact, covering consumer tests, provider verification, Pact Broker integration, and CI/CD workflows.
API Fuzzing
API endpoint fuzzing for discovering unexpected behaviors, crashes, and security vulnerabilities through malformed requests, boundary values, and protocol violations.
API Rate Limiting Testing
Testing API rate limiting implementations including throttling behavior, burst handling, rate limit headers, and distributed rate limiting patterns.
API Versioning Testing
Testing API versioning strategies including URL path, header, and query parameter versioning with backward compatibility validation.
Contract-First Testing
Contract-first testing approach using Pact, Spring Cloud Contract, or Dredd for ensuring API consumer-provider compatibility.
weather
Get current weather and forecasts.