@richardgill/pi-sub-pi-skill
Route `/skill:` commands and skill file reads to the `sub-pi` tool when the skill frontmatter opts in.
Package details
Install @richardgill/pi-sub-pi-skill from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@richardgill/pi-sub-pi-skill- Package
@richardgill/pi-sub-pi-skill- Version
0.0.9- Published
- May 24, 2026
- Downloads
- 1,147/mo · 312/wk
- Author
- richardgill
- License
- unknown
- Types
- extension
- Size
- 15 KB
- Dependencies
- 2 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./src/index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
sub-pi-skill
Route /skill: commands and skill file reads to the sub-pi tool when the skill frontmatter opts in.
Part of pi-extensions.
Behavior
- Reads skill frontmatter and checks
metadata.pi.subProcess. - Requires the
sub-piextension to be loaded (tool name:sub-pi). - If
subProcess: true, blocks in-session skill expansion and invokes thesub-pitool usingsubProcessContext. subProcessContextacceptsfork(default) orfresh(mapped tosub-pifork: true/fork: false).- If
subProcessis false or omitted, keeps the skill in-session and appliesmodel/thinkingLeveloverrides to the current session. - Optional overrides:
metadata.pi.model,metadata.pi.thinkingLevel.
Example frontmatter:
---
name: code-review
description: ...
metadata:
pi:
subProcess: true
subProcessContext: fresh
model: openai-codex/gpt-5.2
thinkingLevel: xhigh
---
Install with pi
pi install npm:@richardgill/pi-sub-pi
pi install npm:@richardgill/pi-sub-pi-skill
or locally
pi install ~/code/pi-extensions/main/extensions/sub-pi
pi install ~/code/pi-extensions/main/extensions/sub-pi-skill
Configure
You can override individual settings in sub-pi-skill.jsonc.
The default location is ~/.pi/agent/sub-pi-skill.jsonc, or $PI_EXTENSION_CONFIG_DIR/sub-pi-skill.jsonc when set.
{
"toolName": "sub-pi"
}
Options
toolName(default"sub-pi") — the registered tool name to invoke. Match this tonamefrom thesub-piextension if you've customised it there.