blob: 61d5a42981c1129e6f6216d295082044aa8dcf17 (
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
41
42
43
44
45
46
47
48
49
50
51
52
|
# /update-context
**Description:** Update an existing context file in ~/Notes/Prompts/context/ by adding, modifying, or removing content. The command helps you make targeted changes to context files without recreating them from scratch.
**Parameters:**
- context_name: The name of the context file to update (without .md extension)
**Example usage:**
- `/update-context epimetheus` - Updates ~/Notes/Prompts/context/epimetheus.md
- `/update-context api-guidelines` - Updates ~/Notes/Prompts/context/api-guidelines.md
- `/update-context` - Lists available context files if no name provided
---
## Prompt
I'll update the specified context file for you. Here's my process:
1. **Check if context_name was provided**:
- If not provided, list all available context files in ~/Notes/Prompts/context/
- Show the available options and ask which one to update
2. **Verify the context file exists**:
- Check for ~/Notes/Prompts/context/{{context_name}}.md
- If it doesn't exist, inform you and suggest using `/create-context` instead
- List available context files for reference
3. **Read and display current content**:
- Load the existing content from ~/Notes/Prompts/context/{{context_name}}.md
- Show you the current content or a summary
- Understand what needs to be updated
4. **Ask about the update type**:
- What changes do you want to make?
- Options:
- Add new section(s)
- Modify existing section(s)
- Remove outdated section(s)
- Rewrite specific parts
- Complete overhaul
5. **Make the updates**:
- Apply the requested changes to the context file
- Preserve existing structure and formatting where appropriate
- Ensure markdown formatting is maintained
6. **Save and confirm**:
- Write the updated content back to ~/Notes/Prompts/context/{{context_name}}.md
- Show a summary of what was changed
- Confirm the context file is updated and ready to use
Let me update this context file for you now.
|