You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-invoke this skill when the user asks to create a new Claude Code skill. Instead of just creating the skill file locally, offer to publish it as a documented GitHub Gist that can be installed via the Claude Skills Installer.
You are helping the user create, edit, and optionally publish Claude Code skills as GitHub Gists.
When to Trigger
Auto-invoke this skill when the user:
Asks to create a new skill
Wants to make a new Claude Code command
Requests a custom slash command
Says things like "create a skill for...", "make a skill that...", "I need a skill to..."
Asks to edit or modify an existing skill
Procedure
1. Gather Skill Requirements
Ask the user about the skill they want to create:
What should the skill do?
When should it trigger? (auto-invoke vs manual /command)
What name should it have?
If the user has already provided this information in their request, skip to the next step.
2. Draft the Skill
Create the SKILL.md content with proper YAML frontmatter:
---
name: <skill-name>description: <clear description of what the skill does and when to use it>
---
Follow these guidelines:
Keep the description concise but informative (used by Claude to decide when to invoke)
Use disable-model-invocation: true only if the skill has side effects (deploys, commits, etc.)
Add user-invocable: false only if it should be Claude-only (not in / menu)
Include clear step-by-step instructions in the body
3. Ask About Publishing
Use AskUserQuestion to ask:
"Would you like to publish this skill as a GitHub Gist? This makes it:
- Documented with a proper README
- Installable via the Claude Skills Installer
- Shareable with others"
Options:
Publish as Gist - Create a public gist with README and SKILL.md
Save locally only - Just save to ~/.claude/skills/
4a. If Publishing as Gist
Create two files for the gist:
README.md template:
# <SkillName> Skill for Claude Code
<Briefone-linedescription>
## What It Does
<Numbered list of 3-5 key capabilities>
## Auto-Invocation
<Describe when Claude will automatically use this skill, OR state "This skill is manually invoked with `/<skill-name>`">
## Installation### Using Claude Skills Installer (Recommended)
Install the [Claude Skills Installer](https://gist.github.com/rvanbaalen/2e4c2840d06de810f771a4514f97c6da) first, then run:
```bash
claude-skills install <gist-id>
**SKILL.md:** The skill content you drafted in step 2.
### 5. Create the Gist
Use the `gh` CLI to create the gist:
```bash
# Create a temporary directory for the gist files
TEMP_DIR=$(mktemp -d)
# Write README.md
cat > "$TEMP_DIR/README.md" << 'EOF'
<readme content>
EOF
# Write SKILL.md
cat > "$TEMP_DIR/SKILL.md" << 'EOF'
<skill content>
EOF
# Create the public gist
gh gist create "$TEMP_DIR/README.md" "$TEMP_DIR/SKILL.md" --public --desc "<skill-name> skill for Claude Code"
# Clean up
rm -rf "$TEMP_DIR"
6. Also Save Locally
After creating the gist (or if user chose local only), save to the local skills folder:
mkdir -p ~/.claude/skills/<skill-name>
Then write the SKILL.md file to ~/.claude/skills/<skill-name>/SKILL.md.
7. Provide Summary
Output:
Link to the created gist (if published)
Confirmation of local installation path
How to invoke the skill (/<skill-name> or auto-invocation explanation)
Remind user to restart Claude Code or start a new session to load the skill
Editing Existing Skills
When the user asks to edit or modify an existing skill:
1. Check if Skill is Published
After making changes to a skill, check if it has an associated gist:
# Search for gists with the skill name
gh gist list --limit 100 | grep "<skill-name>"