Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/nicobailon/pi-prompt-template-modelnpx agentmods add skills/nicobailon/pi-prompt-template-model/prompt-template-authoringWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/nicobailon/pi-prompt-template-model/prompt-template-authoring)<a href="https://agentmods.dev/skills/nicobailon/pi-prompt-template-model/prompt-template-authoring"><img src="https://agentmods.dev/badge/skills/nicobailon/pi-prompt-template-model/prompt-template-authoring/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/nicobailon/pi-prompt-template-model/prompt-template-authoring"><img src="https://agentmods.dev/badge/skills/nicobailon/pi-prompt-template-model/prompt-template-authoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to medium
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- medium Rogue Agent · line 4 Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00047 | $0.01361 |
| Opus 5.5 | $0.00019 | $0.00544 |
| Sonnet 5.5 | $0.00009 | $0.00272 |
| Haiku 4.5 | $0.00005 | $0.00136 |
Grade A, and why
prompt-template-authoring scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 190 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prompt Template Authoring
Use this skill when working on prompt templates for pi-prompt-template-model.
Templates are markdown files that register as slash commands.
Where Templates Live
~/.pi/agent/prompts/— user prompts (highest priority).pi/prompts/inside a trusted project — project-specific prompts
Extension examples/ are reference files only. Copy them to a prompt directory to register them.
Minimal Template
---
model: claude-sonnet-4-20250514
---
Your prompt body here.
Save as my-command.md, restart Pi, run /my-command. Use description: for autocomplete text.
Model Selection
Omit model: to inherit the current session model. Otherwise:
model: claude-sonnet-4-20250514— specific modelmodel: claude-opus-4, gpt-5.4— fallback order (tries first, falls back to second if unavailable)model: claude-opus-4, gpt-5.4+rotate: true— cycle through list on each loop iteration
Argument Substitution
The prompt body can use placeholders:
$@— all arguments passed to the command$1,$2— specific positional arguments${@:1}— argument 1 and everything after
Deterministic Steps (Pre-LLM Execution)
Run a command or script before the LLM turn. The model only sees the output if you want it to.
Two equivalent forms. Don't mix them in the same prompt.
Shorthand form — top-level keys:
---
run: git status --short
handoff: always
---
Summarize the repo state.
Nested form — under deterministic::
---
deterministic:
run: ./scripts/ship.sh
handoff: on-failure
timeout: 60000
---
Diagnose the failure and suggest a fix.
Handoff controls when the LLM sees the result:
never— run, show result, done (no LLM turn)always— always hand result to modelon-failure— only hand off if command exits non-zeroon-success— only hand off if command exits zero
Execution forms:
run: command string— runs via/bin/bash -lcrun: {command: git, args: [status], shell: false}— explicit args, optional shellscript: ./script.shorscript: {path: ./script.sh, args: [--fast]}— run a file
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 190 lines · 47 tokens per session scan A 429335d69679
prompt-template-authoring is a skill published in the GitHub repository nicobailon/pi-prompt-template-model (324 stars, last pushed 1mo ago), licensed MIT. It adds 47 tokens to every session and 1,361 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
prompt-template-authoring compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prompt-template-authoringnicobailon/pi-prompt-template-model | Skill | 324 | 1mo ago | MIT | A | 47 | Claude Code, Codex |
| llm-app-patternsdavila7/claude-code-templates | Skill | 33k | today | MIT | A | 54 | Claude Code, Codex |
| prompt-engineerJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 93 | Claude Code |
| prompt-optimizationlangwatch/langwatch | Skill | 5.0k | yesterday | Apache-2.0 | A | 105 | Claude Code, Codex |
| omh-model-optimizationrlaope/oh-my-hermes | Skill | 5.2k | today | MIT | A | 84 | Claude Code, Codex |
| ideogram4digitalsamba/claude-code-video-toolkit | Skill | 2.5k | today | MIT | A | 99 | Claude Code |
| prompt-library-for-startupsaws/agent-toolkit-for-aws | Skill | 3.4k | yesterday | Apache-2.0 | A | 228 | Claude Code |