返回顶部
c

countries国家查询工具

CLI for AI agents to lookup country info for their humans. Uses REST Countries API. No auth required.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,517
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

countries

国家查询

供AI代理查询国家信息以帮助其人类用户的命令行工具。蒙古的首都是什么?——现在你的代理可以回答了。

使用REST Countries API(v3.1)。无需账户或API密钥。

使用方法

给我讲讲日本
南美洲有哪些国家?
哪个国家以东京为首都?
查询国家代码DE的信息

命令

操作命令
按名称搜索countries search 查询词
获取详细信息
countries info <代码> | | 按地区列出 | countries region <地区> | | 按首都搜索 | countries capital 城市 | | 列出所有 | countries all |

示例

bash
countries search united states # 按名称查找国家
countries info US # 通过alpha-2代码获取完整信息
countries info USA # 也支持alpha-3代码
countries region europe # 所有欧洲国家
countries capital tokyo # 按首都查找国家
countries all # 列出所有国家(已排序)

地区

有效地区:africa(非洲)、americas(美洲)、asia(亚洲)、europe(欧洲)、oceania(大洋洲)

输出

搜索/列表输出:

[US] 美国 — 华盛顿特区,美洲,人口:3.31亿,🇺🇸

信息输出:

🌍 日本
官方名称:日本
代码:JP / JPN / 392
首都:东京
地区:亚洲 — 东亚
人口:1.258亿
面积:377930 km²
语言:日语
货币:日元(JPY)
时区:UTC+09:00
接壤国家:无(岛屿/孤立国家)
行驶方向:靠左行驶
国旗:🇯🇵

🗺️ 地图:https://goo.gl/maps/...

说明

  • - 使用REST Countries API v3.1(restcountries.com)
  • 无需身份验证,无速率限制
  • 国家代码:alpha-2(US)、alpha-3(USA)或数字代码(840)
  • 人口使用K/M/B后缀格式化
  • 所有地区名称均为小写

代理实现说明

脚本位置: {skill_folder}/countries(指向scripts/countries的包装器)

当用户询问国家信息时:

  1. 1. 运行 ./countries search 名称 查找国家代码
  2. 运行 ./countries info <代码> 获取完整信息
  3. 运行 ./countries region <地区> 获取地区列表
  4. 运行 ./countries capital 城市 按首都查找

常见模式:

  • - X在哪个国家? → 按名称搜索
  • 给我讲讲X → 搜索,然后用代码获取信息
  • 欧洲的国家 → region europe
  • X的首都 → 用代码获取信息,查看首都字段
  • 哪个国家的首都是X? → 按首都搜索

不适用于: 历史国家、争议领土、非主权地区。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 countries-1776362255 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 countries-1776362255 技能

通过命令行安装

skillhub install countries-1776362255

下载

⬇ 下载 countries v1.0.0(免费)

文件大小: 2.96 KB | 发布时间: 2026-4-17 16:05

v1.0.0 最新 2026-4-17 16:05
- Initial release of the "countries" CLI skill (v1.0.0).
- Provides country information using the REST Countries API v3.1.
- Supports searching by country name, code, capital city, and region.
- Lists countries by region and displays formatted summaries and detailed info.
- No authentication required; works using `bash`, `curl`, `jq`, and `bc`.
- Includes command-line usage examples and clear output formats.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部