skills/api-toolkit/SKILL.md
# API Toolkit Skill 通用 API 调用工具包,用于快速接入任何 RESTful API。 ## 使用场景 - 调用第三方 API 服务 - 测试和调试 API 端点 - 构建自动化工作流 - 数据获取和同步 ## 核心能力 ### 1. HTTP 请求 ```bash # GET 请求 curl -s "https://api.example.com/endpoint" \ -H "Authorization: Bearer $(pass show tokens/example-api)" # POST 请求 curl -s -X POST "https://api.example.com/endpoint" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $API_KEY" \ -d '{"key": "value"}' # 带查询参数 curl -s "https://api.example.com/search?q=query&limit=10"
npx skillsauth add aaaaqwq/claude-code-skills skills/api-toolkitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
通用 API 调用工具包,用于快速接入任何 RESTful API。
# GET 请求
curl -s "https://api.example.com/endpoint" \
-H "Authorization: Bearer $(pass show tokens/example-api)"
# POST 请求
curl -s -X POST "https://api.example.com/endpoint" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $API_KEY" \
-d '{"key": "value"}'
# 带查询参数
curl -s "https://api.example.com/search?q=query&limit=10"
| 方式 | 示例 |
|------|------|
| Bearer Token | -H "Authorization: Bearer $TOKEN" |
| API Key Header | -H "X-API-Key: $KEY" |
| Basic Auth | -u "user:pass" |
| Query Param | ?api_key=$KEY |
# JSON 解析
curl -s ... | jq '.data'
# 提取特定字段
curl -s ... | jq -r '.items[].name'
# 错误检查
response=$(curl -s -w "\n%{http_code}" ...)
body=$(echo "$response" | head -n -1)
code=$(echo "$response" | tail -n 1)
curl -s "wttr.in/Shanghai?format=j1" | jq '.current_condition[0]'
curl -s "https://api.github.com/users/USERNAME/repos" \
-H "Authorization: token $(pass show tokens/github)"
curl -s "https://api.telegram.org/bot$TOKEN/sendMessage" \
-d "chat_id=$CHAT_ID" \
-d "text=$MESSAGE"
pass 存储,不硬编码pass insert tokens/new-apiTOOLS.md - 记录已配置的 APISECURITY.md - 安全策略memory/audit-*.log - 操作审计testing
通用自媒体文章自动发布工具。支持百家号、搜狐号、知乎、微信公众号、小红书、抖音号六个平台的自动化发布流程。使用Playwright自动化实现平台导航和发布,支持通过storageState管理Cookie实现账号切换。
development
# SKILL.md - Model Configuration Status (mcstatus) ## 触发条件 - `/mcstatus` 命令 - 用户询问模型配备、模型配置、model status、模型列表等 ## 功能 实时生成 Agent + Cron 的模型配置报告,展示当前所有 agent 的主模型/fallback链和所有 cron 任务的模型分配。 ## 执行步骤 ### Step 1: 收集 Agent 模型配置 读取各 agent 的 models.json 获取主模型和 fallback 链: ```bash for agent in main ops code quant data research content market finance pm law product sales batch; do config=$(cat ~/.openclaw/agents/$agent/agent/models.json 2>/dev/null) if [ -n "$config" ]; then echo "=== $agent
tools
MCP 服务器智能管理助手。自动检测 MCP 可用性、智能开关、功能问答,提供人性化的 MCP 管理体验。
tools
从GitHub搜索并自动安装配置MCP(Model Context Protocol)服务器工具到Claude配置文件。当用户需要安装MCP工具时触发此技能。工作流程:搜索GitHub上的MCP项目 -> 提取npx配置 -> 添加到~/.claude.json -> 处理API密钥(如有)。