← Catalog

@pi-in-go/pigpen-extension-port

Test-first, proof-checked procedure for porting Pi TypeScript extensions to native Go PiG extensions

SkillPigpen

Install

Install with PiG

pig install npm:@pi-in-go/pigpen-extension-port
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package. This one is published by the PiG project from the Pigpen repository; that is not a verification claim.

Pi manifest JSON

The pi field of package.json.

{
  "skills": [
    "skills/pigpen-pi-extension-port"
  ]
}

README

Written by the package's publisher, shown as published in version 0.1.1 (README.md). PiG does not review it.

Extension porting Package

This Package supplies pigpen-pi-extension-port, a strict, proof-checked procedure for porting a Pi TypeScript extension to a Go PiG extension. It contains no extension and needs no Node runtime to install; the proof steps use the extension-equivalence Package.

The workflow, in order: SDK gap check, tests first (a fake PiG host over net.Pipe, and scripted scenarios recorded from the original under Pi), red, Go implementation, a differential check that the original under Pi and the port under PiG produce identical traces, a mutation check, a Piglet Binary build with the extension fused, and a Package with provenance back to the original and its license.

FileContent
skills/pigpen-pi-extension-port/SKILL.mdThe workflow and completion checklist, with the L-rules from PiG's own port.
references/ts-to-go-patterns.mdEvent mapping, async and Promise, dialogs, exec and child processes, error text, strings and numbers, Windows paths, known SDK gaps and host differences.
references/fakehost_test.go.txtThe fake-host test harness to copy into a port (fakehost_test.go).

Use independently

From the Pigpen checkout root:

pig package validate ./components/extension-port
pig install ./components/extension-port

Then invoke the Skill in a PiG session:

/skill:pigpen-pi-extension-port port <original.ts> to <target-directory>

Pigpen's own ports are dispatched from ports/ports.json: give the Skill one row, /skill:pigpen-pi-extension-port port row <id>, and it takes the pinned upstream, target, license and credit from the row and keeps the row's status (porting, then review) up to date.

The local install references this checkout; keep it at its installed path and use pig remove with the same path to remove it. The pig-extension-porter Piglet selects this Skill together with the equivalence extension, from a generated local stage (npm run stage); that does not install the Package into user settings.

The Skill guides an agent. It does not certify a port or run an automatic translator. The package keyword pig-package lets pi-in-go.dev's Package catalog discover it once published; it is private until the owner publishes it. No public package or Piglet Binary has been released.

License and credits

MIT. The procedure adapts PiG's upstream-first porter and translation rules and PiG's 0.99 port lessons; the herdr Go port contributed the fake-host and fake-CLI test patterns. See CREDITS.md.