Related Skills Surfacer

anthropics/claude-for-legal/legal-builder-hub/skills/related-skills-surfacer

作者 anthropics4a6c651889c97cc9140580363c73e0eb17379c2b无许可证9.6K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库9天前更新

Suggest community skills based on recent activity in other plugins. Checks whether the community has built something relevant to a task and mentions it once, non-intrusively. Use when the user says "is there a community skill for this", "what else is out there", or asks for skill recommendations; also runs passively as part of other plugins' workflows.

精选仅含说明AI & Agents
AI 生成的概览

在任务结束后,根据注册表匹配和用户执业画像推荐相关的社区技能。

功能
该技能会根据关键词重合度和执业画像匹配度,将社区构建的技能注册表与用户刚完成的工作进行比对。当发现高度匹配且该技能尚未安装时,它会给出一次简短提示,包含技能名称、来源注册表、描述和安装命令。若没有高度匹配,则保持静默,并避免重复推荐用户已看过或已忽略的技能。
适用场景
适用于用户询问某个需求是否有对应的社区技能、想了解还有哪些可用技能,或希望获得技能推荐时。它也可以接入其他插件,在任务结束时运行,但该钩子接线默认未启用。
运行要求
读取执业画像配置文件以及来自 registry-browser 的注册表缓存,并在 references/surfaced.json 中记录已忽略项。它不附带脚本,自身也不安装任何内容。

/related-skills-surfacer

  1. Load ~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md → practice profile.
  2. Use the workflow below.
  3. Check what other plugins have been doing. Match against registry.
  4. Suggest: "You've been doing X — community has a skill for Y that's related."

Purpose

The community might have built the thing you're about to build. This skill notices and mentions it — once, briefly, non-annoyingly.

How it runs

This skill surfaces related community skills after a task. It can be invoked directly by the user ("what else is out there for X?") or wired into other plugins via a Stop hook — the hook-based pattern requires each sibling plugin to declare a Stop hook that calls this skill, which is not wired by default. Without the hook wiring, invoke it directly.

Other plugins can include a light check at the end of a task:

"The legal-builder-hub found a community skill that might help with this kind of thing: [name] — [one-line]. Want to take a look?"

Load context

~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md → practice profile, installed skills (don't suggest what's already installed). Registry cache from registry-browser.

The match

Given a task description (what the user was just doing), find registry skills that match:

  • Keyword overlap between the task and skill descriptions
  • Practice profile fit (don't suggest litigation skills to a transactional lawyer)
  • Not already installed

Threshold: Only surface if the match is strong. Weak matches are noise. Better to surface nothing than to annoy.

Output

If strong match:

💡 The community has a skill for this: [name] from [registry] — "[description]". /legal-builder-hub:skill-installer [name] to try it.

If no strong match: silent. No output. Don't announce "I found nothing."

Frequency limit

Don't surface the same skill twice. If the user didn't install it the first time, they saw it and decided no. Track dismissals in references/surfaced.json.

User control

Per ~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md → new skill notifications:

  • All: Surface any match
  • Matching practice profile: Filter by profile (default)
  • None: This skill is off

Close with the next-steps decision tree

End with the next-steps decision tree per CLAUDE.md ## Outputs. Customize the options to what this skill just produced — the five default branches (draft the X, escalate, get more facts, watch and wait, something else) are a starting point, not a lock-in. The tree is the output; the lawyer picks.

What this skill does not do

  • Install anything.
  • Interrupt a task in progress. Surfacing happens at the end of a task, not in the middle.
  • Nag. One mention per skill, ever.

来源与署名

来源:anthropics/claude-for-legal位于legal-builder-hub/skills/related-skills-surfacer提交4a6c651

许可证: 无许可证

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架