countries

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

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "countries" with this command: npx skills add jeffaf/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

ActionCommand
Search by namecountries search "query"
Get detailscountries info <code>
List by regioncountries region <region>
Search by capitalcountries capital "city"
List allcountries 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:

  1. Run ./countries search "name" to find country code
  2. Run ./countries info <code> for full details
  3. Run ./countries region <region> for regional lists
  4. 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

China Top Doctor Referral

OceanBus-powered top-tier hospital specialist referral service for high-end medical insurance clients. Use when users need to search 1,600+ leading specialis...

Registry SourceRecently Updated
Coding

Nm Gauntlet Extract

Analyze a codebase and build a knowledge base of business logic, architecture, data flow, and engineering patterns. The foundation for gauntlet challenges an...

Registry SourceRecently Updated
1790athola
Coding

Desktop Gui

全桌面 GUI 自动化 — 使用 Python 库 (pyautogui, opencv) + xdotool + scrot,支持鼠标/键盘模拟、截图、视觉识别。

Registry SourceRecently Updated
Coding

Nm Sanctum Doc Updates

Update documentation after code changes with quality gates, slop detection, consolidation, and accuracy verification

Registry SourceRecently Updated
1590athola