Skip to content
Back to skills

Countries

ASecurity

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

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
toolsgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill countries --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Countries?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Countries
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-countries/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-countries)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: countries
version: 1.0.0
description: "CLI for AI agents to lookup country info for their humans. Uses REST Countries API. No auth required."
homepage: https://restcountries.com
metadata:
  openclaw:
    emoji: "🌍"
    requires:
      bins: ["bash", "curl", "jq", "bc"]
    tags: ["countries", "geography", "reference", "api", "cli"]
---

# 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 <code>` |
| List by region | `countries region <region>` |
| Search by capital | `countries capital "city"` |
| List all | `countries all` |

### Examples

```bash
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

**Platform note:** If your human is on Windows, they'll need WSL, Git Bash, or Cygwin to run this skill.

**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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.