phonenumbers: Skill for Claude Code

.claude/skills/sync-upstream/SKILL.md

sync-upstream is a skill for Claude Code from nyaruka/phonenumbers. It costs 98 tokens per session (2,609 once invoked), scanned A, original, MIT.

A procedure for bringing a Go version of Google’s libphonenumber library up to date with a newer release of the original Java library. libphonenumber is software that interprets and validates telephone numbers.

In plain words
What is it for?
Use it when syncing with a new upstream libphonenumber release, either to regenerate embedded number data, reconcile code changes, or do both.
Why use it?
It separates automatic metadata updates from the manual work of matching changes in the original library’s code. This makes upstream updates easier to track and review.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is nyaruka/phonenumbers's own configuration. It tells Claude Code how to work on phonenumbers itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything phonenumbers configures →

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /Users/rowan/nyaruka/phonenumbers.

About the project

nyaruka/phonenumbers is a Go implementation of Google's libphonenumber, a library that parses and validates telephone numbers using international numbering metadata. It is used in software that needs to interpret phone numbers from different countries, and its catalogue skill supports synchronizing the port with upstream changes.

nyaruka/phonenumbers · 1,608 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to nyaruka/phonenumbers. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nyaruka/phonenumbers/main/.claude/skills/sync-upstream/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nyaruka/phonenumbers

Made for: Claude Code.

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 sync-upstream

README.md
[![agentmods](https://agentmods.dev/badge/skills/nyaruka/phonenumbers/sync-upstream/github.svg)](https://agentmods.dev/skills/nyaruka/phonenumbers/sync-upstream)
Your own site
<a href="https://agentmods.dev/skills/nyaruka/phonenumbers/sync-upstream"><img src="https://agentmods.dev/badge/skills/nyaruka/phonenumbers/sync-upstream/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 sync-upstream

Your own site · 80×15
<a href="https://agentmods.dev/skills/nyaruka/phonenumbers/sync-upstream"><img src="https://agentmods.dev/badge/skills/nyaruka/phonenumbers/sync-upstream.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,609 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.00098 $0.02609
Opus 5.5 $0.00039 $0.01044
Sonnet 5.5 $0.00020 $0.00522
Haiku 4.5 $0.00010 $0.00261

Measured 10d ago against content hash 857966719a0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sync-upstream 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 10d 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.

.claude/skills/sync-upstream/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sync with upstream libphonenumber

This package is a Go port of google/libphonenumber, tracking its Java reference implementation. A sync has two phases — run them in order:

  1. Metadata regen — mechanical. Rebuild the embedded data/ blobs from a new upstream release. Fully automated by cmd/buildmetadata.
  2. Code reconciliation — judgment. Port new Java logic changes into the Go files. Can't be automated; this is the real reason SYNC.md exists.

State lives in SYNC.md: the upstream version the port is synced against and the deliberate divergences (what we intentionally do not port). Read it first. The generated metadata/version.go (metadata.Version) records the same version — never hand-edit that.

Run everything from the repo root (/Users/rowan/nyaruka/phonenumbers).

This skill never releases — no tag, no push, no CHANGELOG.md. Releases are cut separately after reviewing the sync.


Phase 1 — Metadata regen (mechanical)

go run ./cmd/buildmetadata            # latest upstream release
# go run ./cmd/buildmetadata v9.0.32  # or pin a specific tag

This resolves the target tag, wipes and re-clones upstream into _build/ (a shallow --depth=1 checkout at the target tag — gitignored), rebuilds every embedded blob (data/, metadata/data/, carrier/data/, geocoding/data/, timezone/data/), and rewrites the generated metadata/version.go with the tag it built from.

Then:

go test ./...

Review the diff — include untracked files (git status not just git diff), since a new upstream locale or prefix file produces a new blob. The only files that may change or appear are the embedded blobs (data/, metadata/data/, carrier/data/, geocoding/data/, timezone/data/) and the generated metadata/version.go:

  • No changes at all → the metadata is already up to date; continue to Phase 2 (the code baseline may still lag the metadata version).
  • Changes outside that set → something is wrong; stop and report the unexpected changes without committing.

Read the full file on GitHub · 196 lines

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. 10d ago Changed · -18 lines · -26 tokens per session 857966719a0f
  2. 2mo ago First seen · 214 lines · 124 tokens per session scan A b2193c689ddf

Subscribe to this mod's changes

sync-upstream is a skill published in the GitHub repository nyaruka/phonenumbers (1,608 stars, last pushed 11d ago), licensed MIT. It adds 98 tokens to every session and 2,609 once invoked, about $0.0004 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

sync-upstream compared with skills from other repositories

sync-upstream next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
sync-upstreamnyaruka/phonenumbersSkill1.6k11d agoMITA98Claude Code
golang-testingaffaan-m/ECCSkill298k4d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill298k4d agoMITA45Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill3.8k5d agoMITA115Claude Code
golang-uber-fxsamber/cc-skills-golangSkill3.8k5d agoMITA122Claude Code
golang-samber-oopssamber/cc-skills-golangSkill3.8k5d agoMITA74Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0k3d agoApache-2.0A51Claude Code, Codex