RustPython Stdlib Upgrade
RustPython/RustPython
Upgrades a Python standard library module from CPython into RustPython with update_lib, then triages and marks the tests that still fail.
Validate that a ballerina/<name stdlib's Go public contract does not break the jBallerina public interface.
$ npx skills add ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install ballerina-nutcracker/ballerina validate-stdlib-contract --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/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .claude/skills/validate-stdlib-contract && 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 "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .claude/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contractType 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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install ballerina-nutcracker/ballerina validate-stdlib-contract --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .agents/skills/validate-stdlib-contract && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .agents/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install ballerina-nutcracker/ballerina validate-stdlib-contract --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .cursor/skills/validate-stdlib-contract && 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 "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .cursor/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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/ballerina-nutcracker/ballerina.git --path .agents/skills/validate-stdlib-contract--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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install ballerina-nutcracker/ballerina validate-stdlib-contract --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .gemini/skills/validate-stdlib-contract && 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 "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .gemini/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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 ballerina-nutcracker/ballerina validate-stdlib-contractInstalls 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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .github/skills/validate-stdlib-contract && 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 "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .github/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install ballerina-nutcracker/ballerina validate-stdlib-contract --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/ballerina-nutcracker/ballerina.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/validate-stdlib-contract .opencode/skills/validate-stdlib-contract && 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 "validate-stdlib-contract" agent skill from https://github.com/ballerina-nutcracker/ballerina/tree/main/.agents/skills/validate-stdlib-contract into .opencode/skills/validate-stdlib-contract/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "validate-stdlib-contract", 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.
validate-stdlib-contractValidate that a ballerina/<name stdlib's Go public contract does not break the jBallerina public interface.
Validate Stdlib Contract is an agent skill from ballerina-nutcracker/ballerina. Validate that a ballerina/<name stdlib's Go public contract does not break the jBallerina public interface. Use when asked to validate, check, or verify a stdlib's public contract against jBallerina, or to review a stdlib PR for public-interface breakage. Produces a summary report at CONTRACTVALIDATION.md. For porting a new stdlib use add-stdlib-support; for filling a gap use fill-stdlib-gap.
Its SKILL.md is about 2.9k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files.
The repository describes itself as: Native Ballerina Interpreter. The licence is Apache-2.0.
7 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 0cefa3f. 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.
Ships script files (Go), which the agent can run.
Shell commands in SKILL.md call:
goFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From 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.
Validate Stdlib Contract loads about 2.9k tokens when it runs. Until then it costs about 107 tokens; SKILL.md has 1,183 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 ballerina-nutcracker/ballerina at commit 0cefa3f, republished under its Apache-2.0 licence (© ballerina-nutcracker). 1,183 words, ~2,871 tokens.
.claude/skills/validate-stdlib-contract/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.This Go-native interpreter re-implements ballerina/* standard libraries that originated in jBallerina (Java). Customer Ballerina code is written against the jBallerina public interface.
The golden rule: the Go implementation must never break that public interface — doing so breaks existing customer code at compile time. This skill checks a single ballerina/<name> package against that rule and writes a readable, summary-level report.
It validates the public interface only, from Ballerina sources only (.bal files) — it does not audit Go native behaviour line by line. Run it per module; it is repeatable.
Use add-stdlib-support to port a new stdlib and fill-stdlib-gap to implement a missing function. This skill only validates — it does not change the implementation.
The README support matrix is the contract of record. Its status column decides how each interface is treated:
.bal with a signature matching jBallerina exactly. A limitation surfaces as a runtime error/warning, never a removed or altered declaration.Three facets, enforced over Supported + Partially Supported + Cannot Support:
.bal.public symbol exists in the Go .bal that jBallerina lacks. (Backward-compatible additions may be reconsidered in future; for now, forbidden.)Ask the user for the path to the corresponding jBallerina library implementation root, e.g. ~/github/ballerina-platform/module-ballerina-<name>/. Do not proceed without it.
Then locate:
.bal files under <root>/ballerina/ (exclude tests/ and build/).lib/stdlibs/ballerina/<name>/0.0.1/go1.27/*.bal.lib/stdlibs/ballerina/<name>/0.0.1/go1.27/README.md, the "Go Native Interpreter Support Status" table.Stop and ask if any of these is missing. If the Go module does not exist at all, this is a porting task — redirect to add-stdlib-support.
Do not enumerate public symbols by reading .bal files by eye — that is slow and misses symbols on large surfaces. Use the extraction tool shipped with this skill, which parses each .bal tree with this repo's own parser and emits a sorted, stable dump of every public declaration with its caller-observable signature:
go run ./.agents/skills/validate-stdlib-contract/cmd/extract-surface <jball-root>/ballerina > /tmp/<name>-jball.surface
go run ./.agents/skills/validate-stdlib-contract/cmd/extract-surface lib/stdlibs/ballerina/<name>/0.0.1/go1.27 > /tmp/<name>-go.surface(Run from this repo's root. The tool skips tests/ and build/ subdirectories automatically and reports files it failed to parse on stderr — a parse failure means that file must be reviewed by hand; do not silently drop it.)
The dump covers, per symbol kind:
readonly, defaults, and any inclusions.client/service/readonly/isolated qualifiers.Private declarations and = external plumbing are excluded — they are not part of the contract.
Then diff the two dumps:
diff -u /tmp/<name>-jball.surface /tmp/<name>-go.surfaceAn empty diff over the in-scope symbols is a strong PASS signal; every diff hunk must be classified in Step 5. Spot-check a couple of symbols against the raw .bal source to confirm the tool's output is faithful before relying on it.
Read the README support table. Map each row whose status is Supported, Partially Supported, or Cannot Support (the Feature/API column is prose, per stdlib-readme-format — interpret it to the concrete public symbols it covers) into the in-scope contract. Rows marked Not Yet Supported are out of scope (deferred coverage).
If a matrix row's prose can't be mapped to concrete symbols with confidence, note it as a 🟡 documentation gap rather than guessing.
Walk the Step 2 diff, bounded by the in-scope set (Step 3). Classify every symbol:
Supported/Partially), present in Go, signature matches jBallerina.Cannot Support rows and limited Partially Supported cases. Acceptable (does not fail) provided the degradation is documented in the README (matrix Comments / Notable Behavioural Changes) and is a runtime error/warning — not a compile error, not silent wrong behaviour.Supported / Partially / Cannot Support but the symbol is absent from the Go .bal (customer hits a compile error). For Cannot Support, the fix is to re-add the declaration backed by a runtime error/warning — not to leave it out.public in Go, absent in jBallerina.Supported while clearly partial; or a Cannot Support/limited symbol whose runtime-error degradation is undocumented. A documentation fix, not a hard fail unless it hides one of the 🔴 cases above.Not Yet Supported. Informational only.readonly, defaults, and inclusions all count.client/service/readonly qualifiers that affect the caller.isolated that doesn't change the call site) are notes, not breaks.int[] vs int[]) is not a break — confirm against the raw source before recording a 🔴.Read AGENTS.md for known interpreter limitations (distinct error subtypes aliased to error, readonly & intersections, stream, XML, full typedesc handling). A signature divergence wholly attributable to one of these is 🔵 Accepted (interpreter limitation) — surfaced, not failed — provided it is recorded in the README Notable Behavioural Changes. If it is not documented there, downgrade it to 🟡 (documentation gap).
So 🔵 covers both interpreter-limitation divergences and Cannot Support runtime-error degradations: both are acceptable only when documented.
Write lib/stdlibs/ballerina/<name>/0.0.1/go1.27/CONTRACT_VALIDATION.md, summary-first, problems up top, not technically deep.
Lifecycle: this report is an ephemeral review artifact — regenerated in full on every run, never committed (CONTRACT_VALIDATION.md is gitignored). Overwrite any existing copy without preserving its content; the git-tracked contract of record remains the README support matrix.
# Public Contract Validation — ballerina/<name>
## Verdict
**PASS / FAIL** — one line (e.g. "FAIL — 1 signature break, 1 new interface").
## Scope
- jBallerina reference: <path> (commit/version if known)
- Go implementation: lib/stdlibs/ballerina/<name>/0.0.1/go1.27/
- Compared: public functions, types, constants, enums, classes, annotations, listeners
- Enforcement scope: Supported / Partially Supported / Cannot Support rows (presence + signature). Not Yet Supported is out of scope.
## Summary
| Category | Count |
|-----------------------------------------------|-------|
| In-scope public symbols (validated) | |
| ✅ Compatible | |
| 🔵 Gracefully degraded (runtime error/warning) | |
| 🔴 Breaking — signature diverges | |
| 🔴 Breaking — missing (claimed) | |
| 🔴 Disallowed — new interface in Go | |
| 🟡 Matrix inaccurate / undocumented | |
| ⚪ Deferred (Not Yet Supported) | |
## Coverage
- jBallerina public surface: N symbols total
- In scope — enforced (Supported + Partially + Cannot Support): X (XX%)
- Deferred (Not Yet Supported): Y — list briefly
## 🔴 Violations of the golden rule
### Removed / missing public interface
### Changed signature (jBallerina → Go, side by side)
### New public interface in Go (not in jBallerina)
## 🔵 Accepted divergences & graceful degradations
- symbol — what differs or how it degrades (runtime error/warning) — where it's documented
## 🟡 Documentation gaps
- matrix rows that over- or under-state the real surface
## Recommendations
- per violation: the concrete fix — re-add the declaration backed by a runtime error/warning;
revert the signature to the jBallerina shape; remove or gate the new public symbol;
correct the matrix row.Keep each section short. Omit a 🔴/🟡/🔵 section entirely if it has no entries (but always keep Verdict, Summary, and Coverage).
State the verdict on the first line of the report and repeat it in the final chat summary, with the headline counts (e.g. "FAIL — 1 missing Cannot-Support interface, 1 signature break; 3 documentation gaps").
© ballerina-nutcracker, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in .agents/skills/validate-stdlib-contract of ballerina-nutcracker/ballerina.
Open the folder on GitHubat commit 0cefa3f
Validate Stdlib Contract 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 |
|---|---|---|---|---|---|---|
| Validate Stdlib Contract this skillballerina-nutcracker/ballerina | 120 | — | ~2.9k | Automated safety check: Pass | Apache-2.0 | |
| RustPython Stdlib UpgradeRustPython/RustPython | 22k | — | ~876 | Automated safety check: Pass | MIT | |
| Next Python Stdlib Upgrade PickerRustPython/RustPython | 22k | — | ~257 | Automated safety check: Pass | MIT | |
| Python ExpertRightNow-AI/openfang | 18k | — | ~765 | Automated safety check: Pass | Apache-2.0 | |
| Write Script Denowindmill-labs/windmill | 18k | — | ~9.6k | Automated safety check: Pass | Custom licence | |
| Atoatopile/atopile | 4k | — | ~12k | Automated safety check: Pass | MIT |
RustPython/RustPython
Upgrades a Python standard library module from CPython into RustPython with update_lib, then triages and marks the tests that still fail.
RustPython/RustPython
Picks the next CPython standard library module ready for a RustPython upgrade, skipping modules that already have an open upgrade pull request.
RightNow-AI/openfang
Python expert for stdlib, packaging, type hints, async/await, and performance optimization
windmill-labs/windmill
Use ONLY when a TypeScript script specifically requires the Deno runtime (Deno stdlib or deno.land URL imports).
atopile/atopile
Authoritative ato authoring and review skill: language reference, stdlib, design patterns, and end-to-end board design workflow.
ballerina-platform/ballerina-library
Generates a complete Ballerina connector from an OpenAPI specification.
ballerina-nutcracker/ballerina
Authoritative format contract for lib/stdlibs/ballerina/<name/0.0.1/go1.27/README.md files.
ballerina-nutcracker/ballerina
Port a new ballerina/<name stdlib package from jBallerina to this Go-native interpreter.
ballerina-nutcracker/ballerina
Fill a gap in an existing ballerina/<name stdlib — implement a function marked Not Yet Supported, promote a Partially Supported row, or fix a behavioural divergence.
ballerina-nutcracker/ballerina
Run a given Ballerina source file with jBallerina to compare behaviour against this interpreter
ballerina-nutcracker/ballerina
A skill your agent uses when you are asked to fill in a subset doc (./doc/lang/subset.md)
ballerina-nutcracker/ballerina
Creating/updating corpus tests
Validate that a ballerina/<name stdlib's Go public contract does not break the jBallerina public interface. Validate Stdlib Contract is an agent skill from ballerina-nutcracker/ballerina. Validate that a ballerina/<name stdlib's Go public contract does not break the jBallerina public interface.
Validate Stdlib Contract fits situations like: asked to validate; verify a stdlibs public contract against jBallerina; review a stdlib PR for public-interface breakage.
Run `npx skills add ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a claude-code`. Or copy the skill folder (.agents/skills/validate-stdlib-contract in ballerina-nutcracker/ballerina) into .claude/skills/validate-stdlib-contract in your project. Claude Code loads it when a task matches its description.
Run `npx skills add ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a codex`. Or copy the skill folder (.agents/skills/validate-stdlib-contract in ballerina-nutcracker/ballerina) into .agents/skills/validate-stdlib-contract 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 ballerina-nutcracker/ballerina --skill validate-stdlib-contract -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/validate-stdlib-contract, .gemini/skills/validate-stdlib-contract, .github/skills/validate-stdlib-contract and .opencode/skills/validate-stdlib-contract in your project.
Going by SKILL.md and its folder, Validate Stdlib Contract needs Go for the scripts in its folder and the command-line tools its instructions call (go).
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. 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.
Validate Stdlib Contract is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.9k 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 Validate Stdlib Contract: RustPython Stdlib Upgrade (RustPython/RustPython, 22k stars), Next Python Stdlib Upgrade Picker (RustPython/RustPython, 22k stars), Python Expert (RightNow-AI/openfang, 18k stars) and Write Script Deno (windmill-labs/windmill, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
ballerina-nutcracker (a GitHub organization) maintains it in ballerina-nutcracker/ballerina, which has 120 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 8, 2026.
Source: ballerina-nutcracker/ballerina on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.