Query and sync YApi interface documentation. Use when user mentions "yapi 接口文档", YAPI docs, asks for request/response details, or needs docs sync. Also trigg...
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install yapi或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install yapi⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/yapi/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: yapi description: Query and sync YApi interface documentation. Use when user mentions "yapi 接口文档", YAPI docs, asks for request/response details, or needs docs sync. Also triggers when user pastes a YApi URL that matches the configured base_url. ---
Prefer yapi command. If missing, fallback to one-shot npx without forcing global install:
yapi -h
# fallback:
npx -y @leeguoo/yapi-mcp -h
In command examples below, yapi can be replaced by npx -y @leeguoo/yapi-mcp.
base_url.yapi whoami), then run yapi login only when needed.api_id / keyword / category.--dry-run first, then real sync.base_url from ~/.yapi/config.toml.rg -n "^base_url\\s*=" ~/.yapi/config.toml
base_url, extract IDs from path: - /project/123/... -> project_id=123 - .../api/456 -> api_id=456 - .../api/cat_789 -> catid=789
api_id exists:yapi --path /api/interface/get --query id=<api_id>
# version/help
yapi --version
yapi -h
# auth
yapi whoami
yapi login
# search / fetch
yapi search --q keyword --project-id 310
yapi --path /api/interface/get --query id=123
yapi --path /api/interface/list_cat --query catid=123
Config cache locations:
~/.yapi/config.toml~/.yapi-mcp/auth-*.jsonBinding mode (recommended):
yapi docs-sync bind add --name projectA --dir docs/release-notes --project-id 267 --catid 3667
yapi docs-sync --binding projectA --dry-run
yapi docs-sync --binding projectA
Notes:
.yapi/docs-sync.json.yapi/docs-sync.links.json, .yapi/docs-sync.projects.json, .yapi/docs-sync.deployments.json--force for full sync..yapi.json config as fallback (without binding).req_body_type (use json if unsure) and provide res_body (prefer JSON Schema) when creating/updating interfaces.req_* / res_body, not only in free-text desc/markdown.安装 Yapi 后,可以对 AI 说这些话来触发它
Help me get started with Yapi
Explains what Yapi does, walks through the setup, and runs a quick demo based on your current project
Use Yapi to query and sync YApi interface documentation
Invokes Yapi with the right parameters and returns the result directly in the conversation
What can I do with Yapi in my documents & notes workflow?
Lists the top use cases for Yapi, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/yapi/ 目录(个人级,所有项目可用),或 .claude/skills/yapi/(项目级)。重启 AI 客户端后,用 /yapi 主动调用,或让 AI 根据上下文自动发现并使用。
Yapi 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
Yapi 可免费安装使用。请查阅仓库了解许可证信息。
Query and sync YApi interface documentation. Use when user mentions "yapi 接口文档", YAPI docs, asks for request/response details, or needs docs sync. Also trigg...
Yapi 属于「Documents & Notes」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my documents & notes tasks using Yapi
Identifies repetitive steps in your workflow and sets up Yapi to handle them automatically