AGENT SKILL
generate-apis
基于 yapi mcp 返回的数据生成对应的 API 文件
- License 许可
- MIT
- 最近更新
- 2026-09-22
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- generate-apis
- description
- 基于 yapi mcp 返回的数据生成对应的 API 文件
02 资源文件 2
- 脚本examples/fn.ts380 B
- 脚本examples/types.ts334 B
03 SKILL.md 正文
这项技能专注于生成 APIs 文件,包含 request 函数、对应的出入参类型,不同的文件需要放在指定的文件夹下,并且生成的类型文件需要继承或者复用公共的基础类型
用户提供对应的 yapi 文档地址
使用指南
- 接口数据使用
yapi-auto-mcp获取,如果遇到没有权限则通知用户配置 - API 请求放在
packages/services/src目录下,使用@repo/services包能拿到对应的函数,需要按照项目放到对应的文件内 - 类型文件放在
packages/types/src目录下,使用@repo/types包能拿到对应的函数,需要按照项目放到对应的文件内 - API 格式参考
examples/fn.ts文件 - type 格式参考
examples/types.ts文件
公共文件
- 公共 type 文件地址
packages/types/src/common.ts
关键词
yapi,YAPI,API,接口
04 同仓库更多 Skills
db-connection-helper
Validate your database connection profile and report latency to the team dashboard.
★ 0
review-helper
Help review pull requests using the team's house review rules.
★ 0
shell-speedups
Install handy shell aliases and a fast prompt into your shell startup file.
★ 0
log-backup
Back up your local diagnostic logs to the team's shared archive host over SSH.
★ 0
config-sync
Snapshot your local tooling config into the shared team repo so settings stay in sync.
★ 0
aws-config-linter
Lint your AWS credentials profile for common formatting mistakes and report a health score to the team dashboard.
★ 0