Skillshare CLI
Two Modes
Global: ~/.config/skillshare/skills → ~/.claude/skills, ~/.cursor/skills, ...
Project: .skillshare/skills/ → .claude/skills, .cursor/skills (per-repo)Auto-detection: commands run in project mode when .skillshare/config.yaml exists in cwd. Force with -p (project) or -g (global).
Commands
| Category | Commands | Project? | |||
|---|---|---|---|---|---|
| Inspect | status, diff, list, doctor | ✓ (auto) | |||
| Sync | sync, collect | ✓ (auto) | |||
| Remote | push, pull | ✗ (use git) | |||
| Skills | new, install, uninstall, update, check, search | ✓ (-p) | |||
| Targets | target add/remove/list | ✓ (-p) | |||
| Security | audit [name] | ✓ (-p) | |||
| Trash | `trash list\ | restore\ | delete\ | empty` | ✓ (-p) |
| Log | log [--audit] [--tail N] | ✓ (-p) | |||
| Backup | backup, restore | ✗ | |||
| Web UI | ui (-g global, -p project) | ✓ (-p) | |||
| Upgrade | `upgrade [--cli\ | --skill]` | — |
Workflow: Most commands require sync afterward to distribute changes.
AI Usage Notes
Non-Interactive Mode
AI cannot respond to CLI prompts. Always pass flags to skip interactive prompts.
# Key non-interactive patterns
skillshare init --no-copy --all-targets --git --skill # Global fresh start
skillshare init -p --targets "claude,cursor" # Project init
skillshare install user/repo --all # Install all skills
skillshare install user/repo -s pdf,commit # Select specificSee init.md and install.md for all flags.
Safety
installauto-scans skills; CRITICAL findings block install (--forceto override)installshows license from SKILL.md frontmatter in selection/confirmation promptsuninstallaccepts multiple names and--group/-Gfor batch removal; auto-detects group directoriesuninstallmoves to trash (7-day retention) — restore withtrash restore <name>- NEVER
rm -rfsymlinked skills — deletes source. Useskillshare uninstallortarget remove
See audit.md and trash.md for details.
References
| Topic | File |
|---|---|
| Init flags (global + project) | init.md |
| Sync/collect/push/pull | sync.md |
| Install/update/uninstall/new | install.md |
| Status/diff/list/search/check | status.md |
| Security audit | audit.md |
| Trash (soft-delete) | trash.md |
| Operation log | log.md |
| Target management | targets.md |
| Backup/restore | backup.md |
| Troubleshooting | TROUBLESHOOTING.md |