agentleFS
espressifespressif/esp-claw-skills-lab/skills/current_weather/SKILL.md

current_weather

Skill37 starsChanged 33 days agoMITView on GitHub

Use this skill when the user asks for current weather, temperature, wind, humidity, rain probability, or today's weather forecast. Run the bundled Lua script once with lua_run_script. The script uses the Lua capability module from lua_module_call_capability to call the registered http_request capability against Open-Meteo's forecast API at https://api.open-meteo.com. By default it fetches weather for: The configured search_http_allowlist must allow api.open-meteo.com or use *. Default action: Fetch weather for a specific coordinate: The script prints a human-readable line and a compact…

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when the user asks for current weather, temperature, wind, humidity, rain probability, or today's weather forecast.

    line 17
  2. Very specific:

    Run the bundled Lua script once with lua_run_script.

    line 20

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Current Weather

Use this skill when the user asks for current weather, temperature, wind, humidity, rain probability, or today's weather forecast.

Run the bundled Lua script once with lua_run_script. The script uses the Lua capability module from lua_module_call_capability to call the registered http_request capability against Open-Meteo's forecast API at https://api.open-meteo.com.

By default it fetches weather for:

Singapore (1.3521, 103.8198)

The configured search_http_allowlist must allow api.open-meteo.com or use *.

Script Args Schema

{
  "type": "object",
  "properties": {
    "latitude": {
      "type": "number",
      "description": "Optional latitude. Defaults to Singapore latitude 1.3521."
    },
    "longitude": {
      "type": "number",
      "description": "Optional longitude. Defaults to Singapore longitude 103.8198."
    },
    "location": {
      "type": "string",
      "description": "Optional display label for the requested coordinates. Defaults to Singapore."
    },
    "timezone": {
      "type": "string",
      "description": "Optional Open-Meteo timezone parameter. Defaults to auto."
    },
    "timeout_ms": {
      "type": "integer",
      "description": "Optional HTTP timeout in milliseconds. Defaults to 15000."
    },
    "session_id": {
      "type": "string",
      "description": "Optional session id passed to capability.call opts."
    },
    "source_cap": {
      "type": "string",
      "description": "Optional source capability name. Defaults to current_weather."
    }
  }
}

Tool Call Inputs

Default action:

{
  "path": "{CUR_SKILL_DIR}/scripts/current_weather.lua",
  "args": {}
}

Fetch weather for a specific coordinate:

{
  "path": "{CUR_SKILL_DIR}/scripts/current_weather.lua",
  "args": {
    "location": "Shanghai",
    "latitude": 31.2304,
    "longitude": 121.4737
  }
}

Behavior

The script prints a human-readable line and a compact JSON result:

[current_weather] Singapore temp=29.4C apparent=34.1C condition=Partly cloudy humidity=78% wind=8.5km/h rain_prob=35% time=2026-05-13T14:00
{"ok":true,"location":"Singapore","latitude":1.3521,"longitude":103.8198,"temperature_c":29.4,"apparent_temperature_c":34.1,"relative_humidity_pct":78,"wind_speed_kmh":8.5,"weather_code":2,"condition":"Partly cloudy","rain_probability_pct":35,"daily_high_c":31.2,"daily_low_c":26.7,"time":"2026-05-13T14:00"}

Report the weather values to the user. If the script errors, report the error message directly.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.