related-skills-surfacer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

/related-skills-surfacer

/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."

  1. 加载
    ~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md
    → 执业档案。
  2. 使用以下工作流。
  3. 检查其他插件的活动情况,与registry进行匹配。
  4. 推荐语:“你一直在做X——社区有一个相关的Y技能。”

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?"
本技能会在任务结束后展示相关的社区技能。它可以由用户直接调用(“针对X还有哪些可用的技能?”),也可以通过Stop hook接入其他插件——基于hook的模式要求每个同级插件声明一个调用本技能的Stop hook,但默认未接入。如果未接入hook,则直接调用本技能。
其他插件可在任务结束时加入一个简单检查:
“legal-builder-hub发现了一个可能有助于此类工作的社区技能:[名称] —— [一行描述]。要不要了解一下?”

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.
~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md
→ 执业档案、已安装技能(不要推荐已安装的技能)。 来自registry-browser的registry缓存。

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.
根据任务描述(用户刚在做的事情),找到匹配的registry技能:
  • 任务与技能描述之间的关键词重叠
  • 符合执业档案(不要向从事交易业务的律师推荐诉讼技能)
  • 未已安装
匹配阈值: 仅展示匹配度高的技能。弱匹配属于干扰信息。宁可不展示,也不要造成干扰。

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."
如果匹配度高:
💡 社区有适合此需求的技能:[名称] 来自 [registry] —— “[描述]”。使用
/legal-builder-hub:skill-installer [name]
即可尝试。
如果无强匹配:保持沉默,不输出内容。不要告知“未找到任何内容”。

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
.
不要重复展示同一个技能。如果用户第一次未安装,说明他们已看到并决定不使用。在
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
根据
~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md
→ 新技能通知设置:
  • 全部: 展示所有匹配项
  • 匹配执业档案: 根据档案过滤(默认设置)
  • 无: 关闭本技能

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.
根据CLAUDE.md中的
## Outputs
部分,以下一步决策树收尾。根据本技能生成的内容自定义选项——五个默认分支(起草X、升级处理、获取更多事实、观望等待、其他操作)是起点,并非固定模板。决策树即为输出内容,由律师选择。

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.
  • 不安装任何内容。
  • 不中断正在进行的任务。技能展示仅在任务结束时进行,而非中途。
  • 不反复提醒。每个技能仅提及一次,绝不重复。