skillsmp-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

SkillsMP 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
undefined
bash
undefined

Search 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"
undefined
python scripts/skillsmp_api.py ai-search "How to create a web scraper"
undefined

3. Or Use Directly

3. 或者直接调用

bash
undefined
bash
undefined

Keyword search

关键词搜索

curl -X GET "https://skillsmp.com/api/v1/skills/search?q=SEO"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
curl -X GET "https://skillsmp.com/api/v1/skills/search?q=SEO"
-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"
undefined
curl -X GET "https://skillsmp.com/api/v1/skills/ai-search?q=How+to+scrape+websites"
-H "Authorization: Bearer $SKILLSMP_API_KEY"
undefined

Bundled Resources

配套资源

Python Client (
scripts/skillsmp_api.py
)

Python客户端(
scripts/skillsmp_api.py

A complete Python client with:
  • SkillsMPAPI
    class for programmatic access
  • CLI interface for quick searches
  • Error handling and type hints
  • Two search methods:
    search()
    and
    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
)

API参考文档(
references/api_reference.md

Complete 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
    sortBy=stars
    for popular skills or
    sortBy=recent
    for new additions
  • 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_KEY
,
INVALID_API_KEY
,
MISSING_QUERY
,
INTERNAL_ERROR
API返回的错误格式如下:
json
{
  "success": false,
  "error": {
    "code": "INVALID_API_KEY",
    "message": "The provided API key is invalid"
  }
}
常见错误代码:
MISSING_API_KEY
,
INVALID_API_KEY
,
MISSING_QUERY
,
INTERNAL_ERROR

Best Practices

最佳实践

  1. Always use environment variables for API keys
  2. Handle errors gracefully - check the
    success
    field
  3. Use appropriate search type:
    • Keyword search for specific terms
    • AI search for natural language questions
  4. Respect rate limits - use pagination for large result sets
  5. Use the Python client for complex operations
  1. 始终使用环境变量存储API密钥
  2. 优雅处理错误 - 检查
    success
    字段
  3. 选择合适的搜索类型:
    • 关键词搜索适用于特定术语
    • AI搜索适用于自然语言问题
  4. 遵守速率限制 - 对大型结果集使用分页
  5. 使用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无关联