askill
pi

piSafety 95Repository

Configures pi coding agent with skills, templates, extensions, packages, and models. Use for composable development workflows, custom agents, and project-specific configurations.

5 stars
1.2k downloads
Updated 2/21/2026

Package Files

Loading files...
SKILL.md

Pi Coding Agent

Composable terminal coding harness with skills, templates, extensions, and packages.

Core Components

  • Skills: Directory-based capability packages with instructions and optional tools
  • Templates: Markdown snippets that expand into full prompts
  • Extensions: TypeScript modules adding tools, commands, events, and TUI features
  • Packages: Bundle resources for sharing via npm or git
  • Models: Configure AI providers via models.json

Loading Locations

ResourceGlobalProjectPackage
Extensions~/.pi/agent/extensions/.pi/extensions/package.json
Skills~/.pi/agent/skills/.pi/skills/package.json
Templates~/.pi/agent/prompts/.pi/prompts/package.json
Settings~/.pi/agent/settings.json.pi/settings.jsonN/A

Disable with --no-extensions, --no-skills, --no-prompt-templates.

Session Management

Commands: /new, /resume, /tree, /export, /share, /compact

See Sessions Reference for details.

Model Management

  • /model - Switch models
  • Ctrl+L - Cycle through favorites
  • Ctrl+P - Show favorites list

Four Modes

Interactive (default): Full TUI experience Print: Simple text output JSON: Event stream for APIs RPC: JSON-RPC protocol SDK: Embed in applications

pi --mode json    # JSON mode
pi --mode rpc     # RPC mode
pi --mode sdk     # SDK mode

Project Configuration

AGENTS.md

Project instructions loaded at startup from ~/.pi/agent/AGENTS.md, parent directories, and current directory.

SYSTEM.md

Replace system prompt per-project at ~/.pi/agent/SYSTEM.md.

Settings

Configure resources in ~/.pi/agent/settings.json or .pi/settings.json.

Package Installation

# Install from npm
pi install npm:@foo/bar@1.2.3

# Install from git
pi install git:github.com/user/repo@v1

# Install to project
pi install -l npm:@foo/bar

# Remove package
pi remove npm:@foo/bar

Model Configuration

Create ~/.pi/agent/models.json for custom providers:

{
  "providers": {
    "ollama": {
      "baseUrl": "http://localhost:11434/v1",
      "api": "openai-completions",
      "models": [
        {
          "id": "llama-3.1-8b",
          "name": "Llama 3.1 8B (Local)",
          "contextWindow": 128000,
          "maxTokens": 32000
        }
      ]
    }
  }
}

Detailed Documentation

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

50/100Analyzed 2/23/2026

This is a reference-style documentation file for the pi coding agent rather than a traditional skill. It provides comprehensive overview of pi's features (skills, templates, extensions, packages, models) with good structure and code examples. However, it lacks a clear trigger/when-to-use section and is deeply nested in the pi project repository, suggesting internal-only purpose. The content is technically accurate and well-organized (high clarity, safety), but being mostly reference material reduces actionability. The tags and structured format provide some discoverability value."

95
80
55
55
35

Metadata

Licenseunknown
Version-
Updated2/21/2026
Publisherknoopx

Tags

apigithubllmprompting