一键导入
apifox
ABC 医疗云 API 文档查询工具。读取和查询 ABC API 的 OpenAPI 规范文档(4209 个接口),支持按模块、路径、方法搜索,自动解析 $ref 引用。使用场景:(1) 查询 API 接口定义 (2) 搜索特定功能接口 (3) 导出接口文档摘要 (4) 查看接口统计信息
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
ABC 医疗云 API 文档查询工具。读取和查询 ABC API 的 OpenAPI 规范文档(4209 个接口),支持按模块、路径、方法搜索,自动解析 $ref 引用。使用场景:(1) 查询 API 接口定义 (2) 搜索特定功能接口 (3) 导出接口文档摘要 (4) 查看接口统计信息
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Builds an ad brief for any platform. Researches the user's product, audience, market, and KPIs proactively, then asks the user to confirm and fill gaps. Saves the result as .agents/ad-brief.md for future sessions. Not for writing ad copy, choosing platforms, configuring campaigns, or analyzing results.
Reference for the AdKit CLI (`adkit-cli` on npm, `adkit` command). Maps commands to ad operations: creating campaigns, ad sets, and ads on Meta, managing drafts, uploading media, searching interests. Load when the user wants to execute ad operations through the terminal or when `adkit` is installed and the user is ready to publish. Not for strategy, copywriting, creative advice, or learning about ads.
Meta (Facebook & Instagram) advertising strategy for AI agents. Covers fundamentals, ad creative best practices, campaign structure, audience targeting, budget management, and performance analysis. Use when the user wants to plan, create, launch, or optimize Meta ads, or when they need to understand how the platform works before spending money. Not for Google Ads, TikTok Ads, LinkedIn Ads, or general marketing strategy outside Meta.
Manage your team — create roles, assign tasks, spawn workers, and monitor progress
SEO content brief creation with keyword research, search intent analysis, and content structure. Covers SERP analysis, heading hierarchy, word count targets, and internal linking strategy. Use for: content briefs, SEO writing, blog strategy, content planning, keyword targeting. Triggers: seo content brief, content brief, seo brief, keyword research, search intent, content strategy, blog brief, seo writing, content planning, keyword targeting, serp analysis, content outline, seo article, blog seo
Twitter/X thread writing with hook tweets, thread structure, and engagement optimization. Covers tweet formatting, character limits, media attachments, and posting strategies. Use for: Twitter threads, X posts, tweet storms, Twitter content, social media writing. Triggers: twitter thread, tweet thread, x thread, twitter post, tweet writing, thread creation, tweet storm, twitter content, x post, twitter writing, twitter hook, tweet formatting, thread structure
| name | apifox |
| description | ABC 医疗云 API 文档查询工具。读取和查询 ABC API 的 OpenAPI 规范文档(4209 个接口),支持按模块、路径、方法搜索,自动解析 $ref 引用。使用场景:(1) 查询 API 接口定义 (2) 搜索特定功能接口 (3) 导出接口文档摘要 (4) 查看接口统计信息 |
本 skill 提供 ABC 医疗云 API 文档查询功能,统一通过 apifox.py 调用。
使用前需要配置 Apifox Access Token:
# 设置 Apifox Access Token(必需)
export APIFOX_ACCESS_TOKEN="你的 Apifox Access Token"
# 设置项目 ID(可选,默认为 4105462)
export APIFOX_PROJECT_ID="4105462"
# 安装 Python 依赖
pip3 install requests
apifox 直接通过 HTTP 请求调用 Apifox API:
cache/ 文件夹# 在 ~/.bashrc 或 ~/.zshrc 中添加
export APIFOX_ACCESS_TOKEN="apt_xxxxxxxxxxxxxxx"
export APIFOX_PROJECT_ID="4105462"
# 重新加载配置
source ~/.bashrc # 或 source ~/.zshrc
./scripts/apifox <command> [参数]
说明:
./scripts/apifox是 shell wrapper,会自动检测并使用系统中可用的 Python 解释器(python3 或 python)。
所有命令默认返回 JSON 格式输出。
ABC 医疗云 API 文档包含以下模块:
| 模块 | 接口数量 | 说明 |
|---|---|---|
| api | 2506 | HTTP API 接口 |
| rpc | 1338 | RPC 服务接口 |
| api-weapp | 294 | 小程序 API 接口 |
| api-device | 29 | 设备接口 |
| api-mp | 17 | 公众号接口 |
| api-external | 14 | 外部接口 |
| 命令 | 说明 |
|---|---|
read_oas | 读取完整 OpenAPI 规范(约 5MB JSON) |
refresh_oas | 刷新/更新最新文档(显示缓存状态) |
cache_status | 查看缓存状态和版本 |
clear_cache | 清除本地缓存(需要 --force 参数) |
| 命令 | 说明 |
|---|---|
list_paths | 列出接口路径(支持模块和方法过滤) |
search_paths | 搜索接口(关键词匹配) |
get_path | 获取单个接口详情(自动解析 $ref) |
list_modules | 列出所有模块及接口统计 |
| 命令 | 说明 |
|---|---|
stats | 显示统计信息(接口总数、模块分布) |
export_summary | 导出接口摘要(JSON/Markdown) |
# 获取指定接口的完整定义
./scripts/apifox get_path \
--path "/api/global-auth/login/sms" \
--method POST
# 获取接口但不解析 $ref(更快)
./scripts/apifox get_path \
--path "/api/global-auth/login/sms" \
--method POST \
--include_refs false
# 搜索登录相关接口
./scripts/apifox search_paths --keyword "login"
# 搜索 api 模块中的用户相关接口
./scripts/apifox search_paths --keyword "user" --module api
# 列出所有 POST 接口
./scripts/apifox list_paths --method post --limit 20
# 列出所有模块及统计
./scripts/apifox list_modules
# 列出小程序接口(前 20 个)
./scripts/apifox list_paths --module api-weapp --limit 20
# 查看基本统计
./scripts/apifox stats
# 查看详细统计(包含各模块详情)
./scripts/apifox stats --detail
# 查看缓存状态
./scripts/apifox cache_status
# 刷新文档(强制从 API 重新获取最新数据)
./scripts/apifox refresh_oas
# 清除缓存
./scripts/apifox clear_cache --force
# 导出所有 API 模块接口摘要到 Markdown
./scripts/apifox export_summary --module api --output api_summary.md --format markdown
# 导出为 JSON
./scripts/apifox export_summary --output full_summary.json --format json
所有命令返回 JSON 格式:
{
"success": true,
"data": "返回的数据"
}
错误时返回:
{
"success": false,
"error": "错误信息"
}
当用户需要查询 API 文档时:
示例工作流:
用户: "查看短信登录接口的定义"
Claude:
1. ./scripts/apifox search_paths --keyword "login sms"
2. 从结果中找到相关接口路径
3. ./scripts/apifox get_path --path "/api/global-auth/login/sms" --method POST
4. 分析返回的请求/响应结构
# 配置环境变量后首次运行
./scripts/apifox stats
# 输出示例:
# 正在从 Apifox 获取项目 4105462 的 OpenAPI 文档...
# API 端点: https://api.apifox.com/v1/projects/4105462/export/openapi
# ✓ 成功获取 OpenAPI 文档
# 接口数量: 4274
# 从本地缓存加载,秒级响应
./scripts/apifox stats
# 从本地缓存加载 OpenAPI 数据...
# 强制从 API 重新获取最新文档
./scripts/apifox refresh_oas
# 输出示例:
# 正在刷新 OpenAPI 文档...
# 正在从 Apifox 获取项目 4105462 的 OpenAPI 文档...
# ✓ 成功获取 OpenAPI 文档
# 接口数量: 4274
./scripts/apifox cache_status
scripts/
├── apifox.py # 统一入口脚本
├── apifox_client.py # API 文档客户端
├── cache_manager.py # 缓存管理器
└── requirements.txt # Python 依赖
references/
├── openapi-structure.md # OpenAPI 结构说明
├── common-queries.md # 常见查询示例
└── api-modules.md # API 模块分类