检查已安装社区技能的更新,展示差异并在你明确批准后再应用。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "auto-updater" 技能: 1. 下载 https://raw.githubusercontent.com/anthropics/claude-for-legal/main/legal-builder-hub/skills/auto-updater/SKILL.md 2. 保存为 ~/.claude/skills/auto-updater/SKILL.md 3. 装好后重载技能,告诉我可以用了
帮我检查一下我已安装的 community skills 有没有更新,先显示差异,不要直接应用。
列出可更新的技能、当前版本与最新版本差异,并等待用户批准后再执行更新。
更新我的技能;如果有变更,逐个给我看 diff,并让我确认。
逐项检查已安装技能的上游版本,展示变更内容,并只在获得明确同意后应用更新。
我安装的技能最近有什么新版本吗?把有更新的项目和关键风险点告诉我。
返回有更新的技能清单,并重点提示 hooks、MCP 配置、权限范围或用途变化等风险项。
开发者或运维人员在准备升级已安装技能时,可先查看完整 diff 与风险提示,避免未经审查的代码或权限变更进入环境。
当用户想知道“已安装技能有没有新版本”时,这个技能会逐个检查来源版本,并汇总可更新项供人工决定。
如果更新涉及 hooks、.mcp.json、工具权限扩展或用途变化,这个技能会突出显示这些差异,帮助用户重点审查。
文档说明这个技能会读取已安装技能及更新偏好,逐个检查上游来源是否有新的提交版本,并将当前固定的提交与最新提交进行比较。若发现更新,它会展示完整 diff,并重点提示 hooks、MCP 配置、权限扩展、网络调用、命令执行或用途变化等高风险项;在用户明确批准前不会应用更新,还强调应对新版本重新做安全扫描。
~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md → installed skills + auto-update prefs.Community skills improve. This skill notices when, shows you what changed, and applies updates only with your explicit approval.
Installed skills are code running inside your privileged legal environment. An upstream repository can be compromised, transferred to a new owner, or simply change behavior in ways you don't want. This skill is designed so that no update is ever applied without you reading the diff and approving it. That's not a preference — it's the design.
~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md → installed skills (with version/commit SHA), update preferences (notify / manual).
For each skill in the installed list:
For each update, show the full diff:
# [skill-name] — [installed SHA] → [latest SHA]
## SKILL.md changes
[unified diff]
## hooks/hooks.json changes
[unified diff — FLAG: hooks can execute arbitrary code]
## .mcp.json changes
[unified diff — FLAG: MCP servers run with your credentials]
## Other files
[list of added/removed/modified files with diffs]
Then run the trust check:
hooks/hooks.json change? Hooks can execute arbitrary shell commands. Show the diff prominently and ask the user to confirm they understand what the new hooks do..mcp.json change? New or changed MCP servers can access your environment. Same treatment.allowed-tools or tools frontmatter expand? New tool access is a permission escalation.description or stated purpose change? A skill that claimed to "review NDAs" and now claims to "send contracts" has repurposed itself.Re-run the full skills-qa scan against the NEW version before applying the
update. A skill that was clean at v1.0 can ship a poisoned v1.1 — the
GlassWorm pattern (a trusted publisher, an established skill, a minor
version bump that carries the payload). Install-time trust does not
transfer to updates.
Rules:
skills-qa Step 1.5 category — refuse
the update by default and explain why. Emit the new-version REFUSE
output verbatim.hooks/hooks.json, .mcp.json, allowed-tools/tools
frontmatter, new Bash/WebFetch/WebSearch access, new external URLs,
new file-write paths outside the skill directory, or the description
frontmatter FORCES a human-approval prompt and cannot be bypassed by a
clean LLM scan. The scan is a signal; the human is the gate.restrictive allowlist mode, the read-only subagent
is MANDATORY here — do not apply an update in restrictive mode without…
它用于检查已安装的社区技能是否有更新,展示变更差异,并且只有在用户明确批准后才应用更新。
不会。给定资料明确说明,任何更新都不会在未阅读差异并获得批准前自动应用。
文档提到它会重点标记 hooks/hooks.json、.mcp.json、工具权限扩展,以及新的网络调用、目录外写文件、命令执行和技能用途变化等风险。更多细节见源码仓库。
帮你在已关注的技能注册表中搜索、预览并筛选可安装技能。
帮助起草DMCA下架通知、评估来函并生成反通知草稿
用统一流程登记新法律事项并生成档案与结构化记录
对员工手册拟议修改做差异比对,并识别交叉引用与州补充影响。
审查录用通知与竞业限制条款,并按员工所在法域核查关键合规点
管理 Matter 工作区的创建、切换、归档与上下文隔离。
安全审查并安装社区技能,展示原始说明后经用户批准再落盘
审查技能类 PR,并按严重级别给出结构化质量反馈与规范检查
根据当前任务与近期插件活动,推荐相关社区技能供你参考
安全管理社区技能的卸载、禁用与恢复,并记录每次操作。
安全卸载通过 hub 安装的社区技能,并在删除前确认与记录审计日志
帮助你创建、整理、校验并重构 AgentSkills 与 SKILL.md 技能文件。