界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
设计与创意 · SKILL.md

extending-pi

extending-pi

【设计与创意】Guide for extending Pi — decide between skills, extensions, prompt templates, themes, context files, or custom models, then create and package them. Use when someone wants to extend Pi, add capabilities, create a skill, build an extension, or make a Pi package.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: extending-pi description: Guide for extending Pi — decide between skills, extensions, prompt templates, themes, context files, or custom models, then create and package them. Use when someone wants to extend Pi, add capabilities, create a skill, build an extension, or make a Pi package.

Extending Pi

Help the user decide what to build and where to find guidance.

What to build

GoalBuild a…Where
Teach Pi a workflow or how to use a tool/API/CLISkillRead skill-creator/SKILL.md for detailed guidance
Give Pi a new tool, command, or runtime behaviorExtensionRead Pi docs: docs/extensions.md
Reuse a prompt pattern with variablesPrompt templateRead Pi docs: docs/prompt-templates.md
Set project-wide coding guidelinesContext fileAGENTS.md in project root or .pi/agent/ — just markdown
Change Pi's appearanceThemeRead Pi docs: docs/themes.md
Add a model or providerCustom modelRead Pi docs: docs/models.md (JSON) or docs/custom-provider.md (extension)
Share any of the abovePackageRead Pi docs: docs/packages.md

Skill vs Extension — the fuzzy boundary

If bash + instructions can do it, prefer a skill (simpler, no code to maintain). If you need event hooks, typed tools, UI components, or policy enforcement, use an extension.

Examples:

  • "Pi should know our deploy process" → Skill (workflow instructions)
  • "Pi should confirm before rm -rf" → Extension (event interception)
  • "Pi should use Brave Search" → Skill (instructions + CLI scripts)
  • "Pi should have a structured db_query tool" → Extension (registerTool)
我的收藏