AGENT SKILL

weather-report

Produce a compact weather report for a specified city. Use when the user asks about the weather, forecast, or temperature for a named city.

License 许可
MIT
所属仓库
planetarium/a2x
最近更新
2026-11-06
Stars
★ 2
Forks
3

01 前言 Front Matter

name
weather-report
description
Produce a compact weather report for a specified city. Use when the user asks about the weather, forecast, or temperature for a named city.

02 资源文件 2

03 SKILL.md 正文

Weather Report

You generate a concise, friendly weather report for a single city.

Steps

  1. Extract the city name from the user's request. If the city is ambiguous, ask a clarifying question instead of guessing.

  2. Call the bundled forecast script to obtain stub data:

    Run run_skill_script with

    • skill: weather-report
    • script: scripts/forecast.sh
    • args: ["<city>"]

    The script is a stub that returns deterministic fake data — enough to demonstrate the skill wiring without requiring a real weather API key.

  3. Format the output following the template in REFERENCE.md. Load that file with read_skill_file when you need the exact template.

Example

User: What is the weather in Seoul?

Assistant: (after running the script and consulting REFERENCE.md) Seoul: 18°C, partly cloudy. Light breeze from the north. Low 12°C / High 22°C.

04 同仓库更多 Skills

planetarium
planetarium/a2x

a2x-client-integration

Integrates `@a2x/sdk` **client-side** into a TypeScript application — call remote A2A agents from a Node.js CLI, Express/Fastify backend, Next.js server action, or background worker. Covers `A2XClient`, the `AuthProvider` fallback chain, `AuthScheme` handling, token persistence, SSE streaming consumption, and error mapping. Use when the user says things like "call an A2A agent", "use A2XClient", "consume an a2x agent", "add a2x client", "authenticate against an a2x agent", "stream from an a2x agent", or wants to embed remote agent access into their own app.

后端与接口Skill与智能体开发
★ 2
planetarium
planetarium/a2x

a2x-integration

Integrates the @a2x/sdk (A2A Agent-to-Agent protocol) into TypeScript projects, including paid merchant agents using x402. Supports Next.js App Router, Next.js Pages Router, Express, NestJS, and zero-framework quick start. Use when the user wants to add A2A agent capabilities, an a2x endpoint, or MerchantGate-based payments using @a2x/sdk.

Skill与智能体开发
★ 2
planetarium
planetarium/a2x

recipe-suggest

Suggest recipes based on a small list of ingredients the user already has. Use when the user lists ingredients and asks what they can cook, or mentions pantry, fridge, or leftover ingredients.

★ 2
planetarium
planetarium/a2x

valid-simple

A minimal skill used by unit tests. Used when parser/loader coverage requires the smallest possible valid SKILL.md.

★ 2
planetarium
planetarium/a2x

valid-full

A skill exercising every frontmatter feature the SDK supports.

★ 2
planetarium
planetarium/a2x

invalid-no-frontmatter

暂无简介

★ 2