简介
通过 reskill 包管理器智能搜索、发现和安装 AI 代理技能,支持多轮渐进式检索与自动目标代理检测,让能力扩展像 npm install 一样简单。
原始描述
Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express...
安装
下载 zip 解压后,把里面的文件放进你的 Agent 的 skills 目录即可使用。
给 Agent 的直链(让它自己下载安装):
https://v110.com/skill/kanyun-rush-find-skills.zip
Claude Code 放 ~/.claude/skills/;Codex、TypingMind 等按各自文档的 skills 目录放置。技能申请什么权限由作者决定,装前请确认。
中文使用说明 来自收录源
核心用法
clawdhub-find-skills 是一个技能发现与安装助手,专为用户表达「如何做某事」「寻找某功能的技能」等需求设计。它通过 reskill(开源 Git 基础包管理器)与 Rush 社区注册表 (rush.zhenguanyu.com) 交互,实现技能的搜索、展示与安装。
标准流程(Search → Present → Ask → Install):
- 解析 CLI 与注册表:优先检测全局安装的
reskill,否则回退至npx reskill@latest;注册表支持--registry、环境变量RESKILL_REGISTRY及skills.json配置,默认指向 Rush 公共注册表。 - 渐进式搜索策略:采用多轮检索提升命中率——自然语言查询 → 连字符形式 → 最相关单关键词 → 同义词替换。搜索使用
reskill find "<query>" --json,返回结构化结果后由 Agent 根据描述字段人工过滤,仅展示最相关的 2-3 个技能。 - 智能目标代理检测:按优先级解析安装目标——用户显式指定 →
skills.json中defaults.targetAgents→ 自动识别.cursor/,.claude/,.codex/等 Agent 目录 → 询问用户。安装命令形如reskill install <name> -y -a <agents> --registry <url>。 - 安装与反馈:用户确认后执行安装,随后简述新能力并提示就绪。
内置快捷推荐:针对「创建/发布技能」等高频意图,直接推荐 @kanyun/rush-reskill-usage,跳过搜索步骤。
显著优点
- 检索策略系统化:四级渐进搜索 + Agent 端描述过滤,有效解决注册表模糊匹配能力有限的问题,显著提升冷门技能发现率。
- 零配置开箱即用:默认连接成熟的 Rush 社区注册表,同时开放多层级覆盖机制(CLI 参数、环境变量、项目配置),兼顾便捷与灵活。
- 多 Agent 生态兼容:原生支持 Cursor、Claude Code、Codex、Windsurf、GitHub Copilot、OpenCode 等主流代理,自动目录检测减少用户认知负担。
- 安全与透明并重:坚持「先展示后安装」原则,明确告知注册表来源与安装目标;依赖全局 CLI 或 npx 执行,不预下载远程代码。
- 完善的兜底机制:搜索无果时提供直接协助,并引导用户创建自定义技能,形成「发现-使用-贡献」的闭环。
潜在缺点与局限性
- 注册表中心化风险:默认依赖单一公共注册表(rush.zhenguanyu.com),若服务不可用或网络受限,需用户手动切换至镜像或私有注册表。
- 搜索质量受限于元数据:技能发现效果高度依赖发布者的关键词与描述填写质量,命名不规范的技能可能被遗漏。
- 渐进搜索的延迟成本:极端场景下需执行 3-4 轮 CLI 调用,虽提升召回但增加响应时间;Agent 端描述过滤亦消耗 token。
- Agent 检测的边界情况:部分用户可能使用非标准目录结构或新兴 Agent,自动检测失败时需人工介入。
- 功能聚焦单一:本技能仅负责「发现与安装」,不涵盖技能运行时管理、版本冲突解决或依赖树可视化等高级包管理功能。
适合人群
- AI 代理重度用户:日常在 Cursor、Claude Code 等环境中工作,希望快速扩展代理能力,不愿手动查阅文档的开发者。
- 团队技能治理者:需要为团队统一配置技能集、维护私有注册表并标准化安装流程的技术负责人。
- 技能生态贡献者:计划开发并发布自定义技能到社区,需了解发现机制与最佳实践的进阶用户。
- 跨平台协作者:频繁切换不同 AI 工具,希望一套技能配置多环境复用的全栈工程师。
常规风险
- 供应链安全:reskill 作为包管理器,其安装的技能以 Markdown 形式存在,实际执行代码需经 Agent 解析,存在恶意指令注入风险(建议结合 S+/S 级安全扫描)。
- 注册表投毒:公共注册表若缺乏审核机制,恶意技能可能被上传;用户应优先安装高可信度发布者(如
@kanyun命名空间)的技能。 - 权限过度授权:
reskill install默认需访问文件系统写入 Agent 目录,配合-y自动确认,建议在 CI/CD 或敏感环境禁用自动安装。 - 版本锁定缺失:当前流程未强调
skills.json版本锁定的重要性,团队环境可能因隐式更新导致行为漂移。 - 网络与隐私:搜索请求发送至第三方注册表,敏感关键词可能泄露用户技术栈信息,敏感场景应切换至私有注册表。
技能正文
name: clawdhub-find-skills description: Helps users discover and install agent skills when they ask questions like "how do I do X", "find a skill for X", "is there a skill that can...", or express interest in extending capabilities. Uses reskill as the package manager. version: 0.4.0 author: reskill tags:
- discovery
- search
- skills
- package-manager
Find Skills (reskill)
This skill helps you discover and install skills from the reskill ecosystem.
Security & Trust
This skill instructs the agent to run CLI commands via reskill, an open-source, Git-based package manager for AI agent skills.
Why a specific registry?
reskill supports multiple registries. This skill defaults to the Rush community registry (https://rush.zhenguanyu.com/) — the primary public registry for the reskill ecosystem, similar to how npm defaults to https://registry.npmjs.org. Users can override it at any time via --registry, the RESKILL_REGISTRY environment variable, or defaults.publishRegistry in skills.json.
CLI execution approach: To avoid downloading remote code on every invocation, we recommend installing reskill globally first:
npm install -g reskill
If a global installation is not available, npx reskill@latest can be used as a fallback. The agent should check for a global install before falling back to npx.
Key Principles:
- Search → Present → Ask → Install — always show results first, ask the user before installing.
- Be registry-aware — use the configured registry, tell the user which registry you're searching.
- Prefer local CLI — use globally installed
reskillwhen available; fall back tonpxonly if needed.
When to Use This Skill
Use this skill when the user:
- Asks "how do I do X" where X might be a common task with an existing skill
- Says "find a skill for X" or "is there a skill for X"
- Asks "can you do X" where X is a specialized capability
- Expresses interest in extending agent capabilities
- Wants to create, write, or publish a skill to a registry
- Wants to search for tools, templates, or workflows
- Mentions they wish they had help with a specific domain (design, testing, deployment, etc.)
Quick Recommendations
For these well-known intents, skip the search and directly recommend the corresponding skill:
| User Intent | Recommended Skill |
|---|---|
| Create, write, or publish a skill to the registry | @kanyun/rush-reskill-usage |
If the skill is not already installed, offer to install it. Then proceed with Step 4 (Determine Target Agents) as usual.
What is reskill?
reskill is a Git-based package manager for AI agent skills. It provides declarative configuration, version locking, and seamless synchronization for managing skills across projects and teams.
Key commands for skill discovery:
reskill find <query>— Search for skills by keywordreskill find <query> --json— Search with machine-readable JSON outputreskill install <ref>— Install a skillreskill list— List installed skillsreskill info <skill>— Show skill details
How to Help Users Find Skills
Step 0: Resolve CLI and Registry
CLI resolution: Check if reskill is installed globally. If available, use reskill directly. Otherwise fall back to npx reskill@latest.
which reskill
Registry resolution (highest to lowest priority):
--registry <url>CLI optionRESKILL_REGISTRYenvironment variabledefaults.publishRegistryinskills.json- Default:
https://rush.zhenguanyu.com/
If none of the first three are set, pass --registry https://rush.zhenguanyu.com explicitly. Tell the user which registry you're searching.
Step 1: Understand What They Need
When a user asks for help with something, identify:
- The domain (e.g., React, testing, design, deployment)
- The specific task (e.g., writing tests, creating animations, reviewing PRs)
- Whether this is a common enough task that a skill likely exists
Step 2: Search for Skills (Progressive Strategy)
Use --json for structured results. Examples below use reskill (substitute npx reskill@latest if not globally installed):
reskill find "<query>" --json --registry https://rush.zhenguanyu.com
The JSON output has this structure:
{
"total": 2,
"items": [
{
"name": "@scope/skill-name",
"description": "What this skill does",
"latest_version": "1.0.0",
"keywords": ["keyword1", "keyword2"],
"publisher": { "handle": "author" },
"updated_at": "2025-01-01T00:00:00Z"
}
]
}
IMPORTANT: Use progressive search to maximize results. The registry may not support multi-word fuzzy matching, so follow this strategy:
Round 1: Try the natural query first
reskill find "frontend design" --json --registry https://rush.zhenguanyu.com
If total > 0, proceed to Step 3 (present results).
Round 2: Try hyphenated version
Skill names often use hyphens. If Round 1 returns 0 results, try connecting keywords with a hyphen:
reskill find "frontend-design" --json --registry https://rush.zhenguanyu.com
Round 3: Broaden to the most relevant single keyword
If still 0 results, pick the most specific keyword from the user's query and search with that alone:
reskill find "frontend" --json --registry https://rush.zhenguanyu.com
Choose the keyword that best narrows the domain (e.g., prefer "frontend" over "design" because "design" is too broad).
Round 4 (optional): Try alternative/synonym keywords
If still no results, try synonyms or related terms:
- "frontend" → "ui", "web", "react"
- "deploy" → "deployment", "ci-cd", "devops"
- "test" → "testing", "jest", "playwright"
Agent-side filtering
When broader searches return multiple results, read each item's description field and filter by relevance to the user's original request. Only present skills whose description genuinely matches what the user needs. Do not present all results blindly.
Example flow — user asks "help me with frontend design":
1. find "frontend design" → 0 results
2. find "frontend-design" → 0 results
3. find "frontend" → 3 results
4. Read descriptions → filter → 1 result is relevant to UI design
5. Present that 1 result to user
Search query examples:
| User says | Round 1 | Round 2 (hyphenated) | Round 3 (single keyword) |
|---|---|---|---|
| "How do I make my React app faster?" | "react performance" |
"react-performance" |
"react" |
| "Can you help me with PR reviews?" | "pr review" |
"pr-review" |
"review" |
| "I need to create a changelog" | "changelog" |
— | — |
| "Help me write better TypeScript" | "typescript practices" |
"typescript-practices" |
"typescript" |
Stop as soon as you get relevant results — no need to run all rounds.
Step 3: Present Results and Ask Before Installing
When you find relevant skills, present them clearly:
- The skill name and description
- The version and author
- Which registry the result came from (public or private)
- The install command
Then ask the user which one(s) they want to install.
Example response:
I found a skill that might help! (from registry: rush.zhenguanyu.com)
**@scope/react-best-practices** (v1.2.0)
React and performance optimization guidelines.
To install:
reskill install @scope/react-best-practices -y --registry https://rush.zhenguanyu.com
Would you like me to install it?
If multiple results are found, present the top 2-3 most relevant ones and let the user choose. Once the user confirms (e.g., "install it", "yes", "install 1 and 3"), proceed to install all confirmed skills — no need to ask again for each one.
Step 4: Determine Target Agents
Before installing, resolve which agent(s) to install to. Follow this priority:
Priority 1: User explicitly specified --agent
If the user said something like "install to cursor" or "install to claude-code", pass -a <agent> directly — skip all detection.
Priority 2: Read skills.json → defaults.targetAgents
Look for skills.json in the current directory and up to 3 parent directories. If found, check for defaults.targetAgents:
{
"defaults": {
"targetAgents": ["cursor", "claude-code"]
}
}
If targetAgents is configured, use those agents directly with -a:
reskill install <name> -y -a cursor claude-code --registry https://rush.zhenguanyu.com
Priority 3: Detect agent directories
If no skills.json is found (or it has no targetAgents), scan the current directory and up to 3 parent directories for known agent directories:
| Directory | Agent |
|---|---|
.cursor/ |
cursor |
.claude/ |
claude-code |
.codex/ |
codex |
.windsurf/ |
windsurf |
.github/skills/ |
copilot |
.opencode/ |
opencode |
Note: For GitHub Copilot, check
.github/skills/(not just.github/), since.github/alone usually contains workflows/issue templates and does not imply Copilot usage.
If one or more agent directories are detected, tell the user what was found and confirm before installing:
Detected agent directory: .cursor/
Will install to Cursor (.cursor/skills/). Proceed? (or specify a different agent)
If the user confirms, install with -a:
reskill install <name> -y -a cursor --registry https://rush.zhenguanyu.com
If multiple agent directories are detected, list all of them and let the user choose which ones to install to.
Priority 4: Ask the user
If no agent information is available from any of the above, ask the user which agent(s) to install to:
No agent configuration found. Which agent(s) would you like to install this skill to?
Supported agents: cursor, claude-code, codex, windsurf, copilot, opencode
Then install with the user's chosen agent(s).
Step 5: Install the Skill
# Install to specific agent(s)
reskill install <name> -y -a <agents...> --registry https://rush.zhenguanyu.com
# Install globally (user-level, available in all projects)
reskill install <name> -y -g --registry https://rush.zhenguanyu.com
The -y flag skips CLI confirmation prompts.
After installation, let the user know the skill is ready and briefly describe what new capabilities it provides.
Common Skill Categories
When constructing search queries, consider these categories:
| Category | Example Queries |
|---|---|
| Web Development | react, nextjs, typescript, css, tailwind, vue |
| Testing | testing, jest, playwright, e2e, unit-test |
| DevOps | deploy, docker, kubernetes, ci-cd, github-actions |
| Documentation | docs, readme, changelog, api-docs |
| Code Quality | review, lint, refactor, best-practices, clean-code |
| Design | ui, ux, design-system, accessibility, figma |
| Productivity | workflow, automation, git, project-management |
| Data | database, sql, data-analysis, visualization |
| Skill Dev | reskill, publish, create-skill, skill-authoring |
Tips for Effective Searches
- Follow the progressive strategy: multi-word → hyphenated → single keyword → synonyms
- Pick the most specific keyword when narrowing down: prefer "frontend" over "design", prefer "playwright" over "testing"
- Try alternative terms: "deploy" → "deployment", "ci-cd", "devops"
- Always read descriptions: when a broad search returns many results, use descriptions to filter relevant ones
- Skill names use hyphens: remember to try hyphenated versions like "code-review", "best-practices"
When No Skills Are Found
If no relevant skills exist after exhausting all search rounds (multi-word → hyphenated → single keyword → synonyms):
- Acknowledge that no existing skill was found and briefly mention what you searched for
- Offer to help with the task directly using your general capabilities
- Suggest the user could create their own skill
Example:
I searched the registry with several queries ("frontend design", "frontend-design", "frontend")
but didn't find a matching skill.
I can still help you with this task directly! Would you like me to proceed?
If this is something you do often, you could also create your own skill and share it:
mkdir my-skill && echo "---\nname: my-skill\n---\n# My Skill" > my-skill/SKILL.md
Checking Installed Skills
Before searching for new skills, you can check what's already installed:
# List all installed skills
reskill list
# Get details about a specific skill
reskill info <skill-name>
This avoids suggesting skills the user already has.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: