Installing Skills via CLI
The smdg install command copies a generated skill to the correct directory for your target AI platform.
Basic Usage
Terminalbash
# Install the most recently generated skill to Claude Code
smdg install --platform claude
# Install a specific skill to Cursor
smdg install --platform cursor --skill my-skill
# Install the latest skill from your account
smdg install --platform claude --latestPlatform Directories
Each platform has a standard directory where skills are loaded from:
| Platform | Global Directory | Project Directory |
|---|---|---|
| Claude Code | ~/.claude/skills/ | .claude/skills/ |
| Cursor | ~/.cursor/skills/ | .cursor/skills/ |
| Codex CLI | ~/.codex/skills/ | .codex/skills/ |
| GitHub Copilot | — | .github/skills/ |
| Gemini CLI | ~/.gemini/skills/ | .gemini/skills/ |
By default, skills are installed to the global directory, making them available in all projects. Use the --project flag to install to the current project directory instead.
Options
| Flag | Description | Default |
|---|---|---|
--platform | Target platform: claude, cursor, codex, copilot, or gemini. | (required) |
--skill | Skill name to install. Omit to install the most recently generated. | latest local |
--latest | Install the most recently generated skill from your Smidge account (remote). | false |
--project | Install to project-local directory instead of global. | false |
Examples
Install to Global Directory
Terminalbash
smdg install --platform claude --skill css-layout-expert
# ✓ Installed to ~/.claude/skills/css-layout-expert/SKILL.mdInstall to Project Directory
Terminalbash
smdg install --platform codex --skill api-patterns --project
# ✓ Installed to ./.codex/skills/api-patterns/SKILL.mdInstall Latest from Account
Terminalbash
smdg install --platform claude --latest
# ✓ Installed brand-voice to ~/.claude/skills/brand-voice/SKILL.mdChat-Based Platforms
Some platforms (ChatGPT, Claude.ai) don't use a local skills directory. To use a Smidge-generated skill with these:
- ●Download the skill as a zip from the web app or use
smdg generate --source ...to get the local file - ●Upload the SKILL.md file as a file attachment in the conversation
- ●Or paste the skill content directly into the system/project prompt
Note
The
smdg install command targets filesystem-based agents only. For chat-based platforms, download and upload the file manually.