Customization
Pi is designed to adapt to your workflow through prompt templates, skills, themes, and shareable packages. All customizations can be project-specific or global.Prompt Templates
Reusable prompts as Markdown files with variable substitution.Creating Templates
1
Create Template File
Create a
.md file in:~/.pi/agent/prompts/(global).pi/prompts/(project-specific)
2
Use Template
Variable Substitution
Templates support bash-style argument substitution:- Basic
- All Arguments
- Argument Slicing
- Positional
Template Frontmatter
Loading Templates
Skills
On-demand capability packages following the Agent Skills standard.Creating Skills
1
Create Skill Directory
2
Create SKILL.md
Bundled Resources
See./test-templates/ for reusable test scripts.Skill Frontmatter
- name: Lowercase, hyphens only, max 64 chars
- description: Max 1024 chars, tells model when to use skill
- disable-model-invocation: Prevents automatic loading (manual
/skill:nameonly)
Using Skills
- Automatic
- Manual
- Command Line
The model loads skills automatically when needed:
Skill Discovery
Skills are discovered from:~/.pi/agent/skills/(global)~/.agents/skills/(XDG standard).pi/skills/(project, from cwd upward).agents/skills/(project, XDG standard)- Pi packages (see below)
Real-World Skill Example
Database Migration Skill
Database Migration Skill
Themes
Customize Pi’s appearance with theme files.Built-in Themes
dark(default)light
Creating Custom Themes
1
Create Theme File
2
Activate Theme
Hot Reloading
Themes hot-reload automatically. Modify the active theme file and see changes instantly in Pi.Theme Locations
~/.pi/agent/themes/(global).pi/themes/(project)- Explicit:
pi --theme /path/to/theme.ts
Pi Packages
Bundle and share extensions, skills, prompts, and themes via npm or git.Installing Packages
Managing Packages
Creating Packages
1
Initialize Package
2
Add Pi Manifest
3
Add Resources
4
Publish
Package Auto-Discovery
Without api field, Pi auto-discovers from conventional directories:
Finding Packages
- npmjs.com
- Pi Discord
- GitHub topic:
pi-package
Package Storage
- Global:
~/.pi/agent/git/(git), global npm - Project:
.pi/git/,.pi/npm/(with-lflag)
Configuration Files
Global vs Project
- Global
- Project
~/.pi/agent/ - Applies to all projectsEnvironment Variables
Examples
Project-Specific Workflow
Project-Specific Workflow