AgentSkillsCN

skillshare

从单一可信源同步 AI CLI 工具中的技能(如 Claude、Cursor、Windsurf 等)。 支持全局模式(~/.config/skillshare/)与项目模式(每个仓库对应的 .skillshare/)。 当您需要“同步技能”、“安装技能”、“搜索技能”、“列出技能”、“查看技能状态”、“备份技能”、“恢复技能”、“更新技能”、“新建技能”、“收集技能”、“推送/拉取技能”、“添加/移除目标”、“为 X 寻找技能”、“是否有能……的技能”、“如何用技能完成 X”、“skillshare init”、“skillshare upgrade”、“技能未同步”、“诊断 skillshare”、“医生问诊”、“项目技能”、“初始化项目”、“项目搭建”、“将技能范围限定于仓库”、“通过 Git 分享技能”、“Web 仪表盘”、“skillshare UI”、“启动仪表盘”、“打开 UI”、“可视化技能管理”、“审计技能”、“安全扫描”、“扫描注入风险”、“检查技能安全性”、“回收站”、“恢复已删除技能”、“撤销卸载操作”、“清空回收站”、“操作日志”、“查看历史记录”、“了解哪些内容发生了变化”、“检查更新”时,均可使用此功能。

SKILL.md
--- frontmatter
name: skillshare
version: 0.11.0
description: |
  Syncs skills across AI CLI tools (Claude, Cursor, Windsurf, etc.) from a single source of truth.
  Supports both global mode (~/.config/skillshare/) and project mode (.skillshare/ per-repo).
  Use when: "sync skills", "install skill", "search skills", "list skills", "show skill status",
  "backup skills", "restore skills", "update skills", "new skill", "collect skills",
  "push/pull skills", "add/remove target", "find a skill for X", "is there a skill that can...",
  "how do I do X with skills", "skillshare init", "skillshare upgrade", "skill not syncing",
  "diagnose skillshare", "doctor", "project skills", "init project", "project setup",
  "scope skills to repo", "share skills via git", "web dashboard", "skillshare ui",
  "launch dashboard", "open ui", "visual skill management",
  "audit skills", "security scan", "scan for injection", "check skill safety",
  "trash", "restore deleted skill", "undo uninstall", "empty trash",
  "operation log", "show history", "what changed", "check for updates",
  or any skill/target management across AI tools.
argument-hint: "[command] [target] [--dry-run] [-p|-g]"

Skillshare CLI

Two Modes

code
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).

Quick Start

bash
# Global
skillshare status && skillshare sync

# Project — initialize in a repo
skillshare init -p
skillshare sync

Commands

CategoryCommandsProject?
Inspectstatus, diff, list, doctor✓ (auto)
Syncsync, collect✓ (auto)
Remotepush, pull✗ (use git)
Skillsnew, install, uninstall, update, check, search✓ (-p)
Targetstarget add/remove/list✓ (-p)
Securityaudit [name]✓ (-p)
Trashtrash list|restore|delete|empty✓ (-p)
Loglog [--audit] [--tail N]✓ (-p)
Backupbackup, restore
Web UIui✓ (-p)
Upgradeupgrade [--cli|--skill]

Workflow: Most commands require sync afterward to distribute changes.

AI Usage Notes

Non-Interactive Mode

AI cannot respond to CLI prompts. Always use flags:

bash
# Global init
skillshare init --copy-from claude --all-targets --git  # If skills exist
skillshare init --no-copy --all-targets --git           # Fresh start

# Project init (in repo root)
skillshare init -p --targets "claude-code,cursor"       # Specific targets
skillshare init -p                                      # Interactive (user only)

# Install (multi-skill repo non-interactive)
skillshare install user/repo --all                # Install all
skillshare install user/repo -s pdf,commit        # Select specific
skillshare install user/repo -y                   # Auto-accept
skillshare install user/repo --force              # Override audit block

# Add new agents later
skillshare init --discover --select "windsurf,kilocode"
skillshare init -p --discover --select "windsurf"

Safety

Security audit: install auto-scans skills. CRITICAL findings block install; use --force to override.

bash
skillshare audit                   # Scan all skills
skillshare audit my-skill          # Scan specific skill
skillshare install user/repo --force   # Override CRITICAL block

Soft-delete: uninstall moves skills to trash (7-day retention). Restore with trash restore.

bash
skillshare trash list              # See trashed skills
skillshare trash restore my-skill  # Undo uninstall
skillshare trash empty             # Permanent delete all

NEVER rm -rf symlinked skills — deletes source. Always use:

  • skillshare uninstall <name> to remove skills (goes to trash)
  • skillshare target remove <name> to unlink targets

Finding Skills

bash
skillshare search                   # Browse popular skills
skillshare search <query>           # Interactive install
skillshare search <query> --list    # List only
skillshare search <query> --json    # JSON output

Query examples: react performance, pr review, commit, changelog

References

TopicFile
Init flags (global + project)init.md
Sync/collect/push/pullsync.md
Install/update/uninstall/newinstall.md
Status/diff/list/search/checkstatus.md
Security auditaudit.md
Trash (soft-delete)trash.md
Operation loglog.md
Target managementtargets.md
Backup/restorebackup.md
Web dashboard (UI)ui.md
TroubleshootingTROUBLESHOOTING.md