# Pig porter

> Pig porter is an open-source agent skill for developer tools. Guides an agent through one bounded Pi-to-PiG porting or verification task. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/MichaelKinsy/PiG/tree/main/piglets/porter/skills/pig-porter
- **Repository:** https://github.com/michaelkinsy/pig
- **GitHub stars:** 933
- **License:** MIT
- **Skill name:** pig-porter
- **Collection:** https://github.com/MichaelKinsy/PiG
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

Pig Porter is a single-purpose skill for working on the PiG port of the Pi coding agent. It pins the agent to the exact upstream Pi build in the repository's pin file and asks it to pick one mode and one scope per run, such as inspecting a behavior family, porting it, tightening its evidence, verifying its acceptance ladder, closing interface gap rows for one upstream file, reviewing pending sync files for one package, or planning a version upgrade.

The skill sets out a family workflow: read the upstream implementation and its tests, list observable states and boundaries, probe the upstream executable to record the contract, add or identify a test derived from that contract, and apply the smallest fix that preserves Pi behavior. It also requires checking shared code paths against several provider shapes and citing Pi source for any provider-specific branch. Upgrades stay read-only until a user approves the plan.

It expects a checkout of the PiG repository with its Make targets, automation scripts and a Pi executable available, and it runs Go test commands and Python automation tools along the way.

## When your agent uses it

> Run one bounded upstream-first Pi-to-PiG porting or verification task.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/MichaelKinsy/PiG/tree/HEAD/piglets/porter/skills/pig-porter)
- [License: MIT](https://github.com/MichaelKinsy/PiG/tree/HEAD/piglets/porter/skills/pig-porter)

## Features

- **Single bounded modes:** Runs one mode against one family, file, package or upgrade tag per task.
- **Upstream-first porting:** Ports behavior from the pinned Pi source and probes the upstream executable to record the contract.
- **Interface gap closure:** Works through interface closure rows for one upstream file, recording blocked rows with reasons.
- **Upstream sync review:** Reviews pending upstream-sync files for a package and marks each as ported, designed-out or divergence.
- **Provider-shape verification:** Requires shared provider and model code paths to be tested across several provider shapes.
- **Read-only upgrade planning:** Produces an upgrade plan for a release tag and waits for approval before changing source.

## Good for

- Port one behavior family from the pinned Pi build into PiG
- Verify the acceptance ladder for an existing PiG family
- Close interface gap rows for a single upstream TypeScript file
- Review pending upstream sync files for one package
- Plan an upgrade of the pinned Pi version to a new release tag

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/pig-porter` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MichaelKinsy/PiG.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pig-porter &&
cp -R "$tmp/piglets/porter/skills/pig-porter" ~/.claude/skills/pig-porter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/pig-porter` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/pig-porter` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MichaelKinsy/PiG.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pig-porter &&
cp -R "$tmp/piglets/porter/skills/pig-porter" ~/.agents/skills/pig-porter &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/pig-porter` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/pig-porter` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MichaelKinsy/PiG.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pig-porter &&
cp -R "$tmp/piglets/porter/skills/pig-porter" ~/.cursor/skills/pig-porter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/pig-porter` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/MichaelKinsy/PiG.git --path piglets/porter/skills/pig-porter
```

Or copy the folder to `~/.gemini/skills/pig-porter` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/pig-porter`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/MichaelKinsy/PiG.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pig-porter &&
cp -R "$tmp/piglets/porter/skills/pig-porter" ~/.copilot/skills/pig-porter &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/pig-porter` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/MichaelKinsy/PiG.git
```

Then copy `PiG/piglets/porter/skills/pig-porter` into your agent's skills folder as `pig-porter`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It needs the PiG repository with AGENTS.md, coding/upstream.go, the pinned Pi executable and the Make and automation targets it calls, such as make family-gaps and make parity-family.

### Does Pig porter change files on its own?

Family, tighten and closure tasks can edit source, tests and ledgers. Upgrade tasks stay read-only until the user approves the plan, and the skill does not stage, commit or push changes.

### Can several modes run at the same time?

Only inventory and verify may run concurrently through the campaign target. Family, tighten and upgrade must not run concurrently.

### How do I install Pig porter in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pig-porter to use it in all your projects, or to .claude/skills/pig-porter in one project.

### Does Pig porter run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Pig porter?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Pig porter?

The closest alternatives to Pig porter are Setup pig, Poteto mode, Pico SDK development, Ci cd and Parity probe.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Setup pig](https://ai-powered.com/skills/setup-pig): Setup pig is an open-source agent skill for developer tools.
- [Poteto mode](https://ai-powered.com/skills/poteto-mode): Poteto mode is an open-source agent skill for developer tools.
- [Pico SDK development](https://ai-powered.com/skills/pico-sdk-development): Pico SDK development is an open-source agent skill for developer tools.
- [Ci cd](https://ai-powered.com/skills/ci-cd): Ci cd is an open-source agent skill for developer tools.
- [Parity probe](https://ai-powered.com/skills/parity-probe): Parity probe is an open-source agent skill for developer tools.
- [Incremental implementation](https://ai-powered.com/skills/incremental-implementation): Incremental implementation is an open-source agent skill for developer tools.
- [Go performance review](https://ai-powered.com/skills/go-performance-review): Go performance review is an open-source agent skill for developer tools.
- [Go refactoring](https://ai-powered.com/skills/go-refactoring): Go refactoring is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/pig-porter
