@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.5- Published
- May 4, 2026
- Downloads
- 524/mo · 524/wk
- Author
- richardgill
- License
- unknown
- Types
- extension
- Size
- 14.7 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
Create sub-pi-skill.jsonc in your pi agent config folder:
{
"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.