Skip to main content
Pi can create skills for you. Just ask it to build one for your use case.
Skills are self-contained capability packages that the agent loads on-demand. A skill provides specialized workflows, setup instructions, helper scripts, and reference documentation for specific tasks. Pi implements the Agent Skills standard, warning about violations but remaining lenient.

How Skills Work

1

Discovery

At startup, Pi scans skill locations and extracts names and descriptions
2

System Prompt

Available skills are included in the system prompt in XML format per the specification
3

On-Demand Loading

When a task matches, the agent uses read to load the full SKILL.md(Models don’t always do this automatically - use prompting or /skill:name to force it)
4

Execution

The agent follows the instructions, using relative paths to reference scripts and assets
This is progressive disclosure: only descriptions are always in context, full instructions load on-demand.

Skill Locations

Skills can instruct the model to perform any action and may include executable code. Review skill content before use.
Pi loads skills from: Global:
  • ~/.pi/agent/skills/
  • ~/.agents/skills/
Project:
  • .pi/skills/
  • .agents/skills/ in cwd and ancestor directories (up to git repo root)
Packages:
  • skills/ directories in pi packages
  • pi.skills entries in package.json
Settings:
  • skills array with files or directories
CLI:
  • --skill <path> (repeatable, additive even with --no-skills)

Discovery Rules

  • Direct .md files in the skills directory root
  • Recursive SKILL.md files under subdirectories
Disable discovery with --no-skills (explicit --skill paths still load).

Using Skills from Other Harnesses

To use skills from Claude Code or OpenAI Codex, add their directories:
For project-level Claude Code skills:

Skill Commands

Skills register as /skill:name commands:
Arguments after the command are appended to the skill content as User: <args>. Toggle skill commands:
Use /settings to toggle skill commands

Skill Structure

A skill is a directory with a SKILL.md file. Everything else is freeform.

SKILL.md Format

Use relative paths from the skill directory:

Frontmatter

Per the Agent Skills specification:
string
required
Max 64 chars. Lowercase a-z, 0-9, hyphens. Must match parent directory.Valid: pdf-processing, data-analysis, code-reviewInvalid: PDF-Processing, -pdf, pdf--processing
string
required
Max 1024 chars. What the skill does and when to use it.Be specific - this determines when the agent loads the skill.
string
License name or reference to bundled file
string
Max 500 chars. Environment requirements
object
Arbitrary key-value mapping
string
Space-delimited list of pre-approved tools (experimental)
boolean
When true, skill is hidden from system prompt. Users must use /skill:name

Name Rules

  • 1-64 characters
  • Lowercase letters, numbers, hyphens only
  • No leading/trailing hyphens
  • No consecutive hyphens
  • Must match parent directory name

Description Best Practices

The description determines when the agent loads the skill. Be specific.

Validation

Pi validates skills against the Agent Skills standard. Most issues produce warnings but still load the skill:
  • Name doesn’t match parent directory
  • Name exceeds 64 characters or contains invalid characters
  • Name starts/ends with hyphen or has consecutive hyphens
  • Description exceeds 1024 characters
Unknown frontmatter fields are ignored. Exception: Skills with missing description are not loaded. Name collisions (same name from different locations) warn and keep the first skill found.

Example Skill

Complete example: brave-search/
SKILL.md:
The agent can now:
  1. Read the skill when needed
  2. Run setup if required
  3. Execute searches using the documented commands
  4. Reference the scripts with relative paths

Skill Repositories

Public skill repositories:

Anthropic Skills

Document processing (docx, pdf, pptx, xlsx), web development

Pi Skills

Web search, browser automation, Google APIs, transcription

Installing Skills

Install skill packages via npm or git:
See Pi Packages for details.

Creating Skills

1

Create Directory

2

Write SKILL.md

3

Add Scripts

4

Test

Best Practices

The description is the most important part. It tells the agent when to use the skill.Include:
  • What the skill does
  • When to use it
  • What problems it solves
Avoid:
  • Vague descriptions
  • Generic terms
  • Missing use cases
If the skill requires setup (npm install, API keys, etc.), document it clearly in a Setup section.The agent should be able to:
  • Detect if setup is needed
  • Run setup commands
  • Verify setup succeeded
Always use paths relative to the skill directory:
This ensures the skill works regardless of where it’s installed.
Show concrete examples of how to use the skill:
For complex skills, include detailed reference documentation that the agent can load on-demand:

Sharing Skills

Package skills for others to use:
1

Create package.json

2

Publish

Or push to GitHub for git-based installation.
3

Users Install

See Pi Packages for full packaging details.

Next Steps

Extensions

Build TypeScript extensions for more complex integrations

Pi Packages

Package and share skills via npm or git