From legal-builder-hub
Uninstalls, disables, or re-enables community-installed skills installed via the legal-builder-hub. Logs every operation and refuses to touch first-party plugins or unlogged skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/legal-builder-hub:skill-managerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
安装后移除或静默一个社区技能。与安装器对称:安装器经用户批准后写入文件,技能管理器经用户批准后移除或禁用它们。安装器的审计追踪(`install-log.yaml`)是本技能可以操作哪些内容的权威来源。
安装后移除或静默一个社区技能。与安装器对称:安装器经用户批准后写入文件,技能管理器经用户批准后移除或禁用它们。安装器的审计追踪(install-log.yaml)是本技能可以操作哪些内容的权威来源。
仅限通过本中心安装的社区技能。识别规则:
~/.claude/plugins/config/claude-for-legal/legal-builder-hub/install-log.yaml
中,且最新操作记录为 install 或 enable(非 uninstall)。如果任一检查失败,拒绝并告知用户原因。绝不在第一方插件内部删除或重命名文件。
claude-for-legal 附带的 12 个核心插件对此命令不可触碰。规范列表在中心的 CLAUDE.md 的"预装插件"下。示例包括 commercial-legal、corporate-legal、employment-legal、privacy-legal、product-legal、regulatory-legal、ai-governance-legal、litigation-legal、law-student、legal-clinic 和中心本身(legal-builder-hub)。如果调用者命名的技能解析到以上任何一个,拒绝。
读取 install-log.yaml。找到命名技能的最新条目。
如果未找到或最后操作为 uninstall:说明并停止。
从安装日志中确定安装路径(安装时写入)。
列举每个文件和子目录。同时识别技能写入用户 ~/.claude/plugins/config/... 的任何配置——向用户展示但默认不删除(配置可能值得保留以备后续重新安装)。
显示:
提示:"删除这些文件?(yes / no)"。未经明确 yes 不得删除。
移除技能目录。
追加到 install-log.yaml:
- skill: <名称>
action: uninstall
timestamp: <ISO8601>
path: <已删除路径>
从中心 CLAUDE.md 的已安装入门包表中移除该技能的行。
SKILL.md → SKILL.md.disabledhooks/hooks.json → hooks/hooks.json.disabled(如存在)agents/*.md → agents/*.md.disabled),使计划的 agent 停止触发。展示重命名列表。提示:"禁用此技能?(yes / no)"。
执行重命名。
追加到 install-log.yaml,action: disable。
如果用户命名的技能最新日志操作为 disable,提供重新启用选项:反转重命名,记录 action: enable。
yes,不得进行任何文件操作。/plugin 进行插件管理。~/.claude/plugins/config/claude-for-legal/<plugin>/ 中的配置默认保留,除非用户明确要求删除。npx claudepluginhub zhou210712/claude-for-legal-zh --plugin legal-builder-hubManages community skills installed via the legal builder hub: uninstalls or disables them safely, refusing to touch first-party plugins, confirming before deletion, and logging actions.
Install, list, and remove community skills from GitHub or local paths. Manages SKILL.md files for Claude Code's agent skill system.
Disables a skill by ID in the project configuration, removing its rules from the next AGENTS.md generation. Use to prune unused languages, frameworks, or conflicting rules.