skillsmp-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseSkillsMP API Skill
SkillsMP API 技能
Access the SkillsMP API for searching and discovering AI skills built by the community.
通过SkillsMP API搜索和发现社区构建的AI技能。
Quick Start
快速开始
1. Set API Key
1. 设置API密钥
bash
export SKILLSMP_API_KEY="your-api-key-here"bash
export SKILLSMP_API_KEY="your-api-key-here"2. Use the Python Client
2. 使用Python客户端
bash
undefinedbash
undefinedSearch skills by keyword
按关键词搜索技能
python scripts/skillsmp_api.py search "SEO"
python scripts/skillsmp_api.py search "SEO"
AI semantic search
AI语义搜索
python scripts/skillsmp_api.py ai-search "How to create a web scraper"
undefinedpython scripts/skillsmp_api.py ai-search "How to create a web scraper"
undefined3. Or Use Directly
3. 或者直接调用
bash
undefinedbash
undefinedKeyword search
关键词搜索
curl -X GET "https://skillsmp.com/api/v1/skills/search?q=SEO"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
curl -X GET "https://skillsmp.com/api/v1/skills/search?q=SEO"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
AI search
AI搜索
curl -X GET "https://skillsmp.com/api/v1/skills/ai-search?q=How+to+scrape+websites"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
undefinedcurl -X GET "https://skillsmp.com/api/v1/skills/ai-search?q=How+to+scrape+websites"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
undefinedBundled Resources
配套资源
Python Client (scripts/skillsmp_api.py
)
scripts/skillsmp_api.pyPython客户端(scripts/skillsmp_api.py
)
scripts/skillsmp_api.pyA complete Python client with:
- class for programmatic access
SkillsMPAPI - CLI interface for quick searches
- Error handling and type hints
- Two search methods: and
search()ai_search()
Usage in your code:
python
from skillsmp_api import SkillsMPAPI
client = SkillsMPAPI()
results = client.search("SEO", sort_by="stars")一个完整的Python客户端,包含:
- 用于程序化访问的类
SkillsMPAPI - 用于快速搜索的CLI接口
- 错误处理和类型提示
- 两种搜索方法:和
search()ai_search()
代码中的使用方式:
python
from skillsmp_api import SkillsMPAPI
client = SkillsMPAPI()
results = client.search("SEO", sort_by="stars")API Reference (references/api_reference.md
)
references/api_reference.mdAPI参考文档(references/api_reference.md
)
references/api_reference.mdComplete documentation including:
- All endpoints and parameters
- Response formats
- Error codes
- Rate limits
- Best practices
- Additional examples
完整的文档包含:
- 所有端点和参数
- 响应格式
- 错误代码
- 速率限制
- 最佳实践
- 更多示例
When to Use This Skill
何时使用该技能
- Finding specific skills: Use keyword search for terms like "SEO", "web scraping", "data analysis"
- Natural language queries: Use AI search for questions like "How do I automate social media posting?"
- Exploring: Search with for popular skills or
sortBy=starsfor new additionssortBy=recent - Building integrations: Use the Python client for programmatic access
- 查找特定技能:使用关键词搜索“SEO”、“网页抓取”、“数据分析”等术语
- 自然语言查询:使用AI搜索诸如“如何自动化社交媒体发布?”之类的问题
- 探索发现:使用搜索热门技能,或使用
sortBy=stars搜索新增技能sortBy=recent - 构建集成:使用Python客户端进行程序化访问
Error Handling
错误处理
The API returns errors in this format:
json
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid"
}
}Common error codes: , , ,
MISSING_API_KEYINVALID_API_KEYMISSING_QUERYINTERNAL_ERRORAPI返回的错误格式如下:
json
{
"success": false,
"error": {
"code": "INVALID_API_KEY",
"message": "The provided API key is invalid"
}
}常见错误代码:, , ,
MISSING_API_KEYINVALID_API_KEYMISSING_QUERYINTERNAL_ERRORBest Practices
最佳实践
- Always use environment variables for API keys
- Handle errors gracefully - check the field
success - Use appropriate search type:
- Keyword search for specific terms
- AI search for natural language questions
- Respect rate limits - use pagination for large result sets
- Use the Python client for complex operations
- 始终使用环境变量存储API密钥
- 优雅处理错误 - 检查字段
success - 选择合适的搜索类型:
- 关键词搜索适用于特定术语
- AI搜索适用于自然语言问题
- 遵守速率限制 - 对大型结果集使用分页
- 使用Python客户端处理复杂操作
References
参考资料
- Full API Documentation: See
references/api_reference.md - Python Client: See
scripts/skillsmp_api.py - API Website: https://skillsmp.com/docs/api
- Note: SkillsMP is not affiliated with Anthropic
- 完整API文档:查看
references/api_reference.md - Python客户端:查看
scripts/skillsmp_api.py - API官网:https://skillsmp.com/docs/api
- 注意:SkillsMP与Anthropic无关联