/install countries
Countries Lookup
CLI for AI agents to lookup country info for their humans. "What's the capital of Mongolia?" — now your agent can answer.
Uses REST Countries API (v3.1). No account or API key needed.
Usage
"Tell me about Japan"
"What countries are in South America?"
"Which country has Tokyo as capital?"
"Info on country code DE"
Commands
| Action | Command |
|---|---|
| Search by name | countries search "query" |
| Get details | countries info \x3Ccode> |
| List by region | countries region \x3Cregion> |
| Search by capital | countries capital "city" |
| List all | countries all |
Examples
countries search "united states" # Find country by name
countries info US # Get full details by alpha-2 code
countries info USA # Also works with alpha-3
countries region europe # All European countries
countries capital tokyo # Find country by capital
countries all # List all countries (sorted)
Regions
Valid regions: africa, americas, asia, europe, oceania
Output
Search/list output:
[US] United States — Washington D.C., Americas, Pop: 331M, 🇺🇸
Info output:
🌍 Japan
Official: Japan
Code: JP / JPN / 392
Capital: Tokyo
Region: Asia — Eastern Asia
Population: 125.8M
Area: 377930 km²
Languages: Japanese
Currencies: Japanese yen (JPY)
Timezones: UTC+09:00
Borders: None (island/isolated)
Driving: left side
Flag: 🇯🇵
🗺️ Map: https://goo.gl/maps/...
Notes
- Uses REST Countries API v3.1 (restcountries.com)
- No authentication or rate limits
- Country codes: alpha-2 (US), alpha-3 (USA), or numeric (840)
- Population formatted with K/M/B suffixes
- All regions lowercase
Agent Implementation Notes
Script location: {skill_folder}/countries (wrapper to scripts/countries)
When user asks about countries:
- Run
./countries search "name"to find country code - Run
./countries info \x3Ccode>for full details - Run
./countries region \x3Cregion>for regional lists - Run
./countries capital "city"to find by capital
Common patterns:
- "What country is X in?" → search by name
- "Tell me about X" → search, then info with code
- "Countries in Europe" → region europe
- "Capital of X" → info with code, check capital field
- "What country has capital X?" → capital search
Don't use for: Historical countries, disputed territories, non-sovereign regions.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install countries - 安装完成后,直接呼叫该 Skill 的名称或使用
/countries触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Countries 是什么?
CLI for AI agents to lookup country info for their humans. Uses REST Countries API. No auth required. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1569 次。
如何安装 Countries?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install countries」即可一键安装,无需额外配置。
Countries 是免费的吗?
是的,Countries 完全免费(开源免费),可自由下载、安装和使用。
Countries 支持哪些平台?
Countries 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Countries?
由 jeffaf(@jeffaf)开发并维护,当前版本 v1.0.0。