-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCOMMAND_TEMPLATE.toml
More file actions
35 lines (28 loc) · 1.18 KB
/
Copy pathCOMMAND_TEMPLATE.toml
File metadata and controls
35 lines (28 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Official Gemini CLI Command Template
#
# INSTRUCTIONS:
# 1. Copy this file and rename to `your-command.toml`
# 2. Place in ~/.gemini/commands/ (global) or .gemini/commands/ (project)
# 3. Invoke with `/your-command <arguments>`
# 4. Use namespaces: dept/command.toml becomes `/dept:command`
#
# TOML STRING SYNTAX:
# - Use ''' (literal strings) for prompts with shell commands containing backslashes
# - Literal strings don't process escape sequences, avoiding "Reserved escape sequence" errors
# - This is especially important for grep patterns like grep 'api\|key' or regex patterns
description = "Brief description of what this command does (shown in /help menu)"
prompt = '''
You are a [specific role] expert specializing in [domain].
Task: {{args}}
Please [specific instruction] following these guidelines:
- [guideline 1]
- [guideline 2]
- [guideline 3]
When analyzing existing code: !{find . -name "*.ext" | head -5}
When checking dependencies: !{cat package.json requirements.txt 2>/dev/null | head -10}
Format your response as:
- Clear, actionable steps
- Code examples when relevant
- Specific next actions
If the request is unclear or missing required parameters, ask for clarification.
'''