Skip to content
Back to skills

Node Compat Gap

ASecurity

Close a Node 22 API gap in pi-js, the QuickJS runtime that runs pi extensions. Use when an extension needs a Node API that throws ERR_PI_UNSUPPORTED or behaves differently, or when working on entries in crates/pi-js/src/unsupported.rs.

  • 42 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsgonodeapi

Works with

  • api

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add yannelli/pi-rust --skill node-compat-gap --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Node Compat Gap?

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

Security grade badge for Node Compat Gap
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yannelli-node-compat-gap/badge)](https://www.skillsdirectory.com/skills/yannelli-node-compat-gap)

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: node-compat-gap
description: Close a Node 22 API gap in pi-js, the QuickJS runtime that runs pi extensions. Use when an extension needs a Node API that throws ERR_PI_UNSUPPORTED or behaves differently, or when working on entries in crates/pi-js/src/unsupported.rs.
---

# Close a Node API gap

Full playbook: `docs/agents/node-compat.md`. Rules for the crate: `crates/pi-js/AGENTS.md`.

1. Find the entry in `crates/pi-js/src/unsupported.rs` (`UNSUPPORTED_APIS` or `DIFFERENCES`).
2. Read how Node 22 behaves. Write a small script and run it under real Node 22 to get the exact output and error codes.
3. Implement it in `crates/pi-js/src/node/<module>.rs` and `crates/pi-js/src/js/<module>.js`, following a module that already works.
4. Update the `unsupported.rs` entry in the same change.
5. Add a test in `crates/pi-js/tests/` that compares with the Node output. Use `run_cjs_within` for anything that can hang.
6. Run the checks listed at the end of `docs/agents/node-compat.md`, including the Windows and armv7 cross-builds.

Ask before adding a crate. A crate already in `Cargo.lock`, or a feature of an existing dependency, is fine when it builds for every release target.

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.

View all in ai-agents →

Comments

Loading comments…

Newsletter

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