# weather-skill **Repository Path**: wiseai/weather-skill ## Basic Information - **Project Name**: weather-skill - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-04-24 - **Last Updated**: 2026-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Weather Skill 中国天气查询 CLI 工具。 ## 项目结构 ``` weather-skill/ ├── weather-cli/ # Go 主程序 (GoFrame 框架) ├── skills/weather/ # Skill 文档 ├── AGENTS.md # 开发者指南 └── .gitignore # Git 忽略配置 ``` ## 安装 ### 方式一:二进制下载 从 [Releases](https://gitee.com/wiseai/weather-skill/releases) 下载对应平台的二进制文件。 ### 方式二:源码编译 ```bash cd weather-cli go build -o weather-cli # 或使用构建脚本 chmod +x build.sh ./build.sh ``` ## 使用方法 ```bash # 列出所有省份 ./weather-cli --command provinces # 列出指定省份的城市 ./weather-cli --command cities --province 甘肃省 # 查询城市天气 (basic 级别,默认) ./weather-cli --command weather --city 天水 # 查询城市天气 (full 级别,完整数据) ./weather-cli --command weather --city 北京 --detail full # 输出 JSON 格式 ./weather-cli --command weather --city 北京 --json ``` ## 命令行参数 | 参数 | 简写 | 默认值 | 说明 | |------|------|--------|------| | --command | -c | (必填) | 命令:provinces/cities/weather | | --province | -P | - | 省份名称 (cities 命令) | | --city | -C | - | 城市名称 (weather 命令) | | --detail | -d | basic | 详细程度:basic/full | | --json | -j | false | 输出原始 JSON | | --help | -h | - | 显示帮助 | ## 数据来源 中国气象局 https://www.nmc.cn ## 许可证 MIT License