docs(coding-agent): clarify how to toggle settings and invoke templates

- skills.md: mention /settings and settings.json for toggling skill commands
- prompt-templates.md: add Usage section with examples
This commit is contained in:
Mario Zechner 2026-01-25 20:56:24 +01:00
parent c12d18483d
commit 6cc370c446
2 changed files with 12 additions and 2 deletions

View file

@ -2,7 +2,7 @@
# Prompt Templates
Prompt templates are Markdown snippets that expand into full prompts when you type `/name` in the editor.
Prompt templates are Markdown snippets that expand into full prompts. Type `/name` in the editor to invoke a template, where `name` is the filename without `.md`.
## Locations
@ -31,6 +31,16 @@ Review the staged changes (`git diff --cached`). Focus on:
- The filename becomes the command name. `review.md` becomes `/review`.
- `description` is optional. If missing, the first non-empty line is used.
## Usage
Type `/` followed by the template name in the editor. Autocomplete shows available templates with descriptions.
```
/review # Expands review.md
/component Button # Expands with argument
/component Button "click handler" # Multiple arguments
```
## Arguments
Templates support positional arguments and simple slicing: