<overview>
Packaging extensions for distribution via npm, git, or local paths. Creating GSD/pi packages.
</overview>

<package_manifest>
Add a `pi` manifest to `package.json`:

```json
{
  "name": "my-gsd-package",
  "keywords": ["pi-package"],
  "pi": {
    "extensions": ["./extensions"],
    "skills": ["./skills"],
    "prompts": ["./prompts"],
    "themes": ["./themes"]
  }
}
```
</package_manifest>

<installing>
```bash
gsd install npm:@foo/bar@1.0.0
gsd install git:github.com/user/repo@v1
gsd install ./local/path

# Try without installing:
gsd -e npm:@foo/bar
```
</installing>

<convention_directories>
If no `pi` manifest exists, auto-discovers:
- `extensions/` → `.ts` and `.js` files
- `skills/` → `SKILL.md` folders
- `prompts/` → `.md` files
- `themes/` → `.json` files
</convention_directories>

<dependencies>
- List `@nerf/pi-ai`, `@nerf/pi-coding-agent`, `@nerf/pi-tui`, `@sinclair/typebox` in `peerDependencies` with `"*"` — they're bundled by the runtime.
- Other npm deps go in `dependencies`. The runtime runs `npm install` on package installation.
</dependencies>

<gallery_metadata>
```json
{
  "pi": {
    "video": "https://example.com/demo.mp4",
    "image": "https://example.com/screenshot.png"
  }
}
```
</gallery_metadata>
