setup-pig
Check and prepare only the tools needed for a selected PiG task.
- License 许可
- MIT
- 所属仓库
- MichaelKinsy/PiG
- 最近更新
- 2026-11-15
- Stars
- ★ 865
- Forks
- 75
01 前言 Front Matter
- name
- setup-pig
- description
- Check and prepare only the tools needed for a selected PiG task.
03 SKILL.md 正文
<!-- SPDX-License-Identifier: MIT -->
Set up PiG development
Start by identifying one task:
- run an existing PiG binary;
- build PiG from source;
- author an extension;
- build a Piglet Binary; or
- run the complete verification suite.
If the user did not select a task, ask which task they need. Do not install the complete toolchain by default.
Read docs/site/docs/development.md, go.mod, and the relevant language
manifest before checking versions. Repository files are the version authority.
Inspect the host
Check the operating system and only the commands required for the selected task. Use non-mutating commands such as:
uname -srm
go version
node --version
npm --version
pnpm --version
python3 --version
rustc --version
cargo --version
tmux -V
Report installed, missing, and incompatible tools separately.
Requirements by task
| Task | Required tools |
|---|---|
| Run an existing binary | a compatible PiG binary and the runtime required by selected interpreted extensions |
| Build PiG | Git and the Go version required by go.mod |
| Author a Go extension | a PiG binary and Go |
| Author a Rust extension | a PiG binary, Rust, and Cargo |
| Author a Python extension | a PiG binary and Python |
| Author a Node extension | a PiG binary and Node.js |
| Build a Piglet Binary | Go, plus the compiler required by each source extension in the Piglet |
| Run complete verification | Go, Git, Node.js, npm, Python, Rust, Cargo, and tmux on Unix |
A prebuilt native extension does not require its compiler. A Python or Node extension still requires its interpreter unless its declared environment supplies it.
Installation boundary
Before installing or replacing a tool:
- show the missing tool and required version;
- check for an existing manager such as
mise,asdf, Homebrew, or the host package manager; - propose one command appropriate for the host; and
- ask the user for approval.
Do not use sudo, modify global Git configuration, replace a system toolchain,
or pipe a downloaded script into a shell without explicit approval.
Verify the selected task
Use the smallest maintained command:
make build
For extension authoring, use:
pig extension init <directory>
pig install <directory> --validate-only --json
For the complete repository suite, use:
make check
Report every command run, its result, and any tool that still requires user approval.
04 同仓库更多 Skills
api-info-skill
Describe the API
header-skill
Skill hidden by header-only quiet startup.
header-skill
Skill hidden by header-only quiet startup.
local-skill
User skill listed by path.
fixture-skill
Package skill listed under its package source.
local-skill
User skill listed by path.