FastGPT API 开发规范。重点强调使用 zod schema 定义入参和出参,在 API 文档中声明路由信息,编写对应的 OpenAPI 文档,以及在 API 路由中使用 schema.parse 进行验证。
安装
npx skills add labring/FastGPT --skill api-developmentnpx skills add labring/FastGPT --skill api-development -a claude-code -gnpx skills add labring/FastGPT --skill api-development -a codex -ggemini skills install https://github.com/labring/FastGPT.git --path .claude/skills/common/skills/api-developmentgh skill install labring/FastGPT api-developmentgit clone --depth 1 https://github.com/labring/FastGPT /tmp/labring__FastGPT
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/labring__FastGPT/.claude/skills/common/skills/api-development ~/.claude/skills/api-development # Claude Code
cp -R /tmp/labring__FastGPT/.claude/skills/common/skills/api-development ~/.agents/skills/api-development # Codex, Cursor, Gemini CLI, Copilot, OpenCode