raycast-snippets
Raycast Snippet Generator
Capabilities
This skill allows you to generate and save Raycast Snippets directly to the user's configuration file.
Usage Process
-
Analyze Request:
- Identify the core content the user wants to save.
- If the user asks for a "prompt" or "role", generate a high-quality, structured system prompt.
- If the user asks for a "template", ensure it has placeholders (e.g.,
{date}).
-
Generate Metadata:
- Name: Create a short, descriptive title (e.g., "Python Logger").
- Keyword: Suggest a short abbreviation for quick access (e.g.,
!log,;py). - Text: The actual content.
-
Execute Storage:
- You have a helper script located at:
~/.claude/skills/raycast-snippets/scripts/manage_snippets.py - Construct the command using the following format:
python3 ~/.claude/skills/raycast-snippets/scripts/manage_snippets.py --name "Snippet Name" --text "Snippet Content" --keyword "optional_keyword" - IMPORTANT: You must use the
Bashtool to execute this command. Do not just display it.
- You have a helper script located at:
-
Confirm:
- Inform the user that the snippet has been saved.
- Remind them to Import the JSON file in Raycast if they haven't set up auto-sync for that specific file (though this script modifies the source file directly, Raycast might need a re-import if it's not the live database).
Example
User: "Save a snippet for a standard git commit message."
Assistant:
- Generates content:
feat: <description>\n\n[optional body]\n\n[optional footer] - Generates command:
python3 ~/.claude/skills/raycast-snippets/scripts/manage_snippets.py --name "Git Commit" --text "feat: ..." --keyword ";gc" - Executes command via Bash.
- Responds: "Saved 'Git Commit' snippet with keyword ';gc'."
More from ttmouse/skills
twitter-image-downloader
|
18downloads-organizer
Automatically organize and clean up downloads folder by categorizing files, removing duplicates, and optimizing storage space
11requirements-clarifier
A generic requirement/problem clarification workflow. Use when a user/client request is ambiguous, underspecified, or hard to execute/verify. The skill reframes the request, defines scope, constraints, inputs, and acceptance criteria, then outputs a concise one-page definition and a minimal question set to close gaps. Suitable for product/feature requests, content requests, ops tasks, research asks, and decision-making prompts.
8intelligent-prompt-generator
智能提示词生成器 - 语义理解、常识推理、一致性检查,基于元素数据库生成完美提示词
6universal-learner
通用学习器 - 从任何领域的Prompt中自动提取可复用元素,持续学习和积累知识
5universal-writer
|
5