@felipefontoura/pi-skill-model-handoff
Pi extension that switches model/thinking from skill frontmatter
Package details
Install @felipefontoura/pi-skill-model-handoff from npm and Pi will load the resources declared by the package manifest.
$ pi install npm:@felipefontoura/pi-skill-model-handoff- Package
@felipefontoura/pi-skill-model-handoff- Version
0.1.2- Published
- May 14, 2026
- Downloads
- not available
- Author
- felipefontoura
- License
- MIT
- Types
- extension
- Size
- 7.1 KB
- Dependencies
- 0 dependencies · 1 peer
Pi manifest JSON
{
"extensions": [
"./index.ts"
]
}Security note
Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.
README
Pi Skill Model Handoff
Use different Pi models for different skills automatically.
This package lets each Pi skill choose the model that should be selected when that skill is loaded. You keep using Pi normally; no extra commands are required.
Install
pi install npm:@felipefontoura/pi-skill-model-handoff
Then restart Pi or run:
/reload
How it works
Add a model field to the frontmatter of a skill's SKILL.md file:
---
name: explore
description: Brainstorm and explore ideas.
model: opencode-go/glm-5.1
thinking: medium
---
When Pi loads that skill, this extension selects the configured model.
Supported fields
model
The model to select when the skill is loaded.
model: openai/gpt-5.5
model: anthropic/claude-sonnet-4-5
model: opencode-go/glm-5.1
thinking
Optional thinking level:
thinking: medium
Allowed values:
off, minimal, low, medium, high, xhigh
What you will see
When a skill model is applied, Pi shows a small message like:
handoff active: explore
If a skill does not define model, the extension stays silent.
Example
---
name: review
description: Review code changes.
model: openai/gpt-5.5
thinking: high
---
When Pi loads the review skill, it switches to openai/gpt-5.5 and sets thinking to high.
Important
- Pi still decides which skill to load.
- This extension does not choose skills for you.
- This extension does not route prompts by keywords.
- It only applies model settings after Pi loads a skill.
License
MIT