Longbridge Value Investing
helsome/folio
Value investing analysis using Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) methodologies.
Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install nyaruka/phonenumbers sync-upstream --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/sync-upstream .claude/skills/sync-upstream && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .claude/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstreamType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install nyaruka/phonenumbers sync-upstream --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/sync-upstream .agents/skills/sync-upstream && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .agents/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install nyaruka/phonenumbers sync-upstream --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/sync-upstream .cursor/skills/sync-upstream && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .cursor/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/nyaruka/phonenumbers.git --path .claude/skills/sync-upstream--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install nyaruka/phonenumbers sync-upstream --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/sync-upstream .gemini/skills/sync-upstream && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .gemini/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install nyaruka/phonenumbers sync-upstreamInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/sync-upstream .github/skills/sync-upstream && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .github/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add nyaruka/phonenumbers --skill sync-upstream -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install nyaruka/phonenumbers sync-upstream --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/nyaruka/phonenumbers.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/sync-upstream .opencode/skills/sync-upstream && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "sync-upstream" agent skill from https://github.com/nyaruka/phonenumbers/tree/main/.claude/skills/sync-upstream into .opencode/skills/sync-upstream/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "sync-upstream", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
sync-upstreamSync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.
Sync Upstream is an agent skill from nyaruka/phonenumbers. Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic. Takes an optional argument — data (metadata regen only), code (code reconciliation only), or empty for both. Use when the user says "sync with upstream", "do an upstream sync", "reconcile against libphonenumber", "pull the latest libphonenumber", bump to a new libphonenumber version, or invokes /sync-upstream. SYNC.md holds the state (baseline version + deliberate…
Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Business, Finance & HR, covering Accounting and bookkeeping. It works with Java. The repository describes itself as: Go port of Google's libphonenumber library. The licence is MIT.
2 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d586aeb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitgoFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
github.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Sync Upstream loads about 2.8k tokens when it runs. Until then it costs about 142 tokens; SKILL.md has 1,168 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from nyaruka/phonenumbers at commit d586aeb, republished under its MIT licence (© nyaruka). 1,168 words, ~2,846 tokens.
.claude/skills/sync-upstream/SKILL.md (or your agent's skills folder).This package is a Go port of google/libphonenumber, tracking its Java reference implementation. A sync is two independent operations — do them in order, but understand they're different in kind:
data/ blobs from a new upstream
release. Fully automated by cmd/buildmetadata.State lives in SYNC.md: the code baseline (Code reconciled against vX.Y.Z)
and the deliberate divergences (what we intentionally do not port). Read it first. The
embedded-metadata version is tracked separately in the generated metadata/version.go
(metadata.Version) — never hand-edit that.
Run everything from the repo root (/Users/rowan/nyaruka/phonenumbers).
The skill takes one optional argument selecting which operation(s) to run:
/sync-upstream data — Phase 1 only (metadata regen). An automated metadata update can
invoke this mode directly./sync-upstream code — Phase 2 only (code reconciliation, against the metadata version
already built — see the note at the top of Phase 2)./sync-upstream — both phases, in order.Whichever mode runs, finish with Finalize below: commit the changes and stop. This skill
never releases — no tag, no push, no CHANGELOG.md. The user cuts releases separately
with /release.
go run ./cmd/buildmetadata # latest upstream release
# go run ./cmd/buildmetadata v9.0.32 # or pin a specific tagThis 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. The only files that may change are the embedded blobs (data/,
metadata/data/, carrier/data/, geocoding/data/, timezone/data/) and the generated
metadata/version.go:
data mode report that and stop; in a full sync continue to Phase 2 (the code baseline
may still lag the metadata version).In data mode, that's the whole job — skip to Finalize. Phase 1 has already bumped
metadata/version.go, and the Code reconciled against baseline in SYNC.md stays where
it is (the two versions are tracked separately for exactly this case).
The target tag you built becomes the new code baseline once Phase 2 reconciles against it.
Goal: apply any upstream Java logic changes between the old baseline (SYNC.md) and the
target to each Go port. The target is the tag Phase 1 built — in code-only mode, the
version already in metadata/version.go (metadata.Version), i.e. reconcile the code up to
where the embedded metadata already is.
Phase 1 leaves _build/ as a shallow clone at the target tag. In code-only mode
_build/ may be missing (it's gitignored) — recreate it at the target first:
TARGET=v9.0.32 # metadata.Version, from metadata/version.go
git clone --depth=1 --branch "$TARGET" https://github.com/google/libphonenumber _buildThen fetch the baseline tag into it so you can diff tree-to-tree (no merge base needed —
git diff A B compares trees):
BASE=v9.0.31 # from SYNC.md "Code reconciled against"
git -C _build fetch --depth=1 origin tag "$BASE"The per-file headers are the source of truth for the Go→Java mapping — every reconcilable
file carries a // Port of <upstream/path>. header. Enumerate them:
grep -rn "Port of" --include='*.go' . | grep -v _test.go | grep -v _build/For each upstream path P, diff it across the window and reconcile anything non-trivial:
git -C _build diff "$BASE" "$TARGET" -- "$P"The mapping (kept current; if files move, the headers win and this table is refreshed):
| Go | upstream Java path |
|---|---|
phonenumberutil.go, enums.go | java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberUtil.java |
asyoutypeformatter.go | java/libphonenumber/src/com/google/i18n/phonenumbers/AsYouTypeFormatter.java |
shortnumberinfo.go | java/libphonenumber/src/com/google/i18n/phonenumbers/ShortNumberInfo.java |
phonenumbermatcher.go | java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatcher.java |
phonenumbermatch.go | java/libphonenumber/src/com/google/i18n/phonenumbers/PhoneNumberMatch.java |
errors.go | java/libphonenumber/src/com/google/i18n/phonenumbers/NumberParseException.java |
internal/regexcache/ | java/libphonenumber/src/com/google/i18n/phonenumbers/internal/RegexCache.java |
internal/regexbasedmatcher/ | java/libphonenumber/src/com/google/i18n/phonenumbers/internal/RegexBasedMatcher.java, .../internal/MatcherApi.java |
metadata/source.go, alternateformats.go | java/libphonenumber/src/com/google/i18n/phonenumbers/metadata/source/*, .../MetadataLoader.java |
carrier/ | java/carrier/src/com/google/i18n/phonenumbers/PhoneNumberToCarrierMapper.java |
geocoding/ | java/geocoder/src/com/google/i18n/phonenumbers/geocoding/PhoneNumberOfflineGeocoder.java |
timezone/ | java/geocoder/src/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapper.java |
internal/prefixmapper/ | java/internal/prefixmapper/src/com/google/i18n/phonenumbers/prefixmapper/* |
internal/metadatabuilder/ | tools/java/common/src/com/google/i18n/phonenumbers/BuildMetadataFromXml.java |
internal/serialize and internal/stringbuilder are Go-specific scaffolding (gzip/binary
decode; a java.lang.StringBuilder stand-in) with no upstream logic to reconcile — skip them.
The corresponding upstream tests move in lockstep. The Go tests mirror the Java test
classes (e.g. PhoneNumberUtilTest → phonenumberutil_test.go and friends); diff those too
and port new cases:
git -C _build diff "$BASE" "$TARGET" -- "$(echo "$P" | sed 's#/src/#/test/#')"For each non-empty diff, translate the relevant change into the Go port. While doing so:
metadata/source.go, internal/regexcache, internal/regexbasedmatcher,
internal/prefixmapper); that's expected.// Port of … file, keep constructs close
to the Java so the next diff lines up, even when a linter (gopls modernize, staticcheck)
suggests a more idiomatic Go form — e.g. don't rewrite an index for loop as for i := range n,
or a manual scan as slices.Contains. Let those modernizations ride in with upstream when the
Java itself changes. Non-ported code (cmd/, CI, build glue, and Go-specific scaffolding like
internal/serialize / internal/stringbuilder) has no Java counterpart to track, so make it
fully idiomatic.public in Java is exported in Go; one that is
private/package-private/@VisibleForTesting stays unexported (lower-case camelCase). Constants
especially: REGION_CODE_FOR_NON_GEO_ENTITY is the only public static final upstream, so it
is the lone exported constant — every other ported regex/char-class/length-limit/mapping is
unexported. The deliberate exceptions are the Go-idiomatic Err* vars (standing in for Java's
checked exceptions) and the public enum types. Don't export a new internal just because it's a
package-level const/var.Parse/ParseToNumber,
IsNumberMatch/IsNumberMatchWithNumbers/IsNumberMatchWithOneNumber,
GetExampleNumberForType/GetExampleNumberForTypeInRegion,
IsPossibleNumber/IsPossibleNumberFromRegion, IsNumberGeographical/IsNumberGeographicalForType.
Porting an overload that already exists upstream is faithful porting, not the "don't add API"
case above — fill the gap rather than skipping it. Which overload keeps the bare name (and the
exact suffix) is a judgment call; flag new public names in the PR.metadata/version.go, *.pb.go) or the data/ blobs —
those come from Phase 1 / protoc.Then make it green:
go test ./...If code was reconciled (Phase 2 ran), update SYNC.md (state only):
Code reconciled against version to the target tag.Then, with go test ./... green, commit the changes:
data mode): commit the blobs and metadata/version.go with the
message Updated metadata to <tag>, where <tag> is the upstream tag it was built from
(metadata.Version in metadata/version.go), e.g. Updated metadata to v9.0.33.Stop there. Do not push, tag, or touch CHANGELOG.md — those belong to the release
process. Finish by reporting that the changes are committed and a release can be cut with
/release.
Leave public-facing text (commit messages, comments) describing the software in general terms.
© nyaruka, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/sync-upstream of nyaruka/phonenumbers.
Open the folder on GitHubat commit d586aeb
Sync Upstream next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Sync Upstream this skillnyaruka/phonenumbers | 1.6k | — | ~2.8k | Automated safety check: Pass | MIT | |
| Longbridge Value Investinghelsome/folio | 269 | 2 repos | ~1.2k | Automated safety check: Pass | MIT | |
| Radiology Tablehuang-sir1/radiology-skills | 1.9k | — | ~1.3k | Automated safety check: Pass | Custom licence | |
| Odoo Agency Fleet Reviewerpipe-org/mcp-odoo | 420 | — | ~699 | Automated safety check: Pass | MIT | |
| Beancount Closebex-co/beancount-io | 295 | — | ~1.4k | Automated safety check: Pass | MIT | |
| ERPClaw ERP Controlleravansaber/erpclaw | 114 | — | ~15k | Automated safety check: Pass | GPL-3.0 |
helsome/folio
Value investing analysis using Graham (NCAV/net-net/defensive-investor) and Buffett (economic moat/ROE/FCF) methodologies.
huang-sir1/radiology-skills
Create/audit editable publication tables with source reconciliation; not figures or statistical inference.
erpipe-org/mcp-odoo
Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…
bex-co/beancount-io
Close an accounting period in a Beancount ledger by reconciling each active account through beancount-reconcile, checking assertions and recurring gaps, reviewing flags, then proposing a commit with…
avansaber/erpclaw
Operates the ERPClaw self-hosted ERP in plain language: accounting, invoicing, inventory, purchasing, tax, HR, payroll and reports, treating the ERP as the single source of truth.
Vuk97/forward-implementation-first
Keeps an agent building and validating real output instead of servicing its own bookkeeping.
Works with
Categories
Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic. Sync Upstream is an agent skill from nyaruka/phonenumbers. Sync this Go port with a new upstream google/libphonenumber release — regenerate the embedded metadata and reconcile the ported Java logic.
Sync Upstream fits situations like: the user says sync with upstream; do an upstream sync; reconcile against libphonenumber; pull the latest libphonenumber.
Run `npx skills add nyaruka/phonenumbers --skill sync-upstream -a claude-code`. Or copy the skill folder (.claude/skills/sync-upstream in nyaruka/phonenumbers) into .claude/skills/sync-upstream in your project. Claude Code loads it when a task matches its description.
Run `npx skills add nyaruka/phonenumbers --skill sync-upstream -a codex`. Or copy the skill folder (.claude/skills/sync-upstream in nyaruka/phonenumbers) into .agents/skills/sync-upstream in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add nyaruka/phonenumbers --skill sync-upstream -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sync-upstream, .gemini/skills/sync-upstream, .github/skills/sync-upstream and .opencode/skills/sync-upstream in your project.
Going by SKILL.md and its folder, Sync Upstream needs the command-line tools its instructions call (git and go).
SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Sync Upstream is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Sync Upstream: Longbridge Value Investing (helsome/folio, 269 stars), Radiology Table (huang-sir1/radiology-skills, 1.9k stars), Odoo Agency Fleet Review (erpipe-org/mcp-odoo, 420 stars) and Beancount Close (bex-co/beancount-io, 295 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
nyaruka (a GitHub organization) maintains it in nyaruka/phonenumbers, which has 1,605 GitHub stars. The repository was last updated on October 2, 2026.
Source: nyaruka/phonenumbers on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.