blob: a74cecc33b49ceb5478c5fceb53656008d814e22 (
plain)
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
36
37
38
39
40
|
# /update-command
**Description:** Guide me step-by-step to update an existing slash command in ~/Notes/Prompts/commands/. Help me modify the description, parameters, prompt text, or any other aspect of the command.
**Parameters:**
- command_name: The name of the existing command to update (e.g., "create-command" for /create-command)
**Example usage:**
- `/update-command create-command`
- `/update-command review-code`
---
## Prompt
I need to update an existing slash command. Please follow these steps:
1. **Read the existing command file** from `~/Notes/Prompts/commands/{{command_name}}.md`
- If the file doesn't exist, inform me and list available commands in that directory
2. **Show me the current content** of the command in a clear, organized format
3. **Ask me what I want to update** using the AskUserQuestion tool:
- Description
- Parameters (add, remove, or modify)
- Prompt text/content
- All of the above
4. **Guide me through the updates** interactively:
- For description: Ask for the new description
- For parameters: Show current parameters and ask what to add/remove/modify
- For prompt text: Ask for the new prompt content or specific sections to change
5. **Show me a preview** of the updated command before saving
6. **Save the updated command** back to `~/Notes/Prompts/commands/{{command_name}}.md`
7. **Confirm** the update was successful and summarize what changed
Be helpful and thorough - make sure I understand each change and why it improves the command.
|