About disable
A Claude skill-management workflow for disabling a named community skill. After confirmation, it renames the skill and any associated hooks, logs the change, and can reverse the operation when run again.
Key features
- 01Renames the skill file to disable it
- 02Disables associated hooks
- 03Records the change in the install log
- 04Re-enables the skill with the same command
Use cases
- 01Temporarily disable a hub-installed community skill
- 02Prevent hooks from firing while a skill is disabled
- 03Restore a previously disabled skill
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ cslawyer1985/ claude-for-legal-zh --skill disableAfter installing, type/disablein Claude Code to confirm it loaded.
Details
From the project README/disable
针对命名技能运行 skill-manager 参考技能中的 disable 工作流。
禁用做什么:
- 将技能的
SKILL.md重命名为SKILL.md.disabled,使 Claude 不再将其发现为活跃技能。文件、参考、模板和配置保留在原位。 - 如果技能附有
hooks/hooks.json中的 hooks,也将该文件重命名为hooks.json.disabled,使技能禁用期间无自动触发器触发。 - 将操作记录到
~/.claude/plugins/config/claude-for-legal-zh/legal-builder-hub/install-log.yaml。
安全规则:
- 仅禁用通过本中心安装的社区技能。 与卸载相同的检查——查阅安装日志和 CLAUDE.md 已安装表。
- 绝不禁用第一方插件的技能。 不可触碰。
- 在重命名前确认。 展示路径,获取明确同意。
重新启用:再次以相同技能名称运行该命令——skill-manager 工作流识别已禁用的技能并将重命名反转回来。
详细的卸载、禁用和重新启用工作流在
skill-manager参考技能中——在进行实质性工作前加载它。
Comments
Markdown supported