mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-18 18:03:44 +00:00
docs: document prompt template slicing
This commit is contained in:
parent
f869cc4ae5
commit
43c4a80e2e
3 changed files with 43 additions and 38 deletions
|
|
@ -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)`
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue