summaryrefslogtreecommitdiff
path: root/prompts/commands
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-02-17 08:27:11 +0200
committerPaul Buetow <paul@buetow.org>2026-02-17 08:27:11 +0200
commitf0240820d2e8fb0362ed5d3b5c2bb7619b1cfd09 (patch)
treec4a32b334409012e87a552e2df3a617a842e5366 /prompts/commands
parent7f16c98bdc95ebbbd59130eecf65233fda3ea86c (diff)
Add create-skill, update-skill, and delete-skill meta-commands
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Diffstat (limited to 'prompts/commands')
-rw-r--r--prompts/commands/create-skill.md37
-rw-r--r--prompts/commands/delete-skill.md34
-rw-r--r--prompts/commands/update-skill.md40
3 files changed, 111 insertions, 0 deletions
diff --git a/prompts/commands/create-skill.md b/prompts/commands/create-skill.md
new file mode 100644
index 0000000..ccd8233
--- /dev/null
+++ b/prompts/commands/create-skill.md
@@ -0,0 +1,37 @@
+# /create-skill
+
+**Description:** Create a new skill by inferring its purpose from the skill name. The skill will be saved to ~/Notes/Prompts/skills/<skill-name>/SKILL.md with proper YAML frontmatter.
+
+**Parameters:**
+- skill_name: The name of the new skill to create (e.g., "go-best-practices", "docker-compose", "rust-conventions")
+
+**Example usage:**
+- `/create-skill docker-compose`
+- `/create-skill rust-conventions`
+
+---
+
+## Prompt
+
+I'll create a new skill called `{{skill_name}}`. Here's my process:
+
+1. **Analyze the skill name** "{{skill_name}}" to infer its purpose:
+ - Break down the name into meaningful parts
+ - Determine the likely intent and use case
+ - The name must be lowercase alphanumeric with hyphens only
+
+2. **Generate the skill structure**:
+ - Create YAML frontmatter with `name` and `description`
+ - Write a "When to Use" section
+ - Write detailed instructions for the skill
+
+3. **Show you a preview** of the generated SKILL.md and ask if you want to:
+ - Use it as-is
+ - Modify the description
+ - Refine the instructions
+
+4. **Save the skill** to `~/Notes/Prompts/skills/{{skill_name}}/SKILL.md`
+
+5. **Confirm** the skill is ready to use as `/{{skill_name}}`
+
+Let me start by analyzing the skill name and generating the initial version...
diff --git a/prompts/commands/delete-skill.md b/prompts/commands/delete-skill.md
new file mode 100644
index 0000000..0fad3a6
--- /dev/null
+++ b/prompts/commands/delete-skill.md
@@ -0,0 +1,34 @@
+# /delete-skill
+
+**Description:** Delete an existing skill by removing its directory from ~/Notes/Prompts/skills/. This command will confirm before deletion and show you which skills are available to delete.
+
+**Parameters:**
+- skill_name: The name of the skill to delete (e.g., "docker-compose", "rust-conventions")
+
+**Example usage:**
+- `/delete-skill docker-compose`
+- `/delete-skill rust-conventions`
+
+---
+
+## Prompt
+
+I'll help you delete the `{{skill_name}}` skill. Here's what I'll do:
+
+1. **Verify the skill exists**:
+ - Check if `~/Notes/Prompts/skills/{{skill_name}}/SKILL.md` exists
+ - Show you the skill's current description and instructions
+
+2. **Confirm deletion**:
+ - Display the skill content that will be deleted
+ - Ask for your confirmation before proceeding
+
+3. **Delete the skill**:
+ - Remove the entire `~/Notes/Prompts/skills/{{skill_name}}/` directory
+ - Confirm successful deletion
+
+4. **Clean up** (if applicable):
+ - Note: The skill will no longer be available after deletion
+ - You can always recreate it later using `/create-skill` if needed
+
+Let me check if the skill exists and show you what will be deleted...
diff --git a/prompts/commands/update-skill.md b/prompts/commands/update-skill.md
new file mode 100644
index 0000000..b55dd61
--- /dev/null
+++ b/prompts/commands/update-skill.md
@@ -0,0 +1,40 @@
+# /update-skill
+
+**Description:** Guide me step-by-step to update an existing skill in ~/Notes/Prompts/skills/. Help me modify the description, instructions, or any other aspect of the skill.
+
+**Parameters:**
+- skill_name: The name of the existing skill to update (e.g., "go-best-practices", "compose-blog-post")
+
+**Example usage:**
+- `/update-skill go-best-practices`
+- `/update-skill compose-blog-post`
+
+---
+
+## Prompt
+
+I need to update an existing skill. Please follow these steps:
+
+1. **Read the existing skill file** from `~/Notes/Prompts/skills/{{skill_name}}/SKILL.md`
+ - If the file doesn't exist, inform me and list available skills in the skills directory
+
+2. **Show me the current content** of the skill in a clear, organized format
+
+3. **Ask me what I want to update** using the AskUserQuestion tool:
+ - Description (YAML frontmatter)
+ - When to Use section
+ - Instructions
+ - All of the above
+
+4. **Guide me through the updates** interactively:
+ - For description: Ask for the new description
+ - For When to Use: Ask what triggers should be added or changed
+ - For instructions: Ask for the new content or specific sections to change
+
+5. **Show me a preview** of the updated skill before saving
+
+6. **Save the updated skill** back to `~/Notes/Prompts/skills/{{skill_name}}/SKILL.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 skill.