mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-15 09:01:14 +00:00
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:
parent
c12d18483d
commit
6cc370c446
2 changed files with 12 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue