Skip to content
Testing
Command

/setup-yapi

Install or verify the YApi CLI and report whether login is required.

From plugin
cross-request-master
1688 skills8 commands
Install
> /plugin marketplace add leeguooooo/cross-request-master
> /plugin install yapi-plugin@cross-request-marketplace

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/setup-yapi

Context preview

What this command does when you run it.

Install or verify the YApi CLI and report whether login is required.

Command definition

setup-yapi.md
name: setup-yapi
description: Install or verify the YApi CLI and report whether login is required.

Setup YApi

1. Run `command -v yapi >/dev/null || npm install -g @leeguoo/yapi-mcp`. 2. Run `yapi whoami`. 3. If `yapi whoami` reports a login or config problem, tell the user to run `yapi login`. 4. If setup succeeds, summarize that YApi is ready and include the current account if available.

Ships withcross-request-master

面向 API 开发/测试的 Chrome 扩展:绕过 CORS 发请求、自动生成 cURL,并对 YApi「运行」页做增强(内嵌 cURL、路径参数 {param} 引导填写)。 本仓库包含生态内的多个子项目: packages/yapi-mcp — CLI / Skill(发布包名保持为 @leeguoo/yapi-mcp,MCP 配置作为兼容方案保留,不影响扩展打包) plugins/yapi-plugin — Cursor 与 Claude Code 插件(已从原独立仓库

Get the whole plugin