智能体技能发现与安装
find-skills
从外部来源(skills.sh)发现并安装全新的智能体技能。用于弥补自身缺失的能力,例如“找一个能做 X 的技能”。不要用于列出你已有的技能;请参阅 `<available_skills>`。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 1.1w
- Forks
- 3.0k
01 前言 Front Matter
- name
- find-skills
- description
- Discover/install NEW agent skills from external sources (skills.sh). Use for capabilities you lack, e.g. "find a skill for X". Do NOT use to list skills you already have; see `<available_skills>`.
03 SKILL.md 正文
Find skills
When to use this skill
- The user asks "find a skill for X", "is there a skill that does X"
- The user asks "how do I do X" where X is a common task with a likely existing skill
- The user wants to extend Horizon's capabilities with a new skill
Before searching externally, check the <available_skills> block in your
context — the user may already have a relevant skill installed.
Step 1 — check the leaderboard
Before running any CLI command, check skills.sh to see whether a well-known skill already covers the domain. The leaderboard ranks by total installs, surfacing the most popular and battle-tested options.
Step 2 — search for skills
If the leaderboard doesn't cover the user's need, search via the Skills CLI:
bash(command="npx --yes skills find <query>")
Examples:
| User says | Search |
|---|---|
| "make my React app faster" | npx --yes skills find react performance |
| "help with PR reviews" | npx --yes skills find pr review |
| "create a changelog" | npx --yes skills find changelog |
If npx is unavailable the command will fail — fall back to browsing
skills.sh manually and pasting the SKILL.md content.
Step 3 — verify quality before recommending
Never recommend a skill based solely on search results.
- Install count — prefer 1 000+ installs; treat anything under 100 with skepticism
- Source reputation — official organisations (
vercel-labs,anthropics,microsoft) are more trustworthy than unknown authors - GitHub stars — check the source repo; a skill from a repo with <100 stars is a yellow flag
Step 4 — present the option to the user
I found a skill that might help: "react-best-practices" from Vercel Engineering
provides React and Next.js performance guidelines (185K installs).
Shall I install it?
Only proceed to installation after the user confirms.
Step 5 — install
Option A — write SKILL.md directly (always works)
If you have the skill content (pasted by the user, retrieved from skills.sh, or constructed from the search result):
write(".agents/skills/<name>/SKILL.md", content)
load_skill(action="reload")
write creates the directory if it does not exist. load_skill(action="reload")
refreshes the <available_skills> catalog (plus extensions and manifest) on
the next turn.
Option B — install via npx (requires Node.js)
First check whether npx is available:
bash(command="which npx")
If it is, install the skill. Select a single skill from a multi-skill repo with
the @<skill> suffix (omit it to take the whole repo):
bash(command="npx --yes skills add <owner/repo>@<skill-name> -y")
The Skills CLI stages the skill (with its references/, assets/, and
scripts/ subdirs) under .agents/skills/<skill-name>/ — exactly where Horizon
loads skills from — so no move is needed. Just refresh:
load_skill(action="reload")
The staged directory name MUST match the name: field in the SKILL.md
frontmatter — _load_skill_from_dir validates that and skips mismatched
skills.
Step 6 — confirm activation
After load_skill(action="reload") returns (look for the new skill in
loaded), tell the user:
The "<name>" skill is now installed. It will appear in your
<available_skills> catalog on the next turn.
When no skills are found
- Acknowledge that no existing skill was found
- Offer to help directly using general capabilities
- Offer to write a custom skill for them:
bash(command="npx --yes skills init my-skill-name")
Or skip the CLI and author one manually — write a SKILL.md following the
policy or workspace skills as examples.
Common skill categories
| Category | Search terms |
|---|---|
| Web development | react, nextjs, typescript, css, tailwind |
| Testing | testing, jest, playwright, e2e |
| DevOps | deploy, docker, kubernetes, ci-cd |
| Documentation | docs, readme, changelog, api-docs |
| Code quality | review, lint, refactor, best-practices |
| Design | ui, ux, design-system, accessibility |
04 同仓库更多 Skills
零售虚拟试穿智能体开发
retail-virtual-tryon
创建虚拟试穿智能体,在 Google Cloud 上支持图片和视频(走秀动画)试穿(使用 Gemini 图像模型和 Gemini Enterprise Agent Platform 上的 Veo)。负责资源设置、用户照片上传、图片/视频生成流水线、本地测试和评估。
零售产品搜索智能体构建
retail-product-search
在 Google Cloud 上创建具备语义搜索和 RAG 能力的产品搜索智能体(基于 Gemini Enterprise Agent Platform 上的 Vector Search、BigQuery 和 embeddings)。当用户想要“构建产品搜索智能体”“创建电商搜索”“制作购物助手”“搭建语义化目录发现”“将产品导入 Vector Search”或“部署零售 RAG 智能体”时使用。涵盖完整流程:目录数据导入 BigQuery、Gemini Enterprise Agent Platform 的 Vector Search 集合配置、ADK 智能体脚手架搭建、评估以及 Cloud Run 部署。
定时例行任务管理
routines
用于周期性、无人值守的任务(cron;如拉取数据、创建 PR、发布摘要),或先对某个例行程序进行测试/试运行。介绍如何通过 routine 工具编写和测试例行任务。
工具权限策略检查
policy
检查按工作区划分的工具策略覆盖层(.lha/policies.jsonl),该覆盖层用于对破坏性或敏感的工具调用进行门控,并告知用户若想新增或删除规则应修改哪些内容。
Google Workspace 办公套件操作
google-workspace
通过 `gws` 命令行工具读写 Google Drive、Docs、Sheets、Gmail、Calendar、Chat、Tasks、Slides。需先配置 OAuth 客户端或服务账号。适用于任何 Google Workspace 任务。
Google 工具安装与认证
bootstrap-google-tools
安装并认证沙箱缺失的命令行工具——`gws`(Drive、Gmail、Sheets、Calendar)、`gcloud`、`agents-cli`、`mcp-cli`(MCP 服务器)。当出现“command not found”,或在开展 GCP、Workspace、MCP 相关工作之前使用。