@richardgill/pi-sub-pi-skill
v0.0.9
Published
Route `/skill:` commands and skill file reads to the `sub-pi` tool when the skill frontmatter opts in.
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-skillor locally
pi install ~/code/pi-extensions/main/extensions/sub-pi
pi install ~/code/pi-extensions/main/extensions/sub-pi-skillConfigure
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.
