OpenWeather CLI

Use this skill when the user wants to run, troubleshoot, or extend the owget CLI for geocoding, current weather, and 5-day forecasts with OpenWeatherMap.

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 151 · 0 current installs · 0 all-time installs
byParin Lai@ParinLL
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description (OpenWeather CLI / owget) line up with the declared requirements: OPENWEATHER_API_KEY and the Go toolchain are appropriate and expected for building and running a Go-based OpenWeather client.
Instruction Scope
SKILL.md contains build/run/troubleshooting instructions limited to cloning the referenced GitHub repo, running 'go install', setting OPENWEATHER_API_KEY, and invoking owget commands; it does not instruct reading unrelated system files or exfiltrating data. It advises redaction of sensitive query params in debug logs (a guideline rather than an enforced check).
Install Mechanism
The skill is instruction-only (no automated install). It recommends git-cloning and building code from a GitHub repo. That is normal for CLI tools, but pulling and building third-party source carries typical risks — review the repo code before running 'go install' and avoid installing into system-wide protected paths without inspection.
Credentials
Only a single service credential (OPENWEATHER_API_KEY) and the Go binary are required; these are proportional to the declared purpose and no unrelated secrets or config paths are requested.
Persistence & Privilege
Skill is not forced-always, does not request persistent system modifications, and does not declare elevated privileges. The default ability for the agent to invoke the skill autonomously is unchanged and not by itself concerning.
Assessment
This skill appears coherent for building and using the owget CLI. Before installing: inspect the referenced GitHub repository (code, recent commits, and README) to ensure you trust the source; do not paste your API key into public places or commit it; avoid installing binaries into system directories without review (use a user-local Go bin); be cautious when using debug mode in shared/logged environments since runtime redaction is a doc claim you may want to verify; if you prefer lower risk, interact directly with OpenWeatherMap's API from known clients or use a pinned release/commit rather than cloning the repo HEAD.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.1.3
Download zip
clivk970by7m80yhja7rfassx51fmh82yg3dlatestvk97aanz3p986s2sjwy7dvfc02x82y5w0openweathervk970by7m80yhja7rfassx51fmh82yg3dopenweathermvk973rx5g24287rsvnvz1jecsqs82zmjfopenweathermapvk9744cesw6v0jg8p18bngqysc182zexpweathervk970by7m80yhja7rfassx51fmh82yg3d

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

Binsgo
EnvOPENWEATHER_API_KEY
Primary envOPENWEATHER_API_KEY

SKILL.md

OpenWeather CLI Skill

Instruction-only skill document for using and troubleshooting owget (OpenWeather CLI).

Skill Purpose and Trigger Scenarios

  • The user wants current weather, forecast, or geocoding (geo) results.
  • The user asks how to run owget commands or use parameters.
  • The user reports API key issues, HTTP errors, or city lookup failures.

Install from GitHub

Recommended install:

git clone https://github.com/ParinLL/OpenWeatherMap-script.git
cd OpenWeatherMap-script
go install .

This installs owget into your Go bin directory (for example, $GOPATH/bin or $HOME/go/bin).

Required Environment Variables / Permissions

Required environment variable:

export OPENWEATHER_API_KEY="your-api-key"
  • Requires the go toolchain for build/install.
  • System-wide installation into protected directories (for example, /usr/local/bin) requires admin privileges and prior source review.
  • Never expose full API keys in outputs; debug request logs should redact credential query params (for example, appid).

How to Use the Binary

After installation, make sure owget is available in your shell:

owget --help

If your shell cannot find it, add your Go bin path to PATH:

export PATH="$PATH:$(go env GOPATH)/bin"

Core command patterns:

  • Current weather by coordinates:
    • owget weather <lat> <lon>
    • Example: owget weather 25.0330 121.5654
  • Current weather by city:
    • owget city "<City,Country>"
    • Example: owget city "Taipei,TW"
  • 5-day forecast:
    • owget forecast <lat> <lon>
    • Example: owget forecast 25.0330 121.5654
  • 5-day forecast by city:
    • owget city "<City,Country>" forecast
    • Example: owget city "Taipei,TW" forecast
  • Geocoding lookup:
    • owget geo "<query>"
    • Example: owget geo "New York,US"

Useful flags:

  • --detail: show extended fields (for example pressure, wind, sunrise/sunset, visibility).
  • --debug: print HTTP debug information for troubleshooting. Sensitive query parameters are redacted.

Common usage flow:

  1. Export OPENWEATHER_API_KEY.
  2. Run owget geo "<City,Country>" if you need to verify location naming.
  3. Use owget weather ... or owget forecast ... for actual weather data.
  4. Add --detail for richer output, and --debug only when troubleshooting.

Common Troubleshooting

  • error: OPENWEATHER_API_KEY env is required
    • The env var is not set. Run export OPENWEATHER_API_KEY="..." first.
  • API returns 401
    • API key is invalid, expired, or mistyped. Re-check your OpenWeatherMap key.
  • API returns 404 or city not found
    • Use City,Country format (for example, Taipei,TW) and verify with owget geo "<query>" first.
  • Concern about credential leakage while using debug mode
    • Debug request URLs are redacted for sensitive params, but avoid long-running debug in shared/logged environments.

Files

1 total
Select a file
Select a file to preview.

Comments

Loading comments…