FastGPT API 开发规范。重点强调使用 zod schema 定义入参和出参,在 API 文档中声明路由信息,编写对应的 OpenAPI 文档,以及在 API 路由中使用 schema.parse 进行验证。
$npx -y skills add labring/fastgpt --skill api-developmentInstalls into the current project.
Run `npx skills use "https://github.com/labring/fastgpt" --skill "labring/fastgpt/api-development"` and follow the generated skill instructions now. Read its complete output, redirecting it to a temporary file first if necessary. Resolve relative paths from the supporting-files directory it provides.
Use the skills in "https://github.com/labring/fastgpt" that are relevant to the current task. Run `npx skills add "https://github.com/labring/fastgpt"` and select the relevant skills, then follow their instructions.