skillsmp-searcher
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkillsMP 技能搜索
SkillsMP Skill Search
此技能提供对 SkillsMP 技能商城的搜索功能,帮助用户快速发现和定位所需的技能。
This tool provides search functionality for the SkillsMP Skill Marketplace, helping users quickly discover and locate the skills they need.
API 配置
API Configuration
首次使用前,需要配置 API Key。支持三种配置方式(按优先级排序):
- 环境变量(推荐):设置 环境变量
SKILLSMP_API_KEY - 开发密钥文件:创建 (已在 .gitignore 中)
references/api_key_real.txt - 模板文件:编辑
references/api_key.txt
格式:纯文本的 API Key 字符串(例如:)
sk_live_skillsmp_eb_6A4Y9LJAhtzPFsmX0v67zhingVC0CrQZ4Qqlin4注意:
- 已加入 .gitignore,不会被提交到公共仓库
api_key_real.txt - 请勿将包含真实 API Key 的文件提交到公共仓库
- 文件支持 开头的注释行,会自动跳过
#
Before first use, you need to configure the API Key. Three configuration methods are supported (sorted by priority):
- Environment variable (recommended): Set the environment variable
SKILLSMP_API_KEY - Development key file: Create (already in .gitignore)
references/api_key_real.txt - Template file: Edit
references/api_key.txt
Format: Plain text API Key string (e.g., )
sk_live_skillsmp_eb_6A4Y9LJAhtzPFsmX0v67zhingVC0CrQZ4Qqlin4Notes:
- has been added to .gitignore and will not be committed to public repositories
api_key_real.txt - Do not commit files containing real API Keys to public repositories
- Files support comment lines starting with , which will be automatically skipped
#
搜索模式
Search Modes
1. 关键词搜索
1. Keyword Search
使用 进行基于关键词的搜索。
scripts/search_skills.py适用场景:
- 用户使用明确的关键词搜索(如 "SEO"、"PDF"、"翻译")
- 需要按热门度或最新时间排序
- 需要分页浏览结果
参数:
- (必需): 搜索关键词
q - : 页码,默认 1
page - : 每页数量,默认 20,最大 100
limit - : 排序方式,
sortBy(热门,默认)或stars(最新)recent
示例:
bash
python scripts/search_skills.py "SEO" --page 1 --limit 10 --sortBy starsUse for keyword-based search.
scripts/search_skills.pyApplicable scenarios:
- Users search with clear keywords (e.g., "SEO", "PDF", "translation")
- Need to sort by popularity or latest time
- Need to browse results by pages
Parameters:
- (required): Search keyword
q - : Page number, default 1
page - : Number of items per page, default 20, maximum 100
limit - : Sort method,
sortBy(popular, default) orstars(latest)recent
Example:
bash
python scripts/search_skills.py "SEO" --page 1 --limit 10 --sortBy stars2. AI 语义搜索
2. AI Semantic Search
使用 进行基于语义理解的搜索。
scripts/ai_search.py适用场景:
- 用户使用自然语言描述需求(如"如何制作视频"、"帮我处理PDF文档")
- 搜索意图复杂,需要理解上下文
- 不确定具体关键词,希望AI智能匹配
参数:
- (必需): 自然语言搜索查询
q
示例:
bash
python scripts/ai_search.py "How to create a web scraper"Use for semantic understanding-based search.
scripts/ai_search.pyApplicable scenarios:
- Users describe needs in natural language (e.g., "how to make videos", "help me process PDF documents")
- Search intent is complex and requires context understanding
- Unsure of specific keywords, hoping for AI intelligent matching
Parameters:
- (required): Natural language search query
q
Example:
bash
python scripts/ai_search.py "How to create a web scraper"3. 一键安装技能
3. One-click Skill Installation
使用 搜索并安装技能。
scripts/install_skill.py适用场景:
- 用户搜索到技能后直接安装
- 从URL直接安装技能文件
- 管理已安装的技能
命令:
- [query] [--index N]: 搜索并安装第N个技能(默认第1个)
install - [url/path]: 直接从URL或本地路径安装
install - : 列出所有已安装的技能
list
示例:
bash
undefinedUse to search and install skills.
scripts/install_skill.pyCommands:
- [query] [--index N]: Search and install the Nth skill (default 1st)
install - [url/path]: Install directly from URL or local path
install - : List all installed skills
list
Examples:
bash
undefined搜索并安装第一个结果
Search and install the first result
python scripts/install_skill.py install "视频编辑"
python scripts/install_skill.py install "视频编辑"
搜索并安装指定索引的技能
Search and install the skill at specified index
python scripts/install_skill.py install "PDF" --index 2
python scripts/install_skill.py install "PDF" --index 2
从URL直接安装
Install directly from URL
python scripts/install_skill.py install "https://example.com/skill.skill"
python scripts/install_skill.py install "https://example.com/skill.skill"
从本地文件安装
Install from local file
python scripts/install_skill.py install "/path/to/skill.skill"
python scripts/install_skill.py install "/path/to/skill.skill"
列出已安装的技能
List installed skills
python scripts/install_skill.py list
**功能**:
- 自动解压并安装技能到Claude Code技能目录
- 支持从URL或本地文件安装
- 列出已安装的所有技能python scripts/install_skill.py list
**Features**:
- Automatically extract and install skills to Claude Code skill directory
- Support installation from URL or local file
- List all installed skills4. 查看技能详情
4. View Skill Details
使用 查看特定技能的详细信息。
scripts/skill_info.py适用场景:
- 需要了解技能的完整信息
- 查看技能的版本、作者、评分、标签
- 获取技能的使用示例和安装命令
参数:
- (必需): 技能ID或名称
skill_id - : 输出原始JSON格式
--json - : 自定义API密钥
--api-key
示例:
bash
undefinedUse to view detailed information of specific skills.
scripts/skill_info.pyApplicable scenarios:
- Need to understand complete information of a skill
- View skill version, author, rating, tags
- Obtain skill usage examples and installation commands
Parameters:
- (required): Skill ID or name
skill_id - : Output in raw JSON format
--json - : Custom API key
--api-key
Examples:
bash
undefined查看技能详细信息
View detailed skill information
python scripts/skill_info.py "pdf-processor"
python scripts/skill_info.py "pdf-processor"
以JSON格式输出
Output in JSON format
python scripts/skill_info.py "video-editor" --json
**显示内容**:
- 技能名称、作者、星级评分
- 版本号和详细描述
- 分类标签
- 仓库链接和安装命令
- 依赖要求
- 使用示例python scripts/skill_info.py "video-editor" --json
**Display content**:
- Skill name, author, star rating
- Version number and detailed description
- Category tags
- Repository link and installation command
- Dependency requirements
- Usage examples5. 检查技能更新
5. Check Skill Updates
使用 检查已安装技能的更新。
scripts/check_updates.py适用场景:
- 定期检查已安装技能是否有新版本
- 获取最新版本的版本号和评分
- 决定是否需要更新技能
参数:
- : 强制检查(忽略缓存)
--force - : 输出JSON格式
--json - : 自定义API密钥
--api-key
示例:
bash
undefinedUse to check for updates of installed skills.
scripts/check_updates.pyApplicable scenarios:
- Regularly check if installed skills have new versions
- Obtain the version number and rating of the latest version
- Decide whether to update skills
Parameters:
- : Force check (ignore cache)
--force - : Output in JSON format
--json - : Custom API key
--api-key
Examples:
bash
undefined检查所有已安装技能的更新
Check updates for all installed skills
python scripts/check_updates.py
python scripts/check_updates.py
强制检查(绕过1小时缓存)
Force check (bypass 1-hour cache)
python scripts/check_updates.py --force
python scripts/check_updates.py --force
以JSON格式输出
Output in JSON format
python scripts/check_updates.py --json
**功能**:
- 自动扫描Claude Code技能目录
- 对比本地版本与SkillsMP商城最新版本
- 智能缓存机制(1小时内不重复检查)
- 显示可更新技能的升级路径和安装命令python scripts/check_updates.py --json
**Features**:
- Automatically scan Claude Code skill directory
- Compare local version with the latest version in SkillsMP Marketplace
- Intelligent caching mechanism (no repeated checks within 1 hour)
- Display upgrade path and installation command for updatable skillsAPI 端点
API Endpoints
详细的 API 文档请参考 。
references/api_documentation.md基础 URL:
https://skillsmp.com/api/v1| 端点 | 方法 | 功能 |
|---|---|---|
| GET | 关键词搜索 |
| GET | AI 语义搜索 |
For detailed API documentation, please refer to .
references/api_documentation.mdBase URL:
https://skillsmp.com/api/v1| Endpoint | Method | Function |
|---|---|---|
| GET | Keyword search |
| GET | AI semantic search |
错误处理
Error Handling
API 错误码:
| 错误码 | HTTP状态 | 说明 |
|---|---|---|
| 401 | 未提供 API Key |
| 401 | API Key 无效 |
| 400 | 缺少必需的查询参数 |
| 500 | 服务器内部错误 |
错误响应格式:
json
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid"
}
}API error codes:
| Error Code | HTTP Status | Description |
|---|---|---|
| 401 | API Key not provided |
| 401 | Invalid API Key |
| 400 | Required query parameter missing |
| 500 | Internal server error |
Error response format:
json
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid"
}
}使用流程
Usage Flow
搜索和安装技能:
- 确保 API Key 已配置(优先使用环境变量 )
SKILLSMP_API_KEY - 根据需求选择搜索模式:
- 明确关键词 → 关键词搜索()
search_skills.py - 自然语言描述 → AI 语义搜索()
ai_search.py
- 明确关键词 → 关键词搜索(
- 搜索后可直接安装:
- 使用索引安装:
install_skill.py install "关键词" --index N - 从URL直接安装:
install_skill.py install "URL"
- 使用索引安装:
管理已安装技能:
- 列出已安装技能:
install_skill.py list - 查看技能详情:
skill_info.py "技能名" - 检查更新:
check_updates.py
注意事项:
- 首次使用必须配置 API Key
- 搜索结果默认按热门度排序
- 技能安装到 或系统对应的技能目录
~/.claude/skills/ - 更新检查有1小时缓存,使用 可绕过
--force
Search and Install Skills:
- Ensure API Key is configured (prefer using environment variable )
SKILLSMP_API_KEY - Select search mode based on needs:
- Clear keywords → Keyword search ()
search_skills.py - Natural language description → AI semantic search ()
ai_search.py
- Clear keywords → Keyword search (
- Install directly after search:
- Install using index:
install_skill.py install "keyword" --index N - Install directly from URL:
install_skill.py install "URL"
- Install using index:
Manage Installed Skills:
- List installed skills:
install_skill.py list - View skill details:
skill_info.py "skill name" - Check for updates:
check_updates.py
Notes:
- API Key must be configured for first use
- Search results are sorted by popularity by default
- Skills are installed to or the corresponding system skill directory
~/.claude/skills/ - Update check has a 1-hour cache, use to bypass
--force