From legal-skills
Installs, uninstalls, lists, and updates Skills/Commands for Claude Code, Codex, and OpenClaw. Supports local symlinks and GitHub installs with version tracking.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legal-skills:skill-managerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
管理 Claude Code、Codex 和 OpenClaw Skills/Commands 的安装、同步、卸载和列表查看。
管理 Claude Code、Codex 和 OpenClaw Skills/Commands 的安装、同步、卸载和列表查看。
.codex/skills/、.claude/skills/、.openclaw/skills/执行安装、列表、卸载、更新时,脚本会从调用目录向上查找 Agent 配置目录:
/Users/maoking/.codex 或其子目录调用时,目标为 /Users/maoking/.codex/skills/.codex/、.claude/ 或 .openclaw/ 时,目标为对应配置目录下的 skills/ 或 commands/.codex/skills/、.claude/skills/、.openclaw/skills/ 内调用时,目标为其上级配置目录--target 参数或设置 SKILL_MANAGER_TARGET_DIR=/path/to/.codex~/.claude)调用时,会尝试通过 git 自动发现项目本地目录,并打印告警# 单个 skill 目录
skill-manager install ~/skills/pdf-tool
# 单个 command 文件
skill-manager install ~/commands/deepresearch.md
# 包含多个 skills 的目录(批量安装)
skill-manager install ~/skills/external-skills/
# 包含多个 commands 的目录(批量安装)
skill-manager install ~/commands/
skill-manager install https://github.com/owner/skill-repo
skill-manager install owner/skill-repo
# 完整 URL 到子目录
skill-manager install https://github.com/jgtolentino/insightpulse-odoo/tree/main/docs/claude-code-skills/community
# 简写格式:owner/repo/branch/path/to/skills-directory
skill-manager install jgtolentino/insightpulse-odoo/main/docs/claude-code-skills/community
git clone --depth 1 浅克隆.backup,然后安装新版本# 使用脚本安装
scripts/install.sh [--target <dir>] <source>
# 示例
scripts/install.sh ~/dev/my-skills/pdf-tool
scripts/install.sh ~/dev/my-commands/deepresearch.md
scripts/install.sh ~/dev/my-skills/
scripts/install.sh ~/dev/my-commands/
scripts/install.sh https://github.com/anthropics/claude-code
scripts/install.sh jgtolentino/insightpulse-odoo/main/docs/claude-code-skills/community
# 显式指定目标(从非项目目录调用时使用)
scripts/install.sh --target /path/to/project/.claude ~/dev/my-skills/pdf-tool
scripts/list.sh
显示当前识别到的 Agent 配置目录下所有已安装的 items 及其类型(符号链接或克隆)。
scripts/remove.sh <name>
删除指定的 skill 或 command(自动识别类型)。
scripts/update.sh [name]
scripts/check.sh
检查所有远程安装 Skills 的更新状态,检测策略:
显示:
每次安装和更新都会自动记录到 assets/skill-registry.json。
python3 scripts/record.py list
显示所有已安装 Skills 的详细记录,包括:
一个目录被视为有效的 skill 目录,如果它包含:
SKILL.md 文件(标准 skill)skill.md 文件(变体).codex / .claude / .openclaw 子目录.md.md 文件# ========== 安装 ==========
# 安装本地单个 skill
skill-manager install ~/dev/my-skills/pdf-tool
# 批量安装本地目录下的所有 skills
skill-manager install ~/dev/my-skills/
skill-manager install ../other-project/.claude/skills/
# 在 Codex 全局目录中调用时,安装到 ~/.codex/skills/
cd /Users/maoking/.codex
skill-manager install ~/dev/my-skills/pdf-tool
# 从全局目录调用但安装到指定项目(使用 --target 避免装错位置)
skill-manager install --target /path/to/project/.claude ~/dev/my-skills/pdf-tool
# 从 GitHub 仓库根目录安装
skill-manager install https://github.com/anthropics/claude-code
skill-manager install anthropics/claude-code
# 从 GitHub 子目录安装
skill-manager install https://github.com/jgtolentino/insightpulse-odoo/tree/main/docs/claude-code-skills/community
skill-manager install jgtolentino/insightpulse-odoo/main/docs/claude-code-skills/community
# ========== 查看与管理 ==========
# 列出已安装的 skills
skill-manager list
# 卸载 skill
skill-manager remove pdf-tool
# ========== 更新与检查 ==========
# 检查所有 skills 的更新
skill-manager check
# 更新所有 git 克隆的 skills
skill-manager update
# 更新指定 skill
skill-manager update claude-code
# 查看安装记录
python3 scripts/record.py list
从 GitHub 安装 skill 时,会自动进行安全检查(本地安装不检查)。
| 类别 | 说明 |
|---|---|
| 危险代码模式 | 命令执行、敏感文件访问、数据外泄、代码混淆、权限提升等 |
| Skill 特有风险 | 安装钩子、MCP 服务器配置等 |
| 提示词安全 | 提示注入、数据收集指令、执行指令、欺骗性描述等 |
| 硬编码凭证 | API Key、Token、密码等敏感信息 |
每个已安装的 Skill 记录在 assets/skill-registry.json 中,包含以下字段:
| 字段 | 说明 |
|---|---|
name | Skill 目录名 |
source | 原始安装来源(本地路径或 GitHub URL) |
install_type | "local"(符号链接)或 "remote"(GitHub 克隆) |
installed_at | 初始安装时间(ISO 8601) |
last_updated | 最后版本更新时间 |
last_check_at | 最后一次更新检查时间(仅远程) |
installed_version | 安装时的版本号 |
current_version | 当前已安装版本 |
latest_version | 远程最新版本 |
install_commit | 安装时的 Git commit hash(仅远程) |
install_branch | 安装时使用的 Git branch(仅远程) |
remote_url | 完整 GitHub URL,含子目录路径(仅远程) |
remote_subpath | Skill 在仓库中的子路径(仅子目录安装) |
description | Skill 描述 |
homepage | 主页 URL |
skill-manager/
├── SKILL.md # 本文件
├── CHANGELOG.md # 变更日志
├── CLAUDE.md # AI 开发助手说明
├── LICENSE.txt # 许可证
├── scripts/
│ ├── install.sh # 安装脚本
│ ├── list.sh # 列表脚本
│ ├── remove.sh # 卸载脚本
│ ├── update.sh # 更新脚本
│ ├── check.sh # 更新检查脚本
│ ├── auto-check.sh # 定期自动检查触发器
│ ├── target.sh # Agent 配置目录识别模块
│ ├── record.py # 记录管理模块
│ └── security.py # 安全检查模块
└── assets/ # 资源文件
├── skill-registry.json # Skill 安装记录(运行时生成)
└── skill-registry.example.json # 注册表示例
npx claudepluginhub cat-xierluo/legal-skills --plugin transcription-correctorInstalls, updates, lists, and removes Claude Code skills from GitHub repos/subdirs or .skill zips. Supports user-global and project-local locations.
Install, list, and remove community skills from GitHub or local paths. Manages SKILL.md files for Claude Code's agent skill system.
Create, update, and manage Claude Code skills including SKILL.md files, slash commands, directory structures, frontmatter, substitutions, and invocation controls.