在启动时启用或禁用技能加载到Pi上下文
概览
我有个坦白。我是个技能囤积者。我们从MCP服务器污染环境,转变为现在无法抗拒地收集和囤积技能,积累足够多技能后也会重复。问题是我害怕删除它们,忘记它们的存在或在系统中的位置,而且在特定用例需要重新启用它们很麻烦。所以我创建了这个项目,灵感来自Pi Skill Palette,允许我启用或禁用所有“技能”,同时不会让它们从视觉记忆中消失,同时仍能控制输入上下文的内容。 完全要归功于 nicobailon,提供了 pi-skill-palette,这正是这个项目的基础。我直接把我的 clanker 指向那个项目,基本上说“做那个项目,但让它切换技能。
概述(AI 翻译)
我有个坦白。我是个技能囤积者。我们从MCP服务器污染环境,转变为现在无法抗拒地收集和囤积技能,积累足够多技能后也会重复。问题是我害怕删除它们,忘记它们的存在或在系统中的位置,而且在特定用例需要重新启用它们很麻烦。所以我创建了这个项目,灵感来自Pi Skill Palette,允许我启用或禁用所有“技能”,同时不会让它们从视觉记忆中消失,同时仍能控制输入上下文的内容。
完全要归功于nicobailon的π-skill-palette,这正是这个项目的基础。我直接用我的clanker对着那个项目说“做那个项目,但让它切换技能”。
安装
或者用git:
重启树莓派加载扩展。
用途
这会打开一个交互式叠加层,你可以:
- 用↑/↓箭头导航
- 通过输入筛选
- 回车/空格 - 切换启用↔隐藏
- d - 切换全禁用(启用↔禁用)
- Ctrl+S - 保存更改
- Esc - 取消
工作原理
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Pi Skill Toggle
I have a confession to make. I’m a skill hoarder. We moved from MCP servers polluting our context to now the irresistible urge to gather and hoard skills that then do the same once you gather enough of them. The problem is I’m afraid to remove them and forget that they exist or where to find them in my system, and it’s a pain to re-enable them when needed for a specific use case. So I created this project inspired by Pi Skill Palette that lets me enable and disable all the ‘SKILLs’ I have without them disappearing from my visual memory, but still maintaining control over what gets pumped into my context.
Full credit to nicobailon for pi-skill-palette which was the foundation of this. I just pointed my clanker at that project and basically said “make that project but have it toggle skills instead.”
Install
pi install npm:pi-skill-toggle
Or from git:
pi install git:github.com/Whamp/pi-skill-toggle
Restart pi to load the extension.
Usage
/skills-toggle
This opens an interactive overlay where you can:
- Navigate with ↑/↓ arrows
- Filter by typing
- Enter/Space - Toggle between enabled ↔ hidden
- d - Toggle full disable (enabled ↔ disabled)
- Ctrl+S - Save changes
- Esc - Cancel
How It Works
Skills are disabled by adding -path entries to the skills array in ~/.pi/agent/settings.json. For example:
{
"skills": [
"-skills/brainstorming",
"-skills/cloud-compute"
]
}
This uses pi’s built-in resource filtering mechanism. Disabled skills:
- Won’t appear in your system prompt
- Won’t load their frontmatter into context
- Are still visible in the
/skills-toggleUI (shown as disabled)
Changes require a restart (or /reload) to take effect.
Disable Modes
Hidden (Default Toggle)
Use hidden when you still want to call the skill manually via /skill:name but don’t want day-to-day context pollution. The model won’t auto-invoke it, keeping your system prompt lean, but you retain access when needed.
Examples: Specialized debugging skills, infrequently-used cloud tools, niche domain skills you call explicitly.
Hidden mode sets disable-model-invocation: true in the skill’s SKILL.md frontmatter.
Fully Disabled
Use fully disabled when you want to clean up your slash command menu so less-used skills don’t overwhelm your UI/UX. The skill won’t appear anywhere—not in the system prompt, not in /skill: completions.
Examples: Deprecated skills, skills from packages you rarely use, duplicates you’ll never need.
Disabled mode adds -path entries to settings.json (pi’s built-in mechanism).
Visual Indicators
| Icon | Meaning |
|---|---|
| ● (green) | Enabled - skill active in context |
| ◐ (yellow) | Hidden - manual only via /skill:name |
| ○ (red) | Disabled - completely off |
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add whamp/pi-skill-toggle