prompt-template-authoring

Author reusable Pi prompt templates with YAML frontmatter and slash-command workflows.

Updated May 4, 2026
One-click install
npx skills add https://github.com/panamini/pi-tooling --skill prompt-template-authoring
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prompt-template-authoring
Source: https://github.com/panamini/pi-tooling/tree/main/extensions/pi-prompt-template-model/skills/prompt-template-authoring
Command: npx skills add https://github.com/panamini/pi-tooling --skill prompt-template-authoring

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It solves the problem of repeatedly rewriting prompt instructions by hand when building reliable, reusable Pi slash-command prompt templates that must support models, deterministic steps, and complex prompting patterns.

Core Features & Use Cases

  • Reusable template authoring: Writes markdown templates that register as slash commands for a Pi extension, with autocomplete-friendly descriptions.
  • Model-aware execution: Selects models explicitly, supports fallback order, and enables rotation to cycle through model choices.
  • Deterministic pre-steps and flow control: Runs commands/scripts before the LLM turn (with configurable handoff rules) and supports loops, chains, subagent delegation, and best-of-N workflows.
  • Argument substitution: Uses $@, $1, $2, and ${@:1}-style placeholders to generate prompts from runtime inputs.

Quick Start

Create a template markdown file in your prompts directory named my-command.md that includes your model configuration and prompt body, then run /my-command.

Frequently Asked Questions about prompt-template-authoring

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create reusable prompt templates that register as slash commands?

Reusable prompt templates are created as markdown files with YAML frontmatter containing a name-aligned description, which automatically register as slash commands for a Pi extension. This turns hand-written instructions into shareable slash-command workflows.

Can I select different models or set up fallback order in my prompt workflows?

Yes, model selection in prompt workflows supports explicit model choices, fallback order for reliability, and rotation to cycle through model choices during execution. This model-aware execution ensures flexible LLM handling.

How do I run deterministic scripts before the LLM turn in a prompt chain?

Deterministic pre-LLM steps run commands or scripts before the LLM turn using configurable handoff rules. This enables deterministic execution and flow control within loops and chains before generating prompts.

What's the best way to compare multiple model outputs for iterative prompting tasks?

Best-of-N compare workflows cycle through model choices to generate multiple outputs for iterative or compare-based prompting tasks. This workflow orchestration pattern enables direct comparison of model responses for quality selection.

How do I pass runtime arguments into prompt templates using placeholders?

Argument substitution uses $@, $1, $2, and ${@:1}-style placeholders to generate prompts from runtime inputs. These placeholders allow dynamic prompt generation when executing slash commands.

What are the limitations when using deterministic prompts and runtime flags?

Template validation rejects certain runtime flags for deterministic prompts to maintain execution reliability. This constraint ensures deterministic pre-steps and flow control behave predictably without unexpected runtime overrides.