Skills and packages
Install, write and use skills; install and manage pi packages.
| Resource | What it is |
|---|---|
| Skill | Instructions in a SKILL.md file that pi loads when a task needs them. |
| Prompt template | Reusable message text. |
| Extension | Code that adds tools, commands and event handlers. |
| Package | A pi package that bundles any of these, and themes. |
User resources apply to every project. Project resources live in the repository and load only in a trusted project.
Install a skill#
- Open Settings → Skills → Library and choose Install skill.
- Search the skills.sh catalog. Your query is sent to skills.sh.
- Pick a result. pi-kit reads it from GitHub and shows the description,
SKILL.md, bundled scripts, revision, license and files. - Choose your user folder or a trusted project, and install.
The whole skill folder is copied at the previewed commit. Installing runs nothing: no extensions, dependencies or scripts. The agent may run bundled scripts later, so install only sources you trust.
Video walkthrough · English captions
Find and add a skill
Find a public web-testing skill, review its instructions and source, install it, and add it to an unsent draft.
The library lists skills from
~/.pi/agent/skills and the project's .pi/skills.- The switch turns a skill on or off without deleting it.
- Add to composer selects it for the next message.
- Delete (top-level local skills only) removes the folder after a confirmation.
- Learned skills have Edit, Re-verify, Retire and Restore instead.
Write a skill#
Create a folder with a
SKILL.md. In a project: .pi/skills/<name>/SKILL.md. For yourself: ~/.pi/agent/skills/<name>/SKILL.md.---
name: review-api-change
description: Review API changes for validation, compatibility, and tests.
---
1. Read the changed endpoint and its callers.
2. Check input validation and error handling.
3. Add or update tests for the changed behavior.
4. Run the tests and report any failures.
name matches the folder name. description tells pi when the skill applies. Use project-relative paths and keep secrets out.Then choose Reload in Settings, or type
/reload. If the skill is missing, check the project, the folder, the frontmatter, the skill's switch and project trust.Use a skill#
Pick it from
/, the + menu, the command palette or Add to composer. It appears as a chip; several can go with one message. Pin a chip to keep it on every later message in the thread.With Settings → Skills → Commands → Register every skill as /skill:name on,
/skill:name at the start of a message expands the skill the way the pi CLI does. Removing a chip does not uninstall anything.Install a package#
- Open Settings → Extensions → Packages and choose +.
- Choose a source: Browse (npm packages with the
pi-packagekeyword and pi-kit's list), From git (pin with@tagor@commit) or From a folder (loaded in place). - Select a package and read its source, README and What it adds, including the command it will run.
- Choose the scope and Install.
Packages with extensions run code when they load.
Video walkthrough · English captions
Install and use an extension
Review a pre-authored fictional package, install it, control whether it is enabled, and run its station-brief command. The fixed note comes from the extension, not a model reply.
Manage packages#
Extensions → Packages lists installed packages with a switch, Check for updates and a menu to update or remove. Local files lists extensions and prompt templates outside packages. pi-kit's bundled packages are marked; after you remove one, pi-kit does not offer it again.
The pi CLI manages the same list:
pi list
pi install npm:pi-subagents
pi remove npm:pi-subagents