rest-countries

rest-countries is a skill for Claude Code, Codex from JustVugg/tools-factory. It costs 36 tokens per session (426 once invoked), scanned A, original, MIT.

A skill for calling the REST Countries API, an online service that provides structured information about countries. It uses a local command-line tool and can return machine-readable JSON.

In plain words
What is it for?
Use it to look up a country by name, list countries in Europe, or find independent countries.
Why use it?
It gives the agent a consistent way to request country data without authentication and without manually constructing API requests.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to look up a country by name, list countries in Europe, or find independent countries.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/justvugg/tools-factory/rest-countries
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add JustVugg/tools-factory --skill rest-countries
Clone the repo
git clone --depth 1 https://github.com/JustVugg/tools-factory

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for rest-countries

README.md
[![agentmods](https://agentmods.dev/badge/skills/justvugg/tools-factory/rest-countries/github.svg)](https://agentmods.dev/skills/justvugg/tools-factory/rest-countries)
Your own site
<a href="https://agentmods.dev/skills/justvugg/tools-factory/rest-countries"><img src="https://agentmods.dev/badge/skills/justvugg/tools-factory/rest-countries/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for rest-countries

Your own site · 80×15
<a href="https://agentmods.dev/skills/justvugg/tools-factory/rest-countries"><img src="https://agentmods.dev/badge/skills/justvugg/tools-factory/rest-countries.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00036 $0.00426
Opus 5.5 $0.00014 $0.00170
Sonnet 5.5 $0.00007 $0.00085
Haiku 4.5 $0.00004 $0.00043

Measured 3mo ago against content hash 26ad39f92fd7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

rest-countries scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

library/tools/rest-countries/skills/rest-countries/SKILL.md · 50 lines

What it actually says

rest-countries

Generated by Gutenberg. Use this skill to call the rest-countries API through the local rest-countries CLI.

When to use

  • The user asks for data exposed by rest-countries (v3.1).
  • An agent task needs structured JSON from https://restcountries.com.
  • You need to perform a write/destructive operation on rest-countries — always preview first, run with --yes only on explicit user confirmation.

How to invoke

The skill assumes the generated CLI is on PATH (or invoke via scripts/use-go.sh run ./cmd/rest-countries from the project directory).

rest-countries operations
rest-countries call getNameItaly --json
rest-countries sync --json
rest-countries search "<keyword>" --json

Authentication

No authentication required.

Operations index

  • getNameItaly (GET /v3.1/name/italy) — read — GET /v3.1/name/italy
  • getRegionEurope (GET /v3.1/region/europe) — read — GET /v3.1/region/europe
  • getIndependent (GET /v3.1/independent) — read — GET /v3.1/independent

Output contract

  • All commands accept --json and emit machine-readable output.
  • call returns { dryRun, operation, request, response }. dryRun: true means the call was not executed (write op without --yes).
  • search returns cached records. sync populates the local SQLite cache.

Provenance

  • Schema: gutenberg.blueprint.v1
  • Generated by: gutenberg 0.3.0
  • Source spec: /tmp/rest-countries.openapi.json
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 50 lines · 36 tokens per session scan A 26ad39f92fd7

Subscribe to this mod's changes

rest-countries is a skill published in the GitHub repository JustVugg/tools-factory (64 stars, last pushed 4mo ago), licensed MIT. It adds 36 tokens to every session and 426 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

rest-countries compared with skills from other repositories

rest-countries next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
rest-countriesJustVugg/tools-factorySkill644mo agoMITA36Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
vs-search-tuning-specify-policy-directionvolcengine/SearchCLISkill1.2k19d agoApache-2.0A93Claude Code, Codex
vs-product-qavolcengine/SearchCLISkill1.2k19d agoApache-2.0A51Claude Code, Codex
vs-search-tuning-partial-casevolcengine/SearchCLISkill1.2k19d agoApache-2.0A85Claude Code, Codex
vs-crawlervolcengine/SearchCLISkill1.2k19d agoApache-2.0A57Claude Code, Codex
volcengine-documentationvolcengine/SearchCLISkill1.2k19d agoApache-2.0A51Claude Code, Codex