related-skills-surfacer — скилл для Claude Code: что делает
Ищет в реестре подходящие скиллы сообщества по текущей задаче и предлагает их один раз. Нужен для рекомендаций без лишних уведомлений.
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a claude-codeЧто делает related-skills-surfacer
Скилл сопоставляет описание текущей задачи с описаниями скиллов в реестре. Он учитывает профиль практики, отбрасывает уже установленные скиллы и показывает рекомендацию только при сильном совпадении. При слабом совпадении ничего не выводит.
Контекст берётся из ~/.claude/plugins/config/claude-for-legal/legal-builder-hub/CLAUDE.md, а данные о доступных скиллах — из кэша registry-browser. Повторные рекомендации отслеживаются в references/surfaced.json, поэтому один и тот же скилл не предлагается снова.
Скилл можно вызвать напрямую после задачи или подключить через Stop hook в другом плагине. Автоматический запуск через hook потребует отдельного объявления этого hook в соседнем плагине, потому что такая связка по умолчанию не настроена. Это повод проверить настройки уведомлений: доступны режимы All, Matching practice profile и None.
Какие задачи решает
- найти скилл сообщества для текущей задачи
- отфильтровать рекомендации по профилю практики
- не предлагать уже установленные скиллы
- не повторять отклонённую рекомендацию
- подключить проверку скиллов к завершению задачи
Примеры запросов агенту
- Проверь, есть ли скилл сообщества для поиска по этому проекту.
- Какие ещё скиллы подойдут для текущей задачи?
- После завершения задачи проверь реестр и предложи один подходящий скилл, если совпадение сильное.
Как установить related-skills-surfacer
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a claude-code2Вручную: положить файлы
~/.claude/skills/related-skills-surfacer/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/related-skills-surfacer/
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a codex2Вручную: положить файлы
.agents/skills/related-skills-surfacer/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a cursor2Вручную: положить файлы
.cursor/skills/related-skills-surfacer/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install anthropics/claude-for-legal related-skills-surfacer2Вручную: положить файлы
.github/skills/related-skills-surfacer/SKILL.md1Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a gemini-cli2Командой платформы
gemini skills install https://github.com/anthropics/claude-for-legal --path legal-builder-hub/skills/related-skills-surfacerВручную: положить файлы
.devin/skills/related-skills-surfacer/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о related-skills-surfacer
Как установить related-skills-surfacer в Claude Code?
Выполните npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a claude-code, затем повторите эту же команду: npx skills add anthropics/claude-for-legal --skill related-skills-surfacer -a claude-code. Файл скилла находится по пути ~/.claude/skills/related-skills-surfacer/SKILL.md.
Что делает related-skills-surfacer?
Он сравнивает текущую задачу с реестром скиллов сообщества и показывает рекомендацию при сильном совпадении. Уже установленные скиллы и повторные рекомендации исключаются.
Как скилл запускается после задачи?
Его можно вызвать напрямую или подключить к Stop hook другого плагина. Для hook-сценария соседний плагин должен сам объявить Stop hook, потому что связка не настроена по умолчанию.
Исходный текст
SKILL.md · Apache-2.0
---
name: related-skills-surfacer
description: >
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.
---
# /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 · Apache-2.0 · anthropics/claude-for-legal