docs: document prompt template slicing

This commit is contained in:
Mario Zechner 2026-01-16 12:06:21 +01:00
parent f869cc4ae5
commit 43c4a80e2e
3 changed files with 43 additions and 38 deletions

View file

@ -847,6 +847,8 @@ Create a React component named $1 with features: $@
Usage: `/component Button "onClick handler" "disabled support"`
- `$1` = `Button`
- `$@` or `$ARGUMENTS` = all arguments joined (`Button onClick handler disabled support`)
- `${@:N}` = arguments from the Nth position onwards (1-indexed)
- `${@:N:L}` = `L` arguments starting from the Nth position
**Namespacing:** Subdirectories create prefixes. `.pi/prompts/frontend/component.md``/component (project:frontend)`