— No reviews yet
0 installs
15 views
0.0% view→install
Install
$ agentstack add skill-aaaaqwq-agi-super-team-api-toolkit ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ● Network access Used
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Are you the author of Api Toolkit? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claimAbout
API Toolkit Skill
通用 API 调用工具包,用于快速接入任何 RESTful API。
使用场景
- 调用第三方 API 服务
- 测试和调试 API 端点
- 构建自动化工作流
- 数据获取和同步
核心能力
1. HTTP 请求
# 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"
2. 认证方式
| 方式 | 示例 | |------|------| | Bearer Token | -H "Authorization: Bearer $TOKEN" | | API Key Header | -H "X-API-Key: $KEY" | | Basic Auth | -u "user:pass" | | Query Param | ?api_key=$KEY |
3. 响应处理
# 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)
常用 API 模板
天气 API (wttr.in)
curl -s "wttr.in/Shanghai?format=j1" | jq '.current_condition[0]'
GitHub API
curl -s "https://api.github.com/users/USERNAME/repos" \
-H "Authorization: token $(pass show tokens/github)"
Telegram Bot API
curl -s "https://api.telegram.org/bot$TOKEN/sendMessage" \
-d "chat_id=$CHAT_ID" \
-d "text=$MESSAGE"
安全注意事项
- 密钥管理 - 使用
pass存储,不硬编码 - 日志脱敏 - 不在输出中显示完整密钥
- 速率限制 - 遵守 API 的调用频率限制
- 错误处理 - 检查响应状态码
添加新 API
- 获取 API 文档和密钥
- 存储密钥:
pass insert tokens/new-api - 测试基本调用
- 记录到 TOOLS.md
相关文件
TOOLS.md- 记录已配置的 APISECURITY.md- 安全策略memory/audit-*.log- 操作审计
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: aAAaqwq
- Source: aAAaqwq/AGI-Super-Team
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.