@felipefontoura/pi-skill-model-handoff
v0.1.2
Published
Pi extension that switches model/thinking from skill frontmatter
Maintainers
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-handoffThen restart Pi or run:
/reloadHow 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.5model: anthropic/claude-sonnet-4-5model: opencode-go/glm-5.1thinking
Optional thinking level:
thinking: mediumAllowed values:
off, minimal, low, medium, high, xhighWhat you will see
When a skill model is applied, Pi shows a small message like:
handoff active: exploreIf 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
