pi-prompt-authoring
Pi Prompt Authoring
Authors custom system prompt additions for pi coding agent. Pi provides a default system prompt with identity, tools, and guidelines. This skill covers what to add via SYSTEM.md (replace default) or APPEND_SYSTEM.md (extend default).
How Pi's System Prompt Works
Pi builds the system prompt dynamically at runtime. The construction follows this order:
Default System Prompt Structure
When using the default prompt, pi constructs it with these sections:
- Identity statement - "You are an expert coding assistant operating inside pi, a coding agent harness. You help users by reading files, executing commands, editing code, and writing new files."
- Available tools - List of enabled tools with one-line descriptions
- Guidelines - Context-aware guidelines based on which tools are available
- Pi documentation references - Paths to README, docs, and examples
- Append system prompt - Content from
APPEND_SYSTEM.mdor--append-system-prompt - Project context - Loaded
AGENTS.md/CLAUDE.mdfiles - Skills section - XML-formatted list of available skills (only if
readtool is enabled)
More from knoopx/pi
podman
Manages containers, builds images, configures pods and networks with Podman. Use when running containers, creating Containerfiles, grouping services in pods, or managing container resources.
126jujutsu
Manages version control with Jujutsu (jj), including rebasing, conflict resolution, and Git interop. Use when tracking changes, navigating history, squashing/splitting commits, or pushing to Git remotes.
125nix-flakes
Creates reproducible builds, manages flake inputs, defines devShells, and builds packages with flake.nix. Use when initializing Nix projects, locking dependencies, or running nix build/develop commands.
54scraping
Fetches web pages, parses HTML with CSS selectors, calls REST APIs, and scrapes dynamic content. Use when extracting data from websites, querying JSON APIs, or automating browser interactions.
48jscpd
Finds duplicate code blocks and analyzes duplication metrics across files. Use when identifying copy-pasted code, measuring technical debt, or preparing for refactoring.
45nix
Runs packages temporarily, creates isolated shell environments, and evaluates Nix expressions. Use when executing tools without installing, debugging derivations, or working with nixpkgs.
43