pp-weather-goat
Original:🇺🇸 English
Translated
Use this skill whenever the user asks about weather, forecasts, temperature, rain, storms, severe weather alerts, air quality, pollen, UV, or wants an activity recommendation (can I walk / bike / hike / commute / drive given the weather). Weather CLI powered by Open-Meteo (global, no auth, unlimited) + NWS (US severe weather). No API key. Triggers on phrasings like 'what's the weather', 'is it going to rain today', 'any storms coming', 'should I bike to work', 'how's the air quality', 'compare NYC and LA weather this weekend', 'is this unusually hot for April'.
7installs
Added on
NPX Install
npx skill4agent add mvanhorn/printing-press-library pp-weather-goatTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Weather Goat — Printing Press CLI
Prerequisites: Install the CLI
This skill drives the binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
weather-goat-pp-cli- Install via the Printing Press installer:
bash
npx -y @mvanhorn/printing-press install weather-goat --cli-only - Verify:
weather-goat-pp-cli --version - Ensure (or
$GOPATH/bin) is on$HOME/go/bin.$PATH
If the install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.23+):
npxbash
go install github.com/mvanhorn/printing-press-library/library/other/weather-goat/cmd/weather-goat-pp-cli@latestIf reports "command not found" after install, the install step did not put the binary on . Do not proceed with skill commands until verification succeeds.
--version$PATHWhen to Use This CLI
Reach for this when a user wants a weather lookup, storm or alert check, air-quality read, activity recommendation (bike, hike, walk, commute, drive) based on current conditions, or a "is today normal for this time of year" comparison. Particularly valuable as a morning-briefing source with (no args → current + today's forecast + active alerts for your configured home location).
weather-goat-pp-cliDon't reach for this when the user needs hyperlocal or commercial-grade meteorology (use a paid provider like Tomorrow.io or ECMWF), or for international severe-weather alerts (NWS is US-only).
Unique Capabilities
Activity verdicts — the differentiator
-
— GO / CAUTION / STOP verdict for a specific activity, with reasoning.
go walk|bike|hike|commute|drive [location]Turns "look at the weather" into "what should I do." Each activity has its own thresholds.- walk — preparation advice (umbrella? jacket? sunscreen? layers?)
- bike — wind, rain, AQI, ice thresholds tuned for cycling
- hike — lightning, hypothermia risk, altitude UV
- commute — compares AM departure vs PM return weather (time-aware)
- drive — visibility, ice, wind gusts, NWS warnings
Severe weather intelligence
-
— Active NWS warnings: tornado, storm, flood, heat. Structured output with severity and area polygons.
alerts [location] -
— Poll NWS every 60 seconds during active severe weather. Prints new/updated alerts as they arrive. For running during a storm.
watch [location]
Context and comparison
-
— Is today normal for this time of year? Compares today's high/low/precip against historical average for the same date.
normal [location] -
— Side-by-side forecast for 2+ locations. Useful for travel planning or "which city is the weather better this weekend."
compare <location1> <location2> [...] -
(or just
morning-briefwith no args, ifweather-goat-pp-cliwas run) — Current conditions + today's forecast + active NWS alerts in one call. The daily-kickoff command.config set-location
Air, UV, and pollen
-
— AQI + pollen + UV with an exercise recommendation.
breathe [location] -
— Detailed AQI with PM2.5, ozone, etc.
air-quality [location] -
— Reference for Open-Meteo weather code mappings (internal but useful when working with
weather_codesoutput).--json
Command Reference
Core:
- — Morning brief (requires
weather-goat-pp-clifirst, or passconfig set-location)[location] - — Multi-day forecast
weather-goat-pp-cli forecast [location] - — Active NWS severe weather
weather-goat-pp-cli alerts [location] - — Historical weather
weather-goat-pp-cli history [location]
Activity:
- —
weather-goat-pp-cli go <activity> [location],walk,bike,hike,commutedrive
Air / environment:
- — AQI + pollen + UV brief
weather-goat-pp-cli breathe [location] - — Detailed AQI
weather-goat-pp-cli air-quality [location]
Context:
- — Today vs historical average
weather-goat-pp-cli normal [location] - — Side-by-side
weather-goat-pp-cli compare <loc1> <loc2> - — Live NWS monitoring loop
weather-goat-pp-cli watch [location]
Config + utility:
- — Set home location
weather-goat-pp-cli config set-location <place> - — Resolve place names to coordinates
weather-goat-pp-cli geocoding <name> - — Verify connectivity
weather-goat-pp-cli doctor
Recipes
"Should I bike to work today?"
bash
weather-goat-pp-cli go bike --agentReturns a structured GO/CAUTION/STOP verdict with reasoning — wind speed, precipitation, AQI, temperature, ice risk — weighted for cycling specifically.
Morning briefing after setting home location
bash
weather-goat-pp-cli config set-location "Seattle, WA"
weather-goat-pp-cli --agent # morning brief — no argsOnce location is saved, the no-arg invocation returns current conditions + today's forecast + active NWS alerts. Run from a shell startup script or cron at 7am.
Travel decision — which city is better this weekend?
bash
weather-goat-pp-cli compare "Portland, OR" "San Francisco, CA" --days 3 --agentSide-by-side 3-day forecast for both. One glance picks the trip destination.
Watch for severe weather during a warning
bash
weather-goat-pp-cli watch --agent & # background poll every 60sRuns indefinitely; prints JSON events to stdout when alerts change. Pipe into a logging tool or Slack webhook for alerting.
Is today unusually hot?
bash
weather-goat-pp-cli normal --agentReturns today's high/low/precip alongside the 30-year historical average for the same calendar date. Easy "is this a heat wave" check.
Auth Setup
None required. Open-Meteo is free and unlimited; NWS is free and US-public-data. The command exists for consistency but is a no-op.
authOptional config:
- — override config file path
WEATHER_GOAT_CONFIG - Home location persisted to via
~/.config/weather-goat-pp-cli/config.tomlconfig set-location
Agent Mode
Add to any command. Expands to . Use for forecast range on relevant commands, to bypass the 15-minute GET cache.
--agent--json --compact --no-input --no-color --yes--days N--no-cacheFiltering output
--selectbash
weather-goat-pp-cli <command> --agent --select id,name
weather-goat-pp-cli <command> --agent --select items.id,items.owner.nameUse this to narrow huge payloads to the fields you actually need — critical for deeply nested API responses.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error |
| 3 | Location not found (geocoding failed) |
| 5 | API error (Open-Meteo or NWS issue) |
| 7 | Rate limited (very rare; Open-Meteo is unlimited) |
Installation
bash
go install github.com/mvanhorn/printing-press-library/library/other/weather-goat/cmd/weather-goat-pp-cli@latest
weather-goat-pp-cli config set-location "Your City, ST"
weather-goat-pp-cli doctorMCP Server
bash
go install github.com/mvanhorn/printing-press-library/library/other/weather-goat/cmd/weather-goat-pp-mcp@latest
claude mcp add weather-goat-pp-mcp -- weather-goat-pp-mcpArgument Parsing
Given :
$ARGUMENTS- Empty, , or
help→ run--helpweather-goat-pp-cli --help - → CLI;
install→ MCPinstall mcp - Activity queries ("should I bike/walk/hike...") →
go <activity> [location] --agent - Severe weather ("any tornado warnings", "storms coming") →
alerts [location] --agent - Comparison ("better weather in X or Y") →
compare <loc1> <loc2> --agent - Anything else → (or morning brief if no location passed and home is configured)
forecast [location]
Agent Workflow Features
This CLI exposes three shared agent-workflow capabilities patched in from cli-printing-press PR #218.
Named profiles
Persist a set of flags under a name and reuse them across invocations.
bash
# Save the current non-default flags as a named profile
weather-goat-pp-cli profile save <name>
# Use a profile — overlays its values onto any flag you don't set explicitly
weather-goat-pp-cli --profile <name> <command>
# List / inspect / remove
weather-goat-pp-cli profile list
weather-goat-pp-cli profile show <name>
weather-goat-pp-cli profile delete <name> --yesFlag precedence: explicit flag > env var > profile > default.
--deliver
Route command output to a sink other than stdout. Useful when an agent needs to hand a result to a file, a webhook, or another process without plumbing.
bash
weather-goat-pp-cli <command> --deliver file:/path/to/out.json
weather-goat-pp-cli <command> --deliver webhook:https://hooks.example/inFile sinks write atomically (tmp + rename). Webhook sinks POST (or when is set). Unknown schemes produce a structured refusal listing the supported set.
application/jsonapplication/x-ndjson--compactfeedback
Record in-band feedback about this CLI from the agent side of the loop. Local-only by default; safe to call without configuration.
bash
weather-goat-pp-cli feedback "what surprised you or tripped you up"
weather-goat-pp-cli feedback list # show local entries
weather-goat-pp-cli feedback clear --yes # wipeEntries append to as JSON lines. When is set and either is passed or , the entry is also POSTed upstream (non-blocking — local write always succeeds).
~/.weather-goat-pp-cli/feedback.jsonlWEATHER_GOAT_FEEDBACK_ENDPOINT--sendWEATHER_GOAT_FEEDBACK_AUTO_SEND=true