Get started¶
This guide installs spb, creates a prompt project, renders one prompt, and
uses the result with Pi.
Requirements¶
System Prompt Builder requires Python 3.14 or later. Git is also required when a project uses Git skill providers.
Install from PyPI¶
Install the published command with uv:
$ uv tool install system-prompt-builder
Upgrade an existing uv installation with:
$ uv tool upgrade system-prompt-builder
Alternatively, install the command with pipx:
$ pipx install system-prompt-builder
Upgrade an existing pipx installation with:
$ pipx upgrade system-prompt-builder
Confirm that the command is available:
$ spb --help
Create a project¶
Initialize the current repository:
$ spb init
Initialized System Prompt Builder project in /path/to/example
.spb/config.yaml
.spb/prompts/project-assistant.md
.spb/layouts/project-assistant.md
.spb/fragments/project_instructions/FRAGMENT.md
.spb/skills/local/
.spb/evals/
The starter project uses pi_agent, contains a valid fragment-based prompt
with no required variables, and includes local skill and evaluation directories. See Initialize a project for
the generated contents, custom harness selection, and overwrite protection.
Validate and render¶
Validate the project before rendering:
$ spb validate
Validated 1 prompt(s).
Render the prompt for Pi:
$ spb render .spb/prompts/project-assistant.md --harness pi_agent
.spb/build/pi_agent/project-assistant.md
The command also writes
.spb/build/pi_agent/project-assistant.manifest.yaml. The manifest identifies the
prompt version, source and output hashes, selected harness, fragment sources,
variables, and resolved skills.
Use the prompt with Pi¶
Link the rendered artifact into Pi’s project configuration:
$ spb link .spb/build/pi_agent/project-assistant.md .pi/SYSTEM.md
.pi/SYSTEM.md
Start Pi from the project root:
$ pi --approve
Pi reads .pi/SYSTEM.md after project trust is granted. Edit the prompt,
fragment, or layout, increase the prompt’s semantic version when its behavior
changes, and render again. The link already points to the rebuilt artifact;
you do not need to recreate it. If the output path exists with different
content, use --replace-release to confirm replacement.
Next steps¶
Review initialization options in Initialize a project.
Define reusable local or Git skills in Project configuration.
Reuse fragments or add variables and inline sections with Prompt authoring.
Review every command and option in CLI reference.
Test prompt behavior with Evaluation and benchmarks.